public static function widgets()
    {
        //====================================================================//
        // Check if Widget Manager is Overriden
        if (self::local() instanceof WidgetsProviderInterface) {
            return self::local()->widgets();
        }
        $widgetTypes = array();
        //====================================================================//
        // Safety Check => Verify Objects Folder Exists
        $path = self::getLocalPath().'/Widgets';
        if (!is_dir($path)) {
            return $widgetTypes;
        }
        //====================================================================//
        // Scan Local Objects Folder
        $scan = scandir($path, 1);
        if (false == $scan) {
            return $widgetTypes;
        }
        //====================================================================//
        // Scan Each File in Folder
        $files = array_diff($scan, array('..', '.', 'index.php', 'index.html'));
        foreach ($files as $filename) {
            $className = pathinfo($path.'/'.$filename, PATHINFO_FILENAME);
            //====================================================================//
            // Verify ClassName is a Valid Object File
            if (false == self::validate()->isValidWidget($className)) {
                continue;
            }
            $widgetTypes[] = $className;
        }

        return $widgetTypes;
    }
public static function widgets()
    {
        //====================================================================//
        // Check if Widget Manager is Overriden
        if (self::local() instanceof WidgetsProviderInterface) {
            return self::local()->widgets();
        }
        $widgetTypes = array();
        //====================================================================//
        // Safety Check => Verify Objects Folder Exists
        $path = self::getLocalPath().'/Widgets';
        if (!is_dir($path)) {
            return $widgetTypes;
        }
        //====================================================================//
        // Scan Local Objects Folder
        $scan = scandir($path, 1);
        if (false == $scan) {
            return $widgetTypes;
        }
        //====================================================================//
        // Scan Each File in Folder
        $files = array_diff($scan, array('..', '.', 'index.php', 'index.html'));
        foreach ($files as $filename) {
            $className = pathinfo($path.'/'.$filename, PATHINFO_FILENAME);
            //====================================================================//
            // Verify ClassName is a Valid Object File
            if (false == self::validate()->isValidWidget($className)) {
                continue;
            }
            $widgetTypes[] = $className;
        }

        return $widgetTypes;
    }
public static function widgets ( ) { //====================================================================// // Check if Widget Manager is Overriden if ( self :: local ( ) instanceof WidgetsProviderInterface ) { return self :: local ( ) -> widgets ( ) ; } $ widgetTypes = array ( ) ; //====================================================================// // Safety Check => Verify Objects Folder Exists $ path = self :: getLocalPath ( ) . '/Widgets' ; if ( ! is_dir ( $ path ) ) { return $ widgetTypes ; } //====================================================================// // Scan Local Objects Folder $ scan = scandir ( $ path , 1 ) ; if ( false == $ scan ) { return $ widgetTypes ; } //====================================================================// // Scan Each File in Folder $ files = array_diff ( $ scan , array ( '..' , '.' , 'index.php' , 'index.html' ) ) ; foreach ( $ files as $ filename ) { $ className = pathinfo ( $ path . '/' . $ filename , PATHINFO_FILENAME ) ; //====================================================================// // Verify ClassName is a Valid Object File if ( false == self :: validate ( ) -> isValidWidget ( $ className ) ) { continue ; } $ widgetTypes [ ] = $ className ; } return $ widgetTypes ; }
Build list of Available Widgets

@return array
Build list of Available Widgets