public function controllerNameEquals($name) {
        $controllerName = strtolower($this->getControllerName());

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

            return false;
        }
        else {
            return $controllerName == strtolower($name);
        }
    }
public function controllerNameEquals($name) {
        $controllerName = strtolower($this->getControllerName());

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

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

@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 controller .