Prado\Web\UI\TControl::onPreRender PHP Method

onPreRender() public method

The method raises 'OnPreRender' event. If you override this method, be sure to call the parent implementation so that the event handlers can be invoked.
public onPreRender ( $param )
    public function onPreRender($param)
    {
        $this->raiseEvent('OnPreRender', $this, $param);
    }

Usage Example

Esempio n. 1
0
 /**
  * Calls the client script manager to add each of the requested client
  * script libraries.
  * @param mixed event parameter
  */
 public function onPreRender($param)
 {
     parent::onPreRender($param);
     $scripts = preg_split('/,|\\s+/', $this->getPradoScripts());
     $cs = $this->getPage()->getClientScript();
     foreach ($scripts as $script) {
         if (($script = trim($script)) !== '') {
             $cs->registerPradoScript($script);
         }
     }
 }
All Usage Examples Of Prado\Web\UI\TControl::onPreRender
TControl