Prado\Web\UI\TControl::render PHP Метод

render() публичный Метод

This method is invoked by {@link renderControl} when the control is visible. You can override this method to provide customized rendering of the control. By default, the control simply renders all its child contents.
public render ( $writer )
    public function render($writer)
    {
        $this->renderChildren($writer);
    }

Usage Example

Пример #1
0
 /**
  * Renders the literal control.
  * @param THtmlWriter the writer used for the rendering purpose
  */
 public function render($writer)
 {
     if (($text = $this->getText()) !== '') {
         if ($this->getEncode()) {
             $writer->write(THttpUtility::htmlEncode($text));
         } else {
             $writer->write($text);
         }
     } else {
         parent::render($writer);
     }
 }
All Usage Examples Of Prado\Web\UI\TControl::render
TControl