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

onPreRender() public method

If your subclass overrides the onPreRender method be sure to call this method through parent::onPreRender($param); so your sub-class can be decorated, among other things.
public onPreRender ( $param )
    public function onPreRender($param)
    {
        if ($decorator = $this->getDecorator(false)) {
            $decorator->instantiate();
        }
        parent::onPreRender($param);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Ensures any pending databind is performed.
  * This method overrides the parent implementation.
  * @param TEventParameter event parameter
  */
 public function onPreRender($param)
 {
     $this->_prerendered = true;
     $this->ensureDataBound();
     parent::onPreRender($param);
 }
All Usage Examples Of Prado\Web\UI\WebControls\TWebControl::onPreRender