|
MediaWiki master
|
Encapsulates resolved information about a REST module. More...
Public Member Functions | |
| __construct (string $id, ModuleMode $availability, bool $isExternal, ?string $title, ?string $description, ?string $version, ?string $oadSpecPath, array $groups, ?string $externalBaseUrl=null, ?string $externalSpecUrl=null) | |
| getAvailability () | |
| getDescription () | |
| getExternalBaseUrl () | |
| Gets the configured base URL for an external module. | |
| getExternalSpecUrl () | |
| Gets the configured spec URL for an external module. | |
| getGroups () | |
| getId () | |
| getLocalDescriptionSpecPath () | |
| Gets the relative path to the module's OpenAPI OAD spec. | |
| getTitle () | |
| getVersion () | |
| isExternal () | |
Encapsulates resolved information about a REST module.
Definition at line 10 of file ModuleInfo.php.
| MediaWiki\Rest\Module\ModuleInfo::__construct | ( | string | $id, |
| ModuleMode | $availability, | ||
| bool | $isExternal, | ||
| ?string | $title, | ||
| ?string | $description, | ||
| ?string | $version, | ||
| ?string | $oadSpecPath, | ||
| array | $groups, | ||
| ?string | $externalBaseUrl = null, | ||
| ?string | $externalSpecUrl = null ) |
| string | $id | The module ID (e.g., 'site/v1' or '' for prefix-less) |
| ModuleMode | $availability | The module availability |
| bool | $isExternal | Whether the module is external or local |
| ?string | $title | The display name of the module |
| ?string | $description | The description of the module |
| ?string | $version | The version string |
| ?string | $oadSpecPath | Module-relative OAD spec path (e.g. '/openapi.json'), or, null |
| string[] | $groups | The audience designation groups |
| ?string | $externalBaseUrl | The external base URL, or null for local modules |
| ?string | $externalSpecUrl | The external spec URL, or null for local modules |
Definition at line 34 of file ModuleInfo.php.
References isExternal().
| MediaWiki\Rest\Module\ModuleInfo::getAvailability | ( | ) |
Definition at line 62 of file ModuleInfo.php.
References return.
| MediaWiki\Rest\Module\ModuleInfo::getDescription | ( | ) |
Definition at line 74 of file ModuleInfo.php.
References return.
| MediaWiki\Rest\Module\ModuleInfo::getExternalBaseUrl | ( | ) |
Gets the configured base URL for an external module.
Null for local modules.
Definition at line 107 of file ModuleInfo.php.
References return.
| MediaWiki\Rest\Module\ModuleInfo::getExternalSpecUrl | ( | ) |
Gets the configured spec URL for an external module.
Null for local modules.
Definition at line 118 of file ModuleInfo.php.
References return.
| MediaWiki\Rest\Module\ModuleInfo::getGroups | ( | ) |
| MediaWiki\Rest\Module\ModuleInfo::getId | ( | ) |
Definition at line 58 of file ModuleInfo.php.
References return.
| MediaWiki\Rest\Module\ModuleInfo::getLocalDescriptionSpecPath | ( | ) |
Gets the relative path to the module's OpenAPI OAD spec.
Null for external modules or local modules using the default generated description.
Definition at line 89 of file ModuleInfo.php.
References return.
| MediaWiki\Rest\Module\ModuleInfo::getTitle | ( | ) |
Definition at line 70 of file ModuleInfo.php.
References return.
| MediaWiki\Rest\Module\ModuleInfo::getVersion | ( | ) |
Definition at line 78 of file ModuleInfo.php.
References return.
| MediaWiki\Rest\Module\ModuleInfo::isExternal | ( | ) |
Definition at line 66 of file ModuleInfo.php.
References isExternal(), and return.
Referenced by __construct(), and isExternal().