public function Atom::getCategories in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-feed/src/Reader/Entry/Atom.php \Zend\Feed\Reader\Entry\Atom::getCategories()
- 8 vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php \Zend\Feed\Reader\Feed\Atom::getCategories()
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Reader/Entry/Atom.php \Zend\Feed\Reader\Entry\Atom::getCategories()
Get category data as a Reader\Reader_Collection_Category object
Return value
Reader\Collection\Category
Overrides EntryInterface::getCategories
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Entry/ Atom.php, line 322
Class
Namespace
Zend\Feed\Reader\EntryCode
public function getCategories() {
if (array_key_exists('categories', $this->data)) {
return $this->data['categories'];
}
$categoryCollection = $this
->getExtension('Atom')
->getCategories();
if (count($categoryCollection) == 0) {
$categoryCollection = $this
->getExtension('DublinCore')
->getCategories();
}
$this->data['categories'] = $categoryCollection;
return $this->data['categories'];
}