protected function Entry::_setCommentCount in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-feed/src/Writer/Extension/Threading/Renderer/Entry.php \Zend\Feed\Writer\Extension\Threading\Renderer\Entry::_setCommentCount()
- 8.0 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 vendor/zendframework/zend-feed/src/Writer/Extension/Threading/Renderer/Entry.php \Zend\Feed\Writer\Extension\Threading\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/ Threading/ Renderer/ Entry.php - Render entry
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Extension/ Threading/ Renderer/ Entry.php, line 117
Class
Namespace
Zend\Feed\Writer\Extension\Threading\RendererCode
protected function _setCommentCount(DOMDocument $dom, DOMElement $root) {
$count = $this
->getDataContainer()
->getCommentCount();
if ($count === null) {
return;
}
$tcount = $this->dom
->createElement('thr:total');
$tcount->nodeValue = $count;
$root
->appendChild($tcount);
$this->called = true;
}