30 public const TYPE =
'page';
69 if ( $this->title ===
null ) {
74 if ( $this->title ===
null ) {
87 $restriction = parent::newFromRow( $row );
88 '@phan-var self $restriction';
92 if ( isset( $row->page_namespace ) && isset( $row->page_title ) ) {
95 $row->page_id = $row->ir_value;
97 $restriction->setTitle(
$title );
110 if ( is_string(
$title ) ) {
116 $restriction->setTitle(
$title );
Represents a title within MediaWiki.
static newFromID( $id, $flags=0)
Create a new Title from an article ID.
equals(object $other)
Compares with another Title.
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
getArticleID( $flags=0)
Get the article ID for this Title from the link cache, adding it if necessary.
static newFromRow( $row)
Make a Title object from a DB row.