public function Feed::getCopyright in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Feed.php \Zend\Feed\Reader\Extension\Atom\Feed::getCopyright()
- 8 vendor/zendframework/zend-feed/src/Reader/Extension/DublinCore/Feed.php \Zend\Feed\Reader\Extension\DublinCore\Feed::getCopyright()
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/DublinCore/Feed.php \Zend\Feed\Reader\Extension\DublinCore\Feed::getCopyright()
Get the copyright entry
Return value
string|null
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Extension/ DublinCore/ Feed.php, line 84
Class
Namespace
Zend\Feed\Reader\Extension\DublinCoreCode
public function getCopyright() {
if (array_key_exists('copyright', $this->data)) {
return $this->data['copyright'];
}
$copyright = $this
->getXpath()
->evaluate('string(' . $this
->getXpathPrefix() . '/dc11:rights)');
if (!$copyright) {
$copyright = $this
->getXpath()
->evaluate('string(' . $this
->getXpathPrefix() . '/dc10:rights)');
}
if (!$copyright) {
$copyright = null;
}
$this->data['copyright'] = $copyright;
return $this->data['copyright'];
}