MediaWiki REL1_39
|
Public Member Functions | |
__construct (Config $config, RevisionLookup $revisionLookup, TitleFormatter $titleFormatter, PageLookup $pageLookup) | |
checkAccess () | |
constructMetadata () | |
getContent () | |
getETag () | |
Returns an ETag representing a page's source. | |
getLastModified () | |
getPage () | |
getParamSettings () | |
getRole () | |
getTargetRevision () | |
Returns the target revision. | |
getTitleText () | |
hasContent () | |
Checks whether content exists. | |
init (Authority $authority, array $parameters) | |
isAccessible () | |
setCacheControl (ResponseInterface $response, int $expiry=null) | |
Sets the 'Cache-Control' header no more then provided $expiry. | |
Protected Attributes | |
Authority null | $authority = null |
Config | $config |
PageLookup | $pageLookup |
ExistingPageRecord false null | $pageRecord = false |
string[] | $parameters = null |
RevisionLookup | $revisionLookup |
RevisionRecord false null | $targetRevision = false |
TitleFormatter | $titleFormatter |
Definition at line 26 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::__construct | ( | Config | $config, |
RevisionLookup | $revisionLookup, | ||
TitleFormatter | $titleFormatter, | ||
PageLookup | $pageLookup ) |
Config | $config | |
RevisionLookup | $revisionLookup | |
TitleFormatter | $titleFormatter | |
PageLookup | $pageLookup |
Definition at line 59 of file PageContentHelper.php.
References MediaWiki\Rest\Handler\PageContentHelper\$config, MediaWiki\Rest\Handler\PageContentHelper\$pageLookup, MediaWiki\Rest\Handler\PageContentHelper\$revisionLookup, and MediaWiki\Rest\Handler\PageContentHelper\$titleFormatter.
MediaWiki\Rest\Handler\PageContentHelper::checkAccess | ( | ) |
LocalizedHttpException | if the content is not accessible |
Reimplemented in MediaWiki\Rest\Handler\RevisionContentHelper.
Definition at line 270 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::constructMetadata | ( | ) |
Reimplemented in MediaWiki\Rest\Handler\RevisionContentHelper.
Definition at line 214 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::getContent | ( | ) |
LocalizedHttpException | slot content is not TextContent or RevisionRecord/Slot is inaccessible |
Definition at line 127 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::getETag | ( | ) |
Returns an ETag representing a page's source.
The ETag assumes a page's source has changed if the latest revision of a page has been made private, un-readable for another reason, or a newer revision exists.
Definition at line 176 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::getLastModified | ( | ) |
Definition at line 190 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::getPage | ( | ) |
Reimplemented in MediaWiki\Rest\Handler\RevisionContentHelper.
Definition at line 90 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::getParamSettings | ( | ) |
Reimplemented in MediaWiki\Rest\Handler\RevisionContentHelper.
Definition at line 240 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::getRole | ( | ) |
Definition at line 119 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::getTargetRevision | ( | ) |
Returns the target revision.
No permission checks are applied.
Reimplemented in MediaWiki\Rest\Handler\RevisionContentHelper.
Definition at line 106 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::getTitleText | ( | ) |
Reimplemented in MediaWiki\Rest\Handler\RevisionContentHelper.
Definition at line 83 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::hasContent | ( | ) |
Checks whether content exists.
Permission checks are not considered.
Reimplemented in MediaWiki\Rest\Handler\RevisionContentHelper.
Definition at line 207 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::init | ( | Authority | $authority, |
array | $parameters ) |
Authority | $authority | |
string[] | $parameters | validated parameters |
Definition at line 75 of file PageContentHelper.php.
References MediaWiki\Rest\Handler\PageContentHelper\$authority, and MediaWiki\Rest\Handler\PageContentHelper\$parameters.
MediaWiki\Rest\Handler\PageContentHelper::isAccessible | ( | ) |
Reimplemented in MediaWiki\Rest\Handler\RevisionContentHelper.
Definition at line 165 of file PageContentHelper.php.
MediaWiki\Rest\Handler\PageContentHelper::setCacheControl | ( | ResponseInterface | $response, |
int | $expiry = null ) |
Sets the 'Cache-Control' header no more then provided $expiry.
ResponseInterface | $response | |
int | null | $expiry |
Reimplemented in MediaWiki\Rest\Handler\RevisionContentHelper.
Definition at line 255 of file PageContentHelper.php.
References MediaWiki\Rest\ResponseInterface\setHeader().
|
protected |
Definition at line 42 of file PageContentHelper.php.
Referenced by MediaWiki\Rest\Handler\PageContentHelper\init().
|
protected |
Definition at line 30 of file PageContentHelper.php.
Referenced by MediaWiki\Rest\Handler\PageContentHelper\__construct().
|
protected |
Definition at line 39 of file PageContentHelper.php.
Referenced by MediaWiki\Rest\Handler\PageContentHelper\__construct().
|
protected |
Definition at line 51 of file PageContentHelper.php.
|
protected |
Definition at line 45 of file PageContentHelper.php.
Referenced by MediaWiki\Rest\Handler\PageContentHelper\init().
|
protected |
Definition at line 33 of file PageContentHelper.php.
Referenced by MediaWiki\Rest\Handler\PageContentHelper\__construct().
|
protected |
Definition at line 48 of file PageContentHelper.php.
|
protected |
Definition at line 36 of file PageContentHelper.php.
Referenced by MediaWiki\Rest\Handler\PageContentHelper\__construct().