public function Entry::__call in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-feed/src/Writer/Entry.php \Zend\Feed\Writer\Entry::__call()
- 8.0 vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Entry.php \Zend\Feed\Writer\Extension\ITunes\Entry::__call()
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Entry.php \Zend\Feed\Writer\Extension\ITunes\Entry::__call()
Overloading to itunes specific setters
Parameters
string $method:
array $params:
Return value
mixed
Throws
Writer\Exception\BadMethodCallException
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Extension/ ITunes/ Entry.php, line 229
Class
Namespace
Zend\Feed\Writer\Extension\ITunesCode
public function __call($method, array $params) {
$point = lcfirst(substr($method, 9));
if (!method_exists($this, 'setItunes' . ucfirst($point)) && !method_exists($this, 'addItunes' . ucfirst($point))) {
throw new Writer\Exception\BadMethodCallException('invalid method: ' . $method);
}
if (!array_key_exists($point, $this->data) || empty($this->data[$point])) {
return;
}
return $this->data[$point];
}