public function getAllActivity():Renderer
    {
        $locales = [];
        $elems = Locale::getAll();
        foreach ($elems as $one => $value) {
            if (null === $value) {
                $locales[] = ["app" => $one, "enabled" => false, "values" => [],
                   "prefered" => null, "transtype" => null,
                   "route_status_change" =>
                       $this->generateRoute(
                           "iumio_manager_locale_manager_framework_change_status_app",
                           ["appname" => $one, "status" => "enabled"]
                       ),
                   "route_get_one_locale_app_save" =>
                       $this->generateRoute(
                           "iumio_manager_locale_manager_edit_one",
                           ["appname" => $one]
                       ),
                       "route_get_one_locale_app" =>
                           $this->generateRoute(
                               "iumio_manager_locale_manager_get_one",
                               ["appname" => $one]
                           )];
            } else {
                $locales[] = ["app" => $one, "enabled" => $value->isEnabled(), "values" => $value->getValues(),
                   "prefered" => $value->getPrefer(), "transtype" => $value->getTranstype(), "route_status_change" =>
                       $this->generateRoute(
                           "iumio_manager_locale_manager_framework_change_status_app",
                           ["appname" => $one, "status" => ((true === $value->isEnabled())? "disabled" : "enabled")]
                       ),
                   "route_get_one_locale_app_save" =>
                       $this->generateRoute(
                           "iumio_manager_locale_manager_edit_one",
                           ["appname" => $one]
                       ),
                   "route_get_one_locale_app" => $this->generateRoute(
                       "iumio_manager_locale_manager_get_one",
                       ["appname" => $one]
                   )];
            }
        }
        return ((new Renderer())->jsonRenderer(array("code" => 200, "results" => $locales)));
    }
public function getAllActivity():Renderer
    {
        $locales = [];
        $elems = Locale::getAll();
        foreach ($elems as $one => $value) {
            if (null === $value) {
                $locales[] = ["app" => $one, "enabled" => false, "values" => [],
                   "prefered" => null, "transtype" => null,
                   "route_status_change" =>
                       $this->generateRoute(
                           "iumio_manager_locale_manager_framework_change_status_app",
                           ["appname" => $one, "status" => "enabled"]
                       ),
                   "route_get_one_locale_app_save" =>
                       $this->generateRoute(
                           "iumio_manager_locale_manager_edit_one",
                           ["appname" => $one]
                       ),
                       "route_get_one_locale_app" =>
                           $this->generateRoute(
                               "iumio_manager_locale_manager_get_one",
                               ["appname" => $one]
                           )];
            } else {
                $locales[] = ["app" => $one, "enabled" => $value->isEnabled(), "values" => $value->getValues(),
                   "prefered" => $value->getPrefer(), "transtype" => $value->getTranstype(), "route_status_change" =>
                       $this->generateRoute(
                           "iumio_manager_locale_manager_framework_change_status_app",
                           ["appname" => $one, "status" => ((true === $value->isEnabled())? "disabled" : "enabled")]
                       ),
                   "route_get_one_locale_app_save" =>
                       $this->generateRoute(
                           "iumio_manager_locale_manager_edit_one",
                           ["appname" => $one]
                       ),
                   "route_get_one_locale_app" => $this->generateRoute(
                       "iumio_manager_locale_manager_get_one",
                       ["appname" => $one]
                   )];
            }
        }
        return ((new Renderer())->jsonRenderer(array("code" => 200, "results" => $locales)));
    }
public function getAllActivity ( ) : Renderer { $ locales = [ ] ; $ elems = Locale :: getAll ( ) ; foreach ( $ elems as $ one => $ value ) { if ( null === $ value ) { $ locales [ ] = [ "app" => $ one , "enabled" => false , "values" => [ ] , "prefered" => null , "transtype" => null , "route_status_change" => $ this -> generateRoute ( "iumio_manager_locale_manager_framework_change_status_app" , [ "appname" => $ one , "status" => "enabled" ] ) , "route_get_one_locale_app_save" => $ this -> generateRoute ( "iumio_manager_locale_manager_edit_one" , [ "appname" => $ one ] ) , "route_get_one_locale_app" => $ this -> generateRoute ( "iumio_manager_locale_manager_get_one" , [ "appname" => $ one ] ) ] ; } else { $ locales [ ] = [ "app" => $ one , "enabled" => $ value -> isEnabled ( ) , "values" => $ value -> getValues ( ) , "prefered" => $ value -> getPrefer ( ) , "transtype" => $ value -> getTranstype ( ) , "route_status_change" => $ this -> generateRoute ( "iumio_manager_locale_manager_framework_change_status_app" , [ "appname" => $ one , "status" => ( ( true === $ value -> isEnabled ( ) ) ? "disabled" : "enabled" ) ] ) , "route_get_one_locale_app_save" => $ this -> generateRoute ( "iumio_manager_locale_manager_edit_one" , [ "appname" => $ one ] ) , "route_get_one_locale_app" => $ this -> generateRoute ( "iumio_manager_locale_manager_get_one" , [ "appname" => $ one ] ) ] ; } } return ( ( new Renderer ( ) ) -> jsonRenderer ( array ( "code" => 200 , "results" => $ locales ) ) ) ; }
Get all locale
@return Renderer
@throws Server500
@throws \Exception
Get all locale