Beispiel #1
0
 public function __construct($object = null)
 {
     parent::__construct($object);
     if ($object instanceof \stdClass) {
         $this->setFanart($this->fanart);
         $this->setThumbnail($this->thumbnail);
     }
 }
Beispiel #2
0
 public function __construct($object = null)
 {
     parent::__construct($object);
     $this->setMovies(array());
     if ($object instanceof \stdClass) {
         $this->id = $object->setid;
         foreach ($object->items->movies as $movie) {
             $this->movieIds[] = $movie->movieid;
             $this->movieNames[] = $movie->label;
         }
     }
 }