예제 #1
0
파일: Track.php 프로젝트: bonvga/php-plex
 /**
  * Sets an array of attributes, if they exist, to the corresponding class
  * member.
  * 
  * @param array $attribute An array of item attributes as passed back by the
  * Plex HTTP API.
  *
  * @uses Plex_Server_Library_ItemAbstract::setAttributes()
  *
  * @return void
  */
 public function setAttributes($attribute)
 {
     parent::setAttributes($attribute);
     if (isset($attribute['originalTitle'])) {
         $this->setOriginalTitle($attribute['originalTitle']);
     }
 }
예제 #2
0
파일: Movie.php 프로젝트: bonvga/php-plex
 /**
  * Sets an array of attributes, if they exist, to the corresponding class
  * member.
  * 
  * @param array $attribute An array of item attributes as passed back by the
  * Plex HTTP API.
  *
  * @uses Plex_Server_Library_ItemAbstract::setAttributes()
  * @uses Plex_Server_Library_Item_Movie::setStudio()
  * @uses Plex_Server_Library_Item_Movie::setTagline()
  *
  * @return void
  */
 public function setAttributes($attribute)
 {
     parent::setAttributes($attribute);
     if (isset($attribute['studio'])) {
         $this->setStudio($attribute['studio']);
     }
     if (isset($attribute['tagline'])) {
         $this->setTagline($attribute['tagline']);
     }
 }
예제 #3
0
파일: Episode.php 프로젝트: bonvga/php-plex
 /**
  * Sets an array of attributes, if they exist, to the corresponding class
  * member.
  * 
  * @param array $attribute An array of item attributes as passed back by the
  * Plex HTTP API.
  *
  * @uses Plex_Server_Library_ItemAbstract::setAttributes()
  *
  * @return void
  */
 public function setAttributes($attribute)
 {
     parent::setAttributes($attribute);
 }