예제 #1
0
 /**
  * Overloading to itunes specific setters
  *
  * @param  string $method
  * @param  array $params
  * @return mixed
  */
 public function __call($method, array $params)
 {
     $point = Zend_Feed_Writer::lcfirst(substr($method, 9));
     if (!method_exists($this, 'setItunes' . ucfirst($point)) && !method_exists($this, 'addItunes' . ucfirst($point))) {
         #require_once 'Zend/Feed/Writer/Exception/InvalidMethodException.php';
         throw new Zend_Feed_Writer_Exception_InvalidMethodException('invalid method: ' . $method);
     }
     if (!array_key_exists($point, $this->_data) || empty($this->_data[$point])) {
         return null;
     }
     return $this->_data[$point];
 }