Exemple #1
0
 /**
  * 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']);
     }
 }
Exemple #2
0
 /**
  * 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']);
     }
 }
Exemple #3
0
 /**
  * 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);
 }