74 $this->mConds = $conds;
77 parent::__construct( $form->getContext() );
82 # Do a link batch query
83 $this->mResult->seek( 0 );
84 $lb = $this->linkBatchFactory->newLinkBatch();
86 foreach ( $this->mResult as $row ) {
87 $lb->add( $row->pt_namespace, $row->pt_title );
99 return $this->mForm->getPageTitle();
103 return $this->mForm->formatRow( $row );
112 $conds[] =
'pt_expiry > ' .
$dbr->addQuotes( $this->mDb->timestamp() ) .
113 ' OR pt_expiry IS NULL';
114 if ( $this->level ) {
118 if ( $this->
namespace !==
null ) {
119 $conds[] =
'pt_namespace=' .
$dbr->addQuotes( $this->
namespace );
123 'tables' =>
'protected_titles',
124 'fields' => [
'pt_namespace',
'pt_title',
'pt_create_perm',
125 'pt_expiry',
'pt_timestamp' ],
131 return 'pt_timestamp';
A special page that list protected titles from creation.