MediaWiki  master
LegacyArticleIdAccess.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Page;
4 
5 use Title;
6 
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