MediaWiki
REL1_39
LegacyArticleIdAccess.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Page
;
4
5
use
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
}
Title
Represents a title within MediaWiki.
Definition
Title.php:49
MediaWiki\Page\PageIdentity
Interface for objects (potentially) representing an editable wiki page.
Definition
PageIdentity.php:64
MediaWiki\Page
Definition
ContentModelChangeFactory.php:22
$title
$title
Definition
testCompression.php:38
includes
page
LegacyArticleIdAccess.php
Generated on Thu Nov 21 2024 05:23:36 for MediaWiki by
1.10.0