protected function Entry::_setCommentCount in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-feed/src/Writer/Extension/Threading/Renderer/Entry.php \Zend\Feed\Writer\Extension\Threading\Renderer\Entry::_setCommentCount()
- 8 vendor/zendframework/zend-feed/src/Writer/Extension/Slash/Renderer/Entry.php \Zend\Feed\Writer\Extension\Slash\Renderer\Entry::_setCommentCount()
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Extension/Slash/Renderer/Entry.php \Zend\Feed\Writer\Extension\Slash\Renderer\Entry::_setCommentCount()
Set entry comment count
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to Entry::_setCommentCount()
- Entry::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Extension/ Slash/ Renderer/ Entry.php - Render entry
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Extension/ Slash/ Renderer/ Entry.php, line 63
Class
Namespace
Zend\Feed\Writer\Extension\Slash\RendererCode
protected function _setCommentCount(DOMDocument $dom, DOMElement $root) {
$count = $this
->getDataContainer()
->getCommentCount();
if (!$count) {
$count = 0;
}
$tcount = $this->dom
->createElement('slash:comments');
$tcount->nodeValue = $count;
$root
->appendChild($tcount);
$this->called = true;
}