public function Feed::addItunesAuthor in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Extension/ITunes/Feed.php \Zend\Feed\Writer\Extension\ITunes\Feed::addItunesAuthor()
Add feed author
Parameters
string $value:
Return value
Throws
Writer\Exception\InvalidArgumentException
1 call to Feed::addItunesAuthor()
- Feed::addItunesAuthors in vendor/
zendframework/ zend-feed/ src/ Writer/ Extension/ ITunes/ Feed.php - Add feed authors
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Extension/ ITunes/ Feed.php, line 115
Class
Namespace
Zend\Feed\Writer\Extension\ITunesCode
public function addItunesAuthor($value) {
if ($this->stringWrapper
->strlen($value) > 255) {
throw new Writer\Exception\InvalidArgumentException('invalid parameter: any "author" may only' . ' contain a maximum of 255 characters each');
}
if (!isset($this->data['authors'])) {
$this->data['authors'] = [];
}
$this->data['authors'][] = $value;
return $this;
}