public function Feed::setItunesKeywords 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::setItunesKeywords()
Set feed keywords
Parameters
array $value:
Return value
Throws
Writer\Exception\InvalidArgumentException
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Extension/ ITunes/ Feed.php, line 232
Class
Namespace
Zend\Feed\Writer\Extension\ITunesCode
public function setItunesKeywords(array $value) {
if (count($value) > 12) {
throw new Writer\Exception\InvalidArgumentException('invalid parameter: "keywords" may only' . ' contain a maximum of 12 terms');
}
$concat = implode(',', $value);
if ($this->stringWrapper
->strlen($concat) > 255) {
throw new Writer\Exception\InvalidArgumentException('invalid parameter: "keywords" may only' . ' have a concatenated length of 255 chars where terms are delimited' . ' by a comma');
}
$this->data['keywords'] = $value;
return $this;
}