loadOneByOwner() public static méthode

public static loadOneByOwner ( $owner, $owner_id, $owner_attribute )
Exemple #1
0
 /**
  * @return bool|Mediafile
  */
 public function getThumbnailModel()
 {
     if (!empty($this->thumbnail_model)) {
         return $this->thumbnail_model;
     }
     return $this->thumbnail_model = Mediafile::loadOneByOwner('post', $this->id, 'thumbnail');
 }
Exemple #2
0
 public function getImage()
 {
     return Mediafile::loadOneByOwner('category', $this->id, 'thumbnail');
 }