/**
  * 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_ItemGrandparentAbstract::setArt()
  * @uses Plex_Server_Library_ItemGrandparentAbstract::setLeafCount()
  * @uses Plex_Server_Library_ItemGrandparentAbstract::setViewedLeafCount()
  * @uses Plex_Server_Library_ItemGrandparentAbstract::setYear()
  * @uses Plex_Server_Library_ItemGrandparentAbstract::setRating()
  * @uses Plex_Server_Library_ItemGrandparentAbstract::setContentRating()
  *
  * @return void
  */
 public function setAttributes($attribute)
 {
     parent::setAttributes($attribute);
     if (isset($attribute['art'])) {
         $this->setArt($attribute['art']);
     }
     if (isset($attribute['leafCount'])) {
         $this->setLeafCount($attribute['leafCount']);
     }
     if (isset($attribute['viewedLeafCount'])) {
         $this->setViewedLeafCount($attribute['viewedLeafCount']);
     }
     if (isset($attribute['year'])) {
         $this->setYear($attribute['year']);
     }
     if (isset($attribute['rating'])) {
         $this->setRating($attribute['rating']);
     }
     if (isset($attribute['contentRating'])) {
         $this->setContentRating($attribute['contentRating']);
     }
 }