src/TaskLoader.php
public static function getControllerMethods($class)
    {
        if (!class_exists($class)) {
            throw new TaskManagerException('class ' . $class . ' not found');
        }
        $class_methods = get_class_methods($class);
        if ($parent_class = get_parent_class($class)) {
            $parent_class_methods = get_class_methods($parent_class);
            return array_diff($class_methods, $parent_class_methods);
        }
        return $class_methods;
    }
public static function getControllerMethods($class)
    {
        if (!class_exists($class)) {
            throw new TaskManagerException('class ' . $class . ' not found');
        }
        $class_methods = get_class_methods($class);
        if ($parent_class = get_parent_class($class)) {
            $parent_class_methods = get_class_methods($parent_class);
            return array_diff($class_methods, $parent_class_methods);
        }
        return $class_methods;
    }
public static function getControllerMethods ( $ class ) { if ( ! class_exists ( $ class ) ) { throw new TaskManagerException ( 'class ' . $ class . ' not found' ) ; } $ class_methods = get_class_methods ( $ class ) ; if ( $ parent_class = get_parent_class ( $ class ) ) { $ parent_class_methods = get_class_methods ( $ parent_class ) ; return array_diff ( $ class_methods , $ parent_class_methods ) ; } return $ class_methods ; }
Returns all public methods for requested class
@param string $class
@return array
@throws TaskManagerException
Returns all public methods for requested class