Exemplo n.º 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);
 }
Exemplo n.º 2
0
 /**
  * Sets an array of attribues, 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_ItemChildAbstract::setGrandparentRatingKey()
  * @uses Plex_Server_Library_ItemChildAbstract::setGrandparentKey()
  * @uses Plex_Server_Library_ItemChildAbstract::setGrandparentTitle()
  * @uses Plex_Server_Library_ItemChildAbstract::setGrandparentThumb()
  * @uses Plex_Server_Library_ItemChildAbstract::setDuration()
  * @uses Plex_Server_Library_ItemChildAbstract::setViewOffset()
  *
  * @return void 
  */
 public function setAttributes($attribute)
 {
     parent::setAttributes($attribute);
     if (isset($attribute['grandparentRatingKey'])) {
         $this->setGrandparentRatingKey($attribute['grandparentRatingKey']);
     }
     if (isset($attribute['grandparentKey'])) {
         $this->setGrandparentKey($attribute['grandparentKey']);
     }
     if (isset($attribute['grandparentTitle'])) {
         $this->setGrandparentTitle($attribute['grandparentTitle']);
     }
     if (isset($attribute['grandparentThumb'])) {
         $this->setGrandparentThumb($attribute['grandparentThumb']);
     }
     if (isset($attribute['duration'])) {
         $this->setDuration($attribute['duration']);
     }
     if (isset($attribute['viewOffset'])) {
         $this->setViewOffset($attribute['viewOffset']);
     }
 }