public function render($writer)
{
if ($this->getHasControls()) {
if ($this->getItemCount() > 0) {
$this->applyItemStyles();
$repeatInfo = $this->getRepeatInfo();
$repeatInfo->renderRepeater($writer, $this);
} else {
if ($this->_emptyTemplate !== null || $this->getEmptyRenderer() !== '') {
parent::render($writer);
}
}
}
}
/** * Renders the repeater by writing a span tag with the container id obtained from {@link getContainerID()} * which will be called by the replacement method of the client script to update it's content. * @param THtmlWriter writer for the rendering purpose */ private function renderDataList($writer) { $writer->write('<span id="' . $this->getContainerID() . '">'); parent::render($writer); $writer->write('</span>'); }