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 )
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 /**
  * Registers the head control with the current page.
  * This method is invoked when the control enters 'Init' stage.
  * The method raises 'Init' event.
  * If you override this method, be sure to call the parent implementation
  * so that the event handlers can be invoked.
  * @param TEventParameter event parameter to be passed to the event handlers
  */
 public function onInit($param)
 {
     parent::onInit($param);
     $this->getPage()->setHead($this);
 }