ACL rewrite
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user