Prado\Web\UI\WebControls\TWebControl::render PHP Method

render() public method

This method overrides the parent implementation by replacing it with the following sequence: - {@link renderBeginTag} - {@link renderContents} - {@link renderEndTag}
public render ( $writer )
    public function render($writer)
    {
        $this->renderBeginTag($writer);
        $this->renderContents($writer);
        $this->renderEndTag($writer);
    }

Usage Example

Beispiel #1
0
 /**
  * Renders the label.
  * It overrides the parent implementation by checking if an associated
  * control is visible or not. If not, the label will not be rendered.
  * @param THtmlWriter writer
  */
 public function render($writer)
 {
     if (($aid = $this->getForControl()) !== '') {
         if ($control = $this->findControl($aid)) {
             if ($control->getVisible(true)) {
                 $this->_forControl = $control->getClientID();
                 parent::render($writer);
             }
         } else {
             throw new TInvalidDataValueException('label_associatedcontrol_invalid', $aid);
         }
     } else {
         parent::render($writer);
     }
 }
All Usage Examples Of Prado\Web\UI\WebControls\TWebControl::render