public function AbstractFeed::addCategories in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/AbstractFeed.php \Zend\Feed\Writer\AbstractFeed::addCategories()
Set an array of feed categories
Parameters
array $categories:
Return value
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ AbstractFeed.php, line 513
Class
Namespace
Zend\Feed\WriterCode
public function addCategories(array $categories) {
foreach ($categories as $category) {
$this
->addCategory($category);
}
return $this;
}