public function actionNameEquals($name) {
        $actionName = strtolower($this->actionName);

        if (is_array($name)) {
            foreach ($name as $n) {
                if ($actionName == strtolower($n)) {
                    return true;
                }
            }

            return false;
        }
        else {
            return $actionName == strtolower($name);
        }
    }
public function actionNameEquals($name) {
        $actionName = strtolower($this->actionName);

        if (is_array($name)) {
            foreach ($name as $n) {
                if ($actionName == strtolower($n)) {
                    return true;
                }
            }

            return false;
        }
        else {
            return $actionName == strtolower($name);
        }
    }
public function actionNameEquals ( $ name ) { $ actionName = strtolower ( $ this -> actionName ) ; if ( is_array ( $ name ) ) { foreach ( $ name as $ n ) { if ( $ actionName == strtolower ( $ n ) ) { return true ; } } return false ; } else { return $ actionName == strtolower ( $ name ) ; } }
Checks the equivalence of the specified string with the name of the action.

@param string|array $name The string or string array to compare.

@return bool
Checks the equivalence of the specified string with the name of the action .