Example #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);
 }
Example #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_ItemParentAbstract::setParentRatingKey()
  * @uses Plex_Server_Library_ItemParentAbstract::setParentKey()
  * @uses Plex_Server_Library_ItemParentAbstract::setParentTitle()
  * @uses Plex_Server_Library_ItemParentAbstract::setParentIndex()
  * @uses Plex_Server_Library_ItemParentAbstract::setParentThumb()
  * @uses Plex_Server_Library_ItemParentAbstract::originallyAvailableAt()
  *
  * @return void 
  */
 public function setAttributes($attribute)
 {
     parent::setAttributes($attribute);
     if (isset($attribute['parentRatingKey'])) {
         $this->setParentRatingKey($attribute['parentRatingKey']);
     }
     if (isset($attribute['parentKey'])) {
         $this->setParentKey($attribute['parentKey']);
     }
     if (isset($attribute['parentTitle'])) {
         $this->setParentTitle($attribute['parentTitle']);
     }
     if (isset($attribute['parentIndex'])) {
         $this->setParentIndex($attribute['parentIndex']);
     }
     if (isset($attribute['parentThumb'])) {
         $this->setParentThumb($attribute['parentThumb']);
     }
     if (isset($attribute['originallyAvailableAt'])) {
         $this->setOriginallyAvailableAt($attribute['originallyAvailableAt']);
     }
 }