Prado\Web\UI\WebControls\TRepeater::render PHP 메소드

render() 공개 메소드

This method overrides the parent implementation by rendering the body content as the whole presentation of the repeater. Outer tag is not rendered.
public render ( $writer )
    public function render($writer)
    {
        if ($this->_items && $this->_items->getCount() || $this->_emptyTemplate !== null || $this->getEmptyRenderer() !== '') {
            $this->renderContents($writer);
        }
    }

Usage Example

예제 #1
0
 /**
  * Renders the repeater by writing a {@link getSurroundingTag()} with the container id obtained
  * from {@link getSurroundingTagID()} 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 renderRepeater($writer)
 {
     $writer->addAttribute('id', $this->getSurroundingTagID());
     $writer->renderBeginTag($this->getSurroundingTag());
     parent::render($writer);
     $writer->renderEndTag();
 }