MediaWiki REL1_37
LegacyArticleIdAccess.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Page;
4
5use 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}
Represents a title within MediaWiki.
Definition Title.php:48
Interface for objects (potentially) representing an editable wiki page.