themes::all PHP Méthode

all() public static méthode

public static all ( )
    public static function all()
    {
        $themes = array();
        $fi = new FilesystemIterator(PATH . 'themes', FilesystemIterator::SKIP_DOTS);
        foreach ($fi as $file) {
            if ($file->isDir()) {
                $theme = $file->getFilename();
                if ($about = static::parse($theme)) {
                    $themes[$theme] = $about;
                }
            }
        }
        ksort($themes);
        return $themes;
    }