public static function flagsList()
    {
        $flags = [];
        $Folder = new Folder(Plugin::path('Locale') . 'webroot/img/flags/');

        foreach ($Folder->read()[1] as $icon) {
            $value = $icon;
            $label = str_replace_last('.gif', '', $icon);
            $flags[$value] = $label;
        }

        asort($flags);

        return $flags;
    }
public static function flagsList()
    {
        $flags = [];
        $Folder = new Folder(Plugin::path('Locale') . 'webroot/img/flags/');

        foreach ($Folder->read()[1] as $icon) {
            $value = $icon;
            $label = str_replace_last('.gif', '', $icon);
            $flags[$value] = $label;
        }

        asort($flags);

        return $flags;
    }
public static function flagsList ( ) { $ flags = [ ] ; $ Folder = new Folder ( Plugin :: path ( 'Locale' ) . 'webroot/img/flags/' ) ; foreach ( $ Folder -> read ( ) [ 1 ] as $ icon ) { $ value = $ icon ; $ label = str_replace_last ( '.gif' , '' , $ icon ) ; $ flags [ $ value ] = $ label ; } asort ( $ flags ) ; return $ flags ; }
Gets a list of counties flags suitable for select boxes.

@return array
Gets a list of counties flags suitable for select boxes .