Exemplo n.º 1
0
 /**
  * @param $socialProductPostId
  * @param $galleryId
  * @param $image
  * @param $caption
  * @param $ref
  * @return socialGalleryPostModel
  */
 public static function addItem($socialProductPostId, $galleryId, $image, $caption, $ref)
 {
     $socialGalleryPost = new socialGalleryPostModel();
     $socialGalleryPost->social_product_post_id = $socialProductPostId;
     $socialGalleryPost->gallery_id = $galleryId;
     $socialGalleryPost->image = $image;
     $socialGalleryPost->caption = $caption;
     $socialGalleryPost->ref = $ref;
     $socialGalleryPost->save();
     return $socialGalleryPost;
 }