74 $this->user = RequestContext::getMain()->getUser();
81 if ( $this->title ===
null ) {
94 if ( !$titleObj || !$titleObj->getArticleID() ) {
102 if ( !$this->permissionManager->userCan(
'read', $this->user, $titleObj ) ) {
111 ->createJson( $this->
fetchLinks( $titleObj->getArticleID() ) );
120 [
'll_from' => $pageId ],
122 [
'ORDER BY' =>
'll_lang' ]
124 foreach (
$res as $item ) {
126 $targetTitle = $this->titleParser->parseTitle( $item->ll_title );
128 'code' => $item->ll_lang,
129 'name' => $this->languageNameUtils->getLanguageName( $item->ll_lang ),
130 'key' => $this->titleFormatter->getPrefixedDBkey( $targetTitle ),
131 'title' => $this->titleFormatter->getPrefixedText( $targetTitle )
147 self::PARAM_SOURCE =>
'path',
148 ParamValidator::PARAM_TYPE =>
'string',
149 ParamValidator::PARAM_REQUIRED =>
true,
178 return $title->getTouched();
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
Group all the pieces relevant to the context of a request into one instance @newable.
Represents a title within MediaWiki.
getLatestRevID( $flags=0)
What is the page_latest field for this page?
getTouched( $db=null)
Get the last touched timestamp.
getArticleID( $flags=0)
Get the article ID for this Title from the link cache, adding it if necessary.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
A title parser service for MediaWiki.