initAction() protected method

initAction[$action] and calls it.
protected initAction ( string $action )
$action string
示例#1
0
 /**
  * Set up some key js vars.
  *
  * @param string $action
  */
 protected function initAction($action)
 {
     parent::initAction($action);
     if (in_array($action, array('create', 'update'))) {
         $this->jsVars['OE_gp_id'] = $this->patient->gp_id;
         $this->jsVars['OE_practice_id'] = $this->patient->practice_id;
         $this->loadDirectLines();
     }
 }