protected static function _controllerMethods($className)
    {
        if (!class_exists($className)) {
            return [];
        }

        $methods = (array)get_this_class_methods($className);
        $actions = [];
        foreach ($methods as $methodName) {
            try {
                $method = new ReflectionMethod($className, $methodName);
                if ($method->isPublic()) {
                    $actions[] = $methodName;
                }
            } catch (\ReflectionException $e) {
                // error
            }
        }

        return $actions;
    }
protected static function _controllerMethods($className)
    {
        if (!class_exists($className)) {
            return [];
        }

        $methods = (array)get_this_class_methods($className);
        $actions = [];
        foreach ($methods as $methodName) {
            try {
                $method = new ReflectionMethod($className, $methodName);
                if ($method->isPublic()) {
                    $actions[] = $methodName;
                }
            } catch (\ReflectionException $e) {
                // error
            }
        }

        return $actions;
    }
protected static function _controllerMethods ( $ className ) { if ( ! class_exists ( $ className ) ) { return [ ] ; } $ methods = ( array ) get_this_class_methods ( $ className ) ; $ actions = [ ] ; foreach ( $ methods as $ methodName ) { try { $ method = new ReflectionMethod ( $ className , $ methodName ) ; if ( $ method -> isPublic ( ) ) { $ actions [ ] = $ methodName ; } } catch ( \ ReflectionException $ e ) { // error } } return $ actions ; }
Extracts method names of the given controller class.

@param string $className Fully qualified name
@return array List of method names
Extracts method names of the given controller class .