예제 #1
0
파일: facebook.php 프로젝트: TMBR/johnjohn
 public function generate_socialpost()
 {
     $post = new \SocialFeed\Models\SocialPost();
     $post->set('service', 'facebook');
     $post->set('date', $this->get_date());
     $post->set('content', $this->get_content());
     $post->set('thumbnail', $this->get_thumbanil());
     $post->set('type', $this->get_type());
     $post->set('url', $this->get_url());
     return $post;
 }
예제 #2
0
파일: instagram.php 프로젝트: TMBR/johnjohn
 public function generate_socialpost()
 {
     $post = new \SocialFeed\Models\SocialPost();
     $post->set('service', 'instagram');
     $post->set('date', $this->get_date());
     $post->set('content', $this->get_caption());
     $post->set('thumbnail', $this->get_thumbnail_url());
     $post->set('type', $this->get_type());
     $post->set('url', $this->get_instagram_url());
     return $post;
 }