public function setCurrentAction($action,array $actionArgs = array()){
        $action = (string) $action;
        if (array_key_exists($action,$this->actions)){
            $this->action = $action;
            $this->configureAction($this->action,$actionArgs);
        }
        return $this;
    }
public function setCurrentAction($action,array $actionArgs = array()){
        $action = (string) $action;
        if (array_key_exists($action,$this->actions)){
            $this->action = $action;
            $this->configureAction($this->action,$actionArgs);
        }
        return $this;
    }
public function setCurrentAction ( $ action , array $ actionArgs = array ( ) ) { $ action = ( string ) $ action ; if ( array_key_exists ( $ action , $ this -> actions ) ) { $ this -> action = $ action ; $ this -> configureAction ( $ this -> action , $ actionArgs ) ; } return $ this ; }
Set the current action taking place on the Model
@param string $action
@param array $actionArgs
@return $this
Set the current action taking place on the Model