30 public const TYPE =
'page';
81 $restriction = parent::newFromRow( $row );
82 '@phan-var self $restriction';
86 if ( isset( $row->page_namespace ) && isset( $row->page_title ) ) {
89 $row->page_id = $row->ir_value;
91 $restriction->setTitle(
$title );
104 if ( is_string(
$title ) ) {
110 $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.