MediaWiki
master
LegacyArticleIdAccess.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Page
;
4
5
use
Title
;
6
26
trait
LegacyArticleIdAccess
{
41
protected
function
getArticleId( PageIdentity
$title
):
int
{
42
if
(
$title
instanceof
Title
) {
43
return
$title
->getArticleID();
44
}
45
return
$title
->getId( $this->getWikiId() );
46
}
47
53
abstract
protected
function
getWikiId();
54
}
MediaWiki\Page\LegacyArticleIdAccess
trait LegacyArticleIdAccess
Definition:
LegacyArticleIdAccess.php:26
$title
$title
Definition:
testCompression.php:38
Title
Represents a title within MediaWiki.
Definition:
Title.php:46
MediaWiki\Page
Definition:
ContentModelChangeFactory.php:23
includes
page
LegacyArticleIdAccess.php
Generated on Sat Mar 20 2021 18:09:13 for MediaWiki by
1.8.19