47 $sizetype =
'', $size = 0
50 $this->mConds = $conds;
51 $this->level = $level;
52 $this->
namespace = $namespace;
53 $this->size = intval( $size );
54 parent::__construct( $form->getContext() );
58 # Do a link batch query
59 $this->mResult->seek( 0 );
62 foreach ( $this->mResult
as $row ) {
63 $lb->
add( $row->pt_namespace, $row->pt_title );
75 return $this->mForm->getPageTitle();
79 return $this->mForm->formatRow( $row );
87 $conds[] =
'pt_expiry > ' . $this->mDb->addQuotes( $this->mDb->timestamp() ) .
88 ' OR pt_expiry IS NULL';
90 $conds[
'pt_create_perm'] = $this->level;
93 if ( !is_null( $this->
namespace ) ) {
94 $conds[] =
'pt_namespace=' . $this->mDb->addQuotes( $this->
namespace );
98 'tables' =>
'protected_titles',
99 'fields' => [
'pt_namespace',
'pt_title',
'pt_create_perm',
100 'pt_expiry',
'pt_timestamp' ],
106 return 'pt_timestamp';