ACL rewrite

This commit is contained in:
2024-04-23 12:14:28 +02:00
parent d6c6572989
commit aea20b7a10
23 changed files with 435 additions and 180 deletions

View File

@@ -48,6 +48,10 @@ namespace Core\API\Language {
return $this->success;
}
public static function getDescription(): string {
return "Allows users to retrieve a list of built-in languages";
}
}
class Set extends LanguageAPI {
@@ -109,6 +113,10 @@ namespace Core\API\Language {
$this->result["language"] = $this->language->jsonSerialize();
return $this->success;
}
public static function getDescription(): string {
return "Allows users to set their preferred language";
}
}
class GetEntries extends LanguageAPI {
@@ -172,5 +180,9 @@ namespace Core\API\Language {
}
return true;
}
public static function getDescription(): string {
return "Returns a set of translations for the given language and module";
}
}
}