Prado\Web\UI\WebControls\TDataList::render PHP Méthode

render() public méthode

This method overrides the parent implementation.
public render ( $writer )
    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);
                }
            }
        }
    }

Usage Example

Exemple #1
0
 /**
  * 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>');
 }
TDataList