MediaWiki
1.42.1
LegacyArticleIdAccess.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Page
;
4
5
use
MediaWiki\Title\Title
;
6
25
trait LegacyArticleIdAccess {
40
protected
function
getArticleId(
PageIdentity
$title ):
int
{
41
if
( $title instanceof
Title
) {
42
return
$title->getArticleID();
43
}
44
return
$title->
getId
( $this->getWikiId() );
45
}
46
52
abstract
protected
function
getWikiId();
53
}
MediaWiki\Title\Title
Represents a title within MediaWiki.
Definition
Title.php:78
MediaWiki\Page\PageIdentity
Interface for objects (potentially) representing an editable wiki page.
Definition
PageIdentity.php:67
MediaWiki\Page\PageIdentity\getId
getId( $wikiId=self::LOCAL)
Returns the page ID.
MediaWiki\Page
Definition
ContentModelChangeFactory.php:22
includes
page
LegacyArticleIdAccess.php
Generated on Thu Jun 27 2024 15:59:41 for MediaWiki by
1.10.0