public function actionExists($id)
    {
        $inlineActionMethodName = 'action' . Inflector::camelize($id);
        if (method_exists($this->controller, $inlineActionMethodName)) {
            return true;
        }
        if (array_key_exists($id, $this->controller->actions())) {
            return true;
        }
        return false;
    }
public function actionExists($id)
    {
        $inlineActionMethodName = 'action' . Inflector::camelize($id);
        if (method_exists($this->controller, $inlineActionMethodName)) {
            return true;
        }
        if (array_key_exists($id, $this->controller->actions())) {
            return true;
        }
        return false;
    }
public function actionExists ( $ id ) { $ inlineActionMethodName = 'action' . Inflector :: camelize ( $ id ) ; if ( method_exists ( $ this -> controller , $ inlineActionMethodName ) ) { return true ; } if ( array_key_exists ( $ id , $ this -> controller -> actions ( ) ) ) { return true ; } return false ; }
Checks whether action with specified ID exists in owner controller.
@param string $id action ID.
@return boolean whether action exists or not.
Checks whether action with specified ID exists in owner controller .