MediaWiki master
|
Inherits MediaWiki\Rest\Handler\Helper\PageContentHelper.
Public Member Functions | |
checkAccess () | |
constructMetadata () | |
getPage () | |
getParamSettings () | |
getResponseBodySchema () | |
Returns an OpenAPI schema object describing the structure of the response. | |
getRevisionId () | |
getTargetRevision () | |
getTitleText () | |
hasContent () | |
isAccessible () | |
setCacheControl (ResponseInterface $response, int $expiry=null) | |
Sets the 'Cache-Control' header no more then provided $expiry. | |
Public Member Functions inherited from MediaWiki\Rest\Handler\Helper\PageContentHelper | |
__construct (ServiceOptions $options, RevisionLookup $revisionLookup, TitleFormatter $titleFormatter, PageLookup $pageLookup, TitleFactory $titleFactory, IConnectionProvider $connectionProvider, ChangeTagsStore $changeTagStore) | |
checkAccessPermission () | |
checkHasContent () | |
constructRestbaseCompatibleMetadata () | |
getContent () | |
getDefaultSystemMessage () | |
getETag () | |
Returns an ETag representing a page's source. | |
getLastModified () | |
getPageIdentity () | |
getRole () | |
init (Authority $authority, array $parameters) | |
useDefaultSystemMessage () | |
If the page is a system message page. | |
Additional Inherited Members | |
Public Attributes inherited from MediaWiki\Rest\Handler\Helper\PageContentHelper | |
const | CONSTRUCTOR_OPTIONS |
Protected Attributes inherited from MediaWiki\Rest\Handler\Helper\PageContentHelper | |
Authority null | $authority = null |
ServiceOptions | $options |
PageLookup | $pageLookup |
ExistingPageRecord false null | $pageRecord = false |
string[] | $parameters = null |
RevisionLookup | $revisionLookup |
RevisionRecord false null | $targetRevision = false |
TitleFormatter | $titleFormatter |
Definition at line 18 of file RevisionContentHelper.php.
MediaWiki\Rest\Handler\Helper\RevisionContentHelper::checkAccess | ( | ) |
LocalizedHttpException | if the content is not accessible |
Reimplemented from MediaWiki\Rest\Handler\Helper\PageContentHelper.
Definition at line 248 of file RevisionContentHelper.php.
MediaWiki\Rest\Handler\Helper\RevisionContentHelper::constructMetadata | ( | ) |
Reimplemented from MediaWiki\Rest\Handler\Helper\PageContentHelper.
Definition at line 102 of file RevisionContentHelper.php.
MediaWiki\Rest\Handler\Helper\RevisionContentHelper::getPage | ( | ) |
Reimplemented from MediaWiki\Rest\Handler\Helper\PageContentHelper.
Definition at line 40 of file RevisionContentHelper.php.
MediaWiki\Rest\Handler\Helper\RevisionContentHelper::getParamSettings | ( | ) |
Reimplemented from MediaWiki\Rest\Handler\Helper\PageContentHelper.
Definition at line 235 of file RevisionContentHelper.php.
MediaWiki\Rest\Handler\Helper\RevisionContentHelper::getResponseBodySchema | ( | ) |
Returns an OpenAPI schema object describing the structure of the response.
Definition at line 156 of file RevisionContentHelper.php.
MediaWiki\Rest\Handler\Helper\RevisionContentHelper::getRevisionId | ( | ) |
Definition at line 23 of file RevisionContentHelper.php.
MediaWiki\Rest\Handler\Helper\RevisionContentHelper::getTargetRevision | ( | ) |
Reimplemented from MediaWiki\Rest\Handler\Helper\PageContentHelper.
Definition at line 48 of file RevisionContentHelper.php.
MediaWiki\Rest\Handler\Helper\RevisionContentHelper::getTitleText | ( | ) |
Reimplemented from MediaWiki\Rest\Handler\Helper\PageContentHelper.
Definition at line 30 of file RevisionContentHelper.php.
MediaWiki\Rest\Handler\Helper\RevisionContentHelper::hasContent | ( | ) |
Reimplemented from MediaWiki\Rest\Handler\Helper\PageContentHelper.
Definition at line 84 of file RevisionContentHelper.php.
MediaWiki\Rest\Handler\Helper\RevisionContentHelper::isAccessible | ( | ) |
Reimplemented from MediaWiki\Rest\Handler\Helper\PageContentHelper.
Definition at line 63 of file RevisionContentHelper.php.
MediaWiki\Rest\Handler\Helper\RevisionContentHelper::setCacheControl | ( | ResponseInterface | $response, |
int | $expiry = null ) |
Sets the 'Cache-Control' header no more then provided $expiry.
ResponseInterface | $response | |
int | null | $expiry |
Reimplemented from MediaWiki\Rest\Handler\Helper\PageContentHelper.
Definition at line 88 of file RevisionContentHelper.php.