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

onInit() public method

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

Usage Example

Beispiel #1
0
 /**
  * Initializes the active view if any.
  * This method overrides the parent implementation.
  * @param TEventParameter event parameter
  */
 public function onInit($param)
 {
     parent::onInit($param);
     if ($this->_cachedActiveViewIndex >= 0) {
         $this->setActiveViewIndex($this->_cachedActiveViewIndex);
     }
 }
All Usage Examples Of Prado\Web\UI\TControl::onInit
TControl