Prado\Web\UI\WebControls\TWebControl::renderEndTag PHP 메소드

renderEndTag() 공개 메소드

Renders the closing tag for the control
public renderEndTag ( $writer )
    public function renderEndTag($writer)
    {
        if ($decorator = $this->getDecorator(false)) {
            $decorator->renderPostContentsText($writer);
            $writer->renderEndTag();
            $decorator->renderPostTagText($writer);
        } else {
            $writer->renderEndTag($writer);
        }
    }

Usage Example

예제 #1
0
 /**
  * Renders the datagrid.
  * @param THtmlWriter writer for the rendering purpose
  */
 public function render($writer)
 {
     if ($this->getHasControls()) {
         $this->groupCells();
         if ($this->_useEmptyTemplate) {
             $control = new TWebControl();
             $control->setID($this->getClientID());
             $control->copyBaseAttributes($this);
             if ($this->getHasStyle()) {
                 $control->getStyle()->copyFrom($this->getStyle());
             }
             $control->renderBeginTag($writer);
             $this->renderContents($writer);
             $control->renderEndTag($writer);
         } else {
             if ($this->getViewState('ItemCount', 0) > 0) {
                 $this->applyItemStyles();
                 if ($this->_topPager) {
                     $this->_topPager->renderControl($writer);
                     $writer->writeLine();
                 }
                 $this->renderTable($writer);
                 if ($this->_bottomPager) {
                     $writer->writeLine();
                     $this->_bottomPager->renderControl($writer);
                 }
             }
         }
     }
 }
All Usage Examples Of Prado\Web\UI\WebControls\TWebControl::renderEndTag