Inheritance: extends apiModel
Example #1
0
 public function __construct($clickTrackingUrl = null, $advertiserId = null, $id = null, $name = null, $size = null, $previewUrl = null, $appliedLabels = null, $lastModifiedDateTime = null, $customFieldValues = null, $CreativeType = null)
 {
     parent::__construct();
     $this->clickTrackingUrl = $clickTrackingUrl;
     $this->advertiserId = $advertiserId;
     $this->id = $id;
     $this->name = $name;
     $this->size = $size;
     $this->previewUrl = $previewUrl;
     $this->appliedLabels = $appliedLabels;
     $this->lastModifiedDateTime = $lastModifiedDateTime;
     $this->customFieldValues = $customFieldValues;
     $this->CreativeType = $CreativeType;
 }
 public function __construct($clickTrackingUrl = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $appliedLabels = NULL, $CreativeType = NULL)
 {
     if (get_parent_class('ClickTrackingCreative')) {
         parent::__construct();
     }
     $this->clickTrackingUrl = $clickTrackingUrl;
     $this->advertiserId = $advertiserId;
     $this->id = $id;
     $this->name = $name;
     $this->size = $size;
     $this->previewUrl = $previewUrl;
     $this->appliedLabels = $appliedLabels;
     $this->CreativeType = $CreativeType;
 }
Example #3
0
 public function __construct($snippet = NULL, $expandedSnippet = NULL, $advertiserId = NULL, $id = NULL, $name = NULL, $size = NULL, $previewUrl = NULL, $CreativeType = NULL)
 {
     if (get_parent_class('ThirdPartyCreative')) {
         parent::__construct();
     }
     $this->snippet = $snippet;
     $this->expandedSnippet = $expandedSnippet;
     $this->advertiserId = $advertiserId;
     $this->id = $id;
     $this->name = $name;
     $this->size = $size;
     $this->previewUrl = $previewUrl;
     $this->CreativeType = $CreativeType;
 }
                </div>
                <p>
                    暂无站内简讯
                </p>
                @endif
            </div>
            {{-- /Text Widget --}}

            {{-- Recent Posts Widget --}}
            <div class="widget">

                <div class="widget-title">
                    <h4>热门分享</h4>
                </div>
                <?php 
$posts = Creative::where('post_status', 'open')->orderBy('comments_count', 'desc')->paginate(4);
?>
                @foreach($posts as $post)
                <div class="post-box">
                    <a href="{{ route('timeline.getTimeline', $post->user->id) }}"> <img class="img-rounded" src="{{ $post->user->portrait_large }}" width="50" height="50" alt=""> </a>
                    <div>
                        <h5><a href="{{ route('creative.show', $post->slug) }}">{{ $post->title }}</a></h5>
                        <small>{{ date("M d, Y",strtotime($post->created_at)) }}</small>
                    </div>
                </div>
                @endforeach
            </div>
            {{-- /Recent Posts Widget --}}

            {{-- Tags Widget --}}
            <div class="widget">