30 $sizetype =
'', $size = 0
33 $this->mConds = $conds;
34 $this->level = $level;
35 $this->
namespace = $namespace;
36 $this->size = intval( $size );
37 parent::__construct( $form->getContext() );
41 # Do a link batch query
42 $this->mResult->seek( 0 );
45 foreach ( $this->mResult
as $row ) {
46 $lb->
add( $row->pt_namespace, $row->pt_title );
58 return $this->mForm->getTitle();
62 return $this->mForm->formatRow( $row );
70 $conds[] =
'pt_expiry > ' . $this->mDb->addQuotes( $this->mDb->timestamp() ) .
71 ' OR pt_expiry IS NULL';
73 $conds[
'pt_create_perm'] = $this->level;
76 if ( !is_null( $this->
namespace ) ) {
77 $conds[] =
'pt_namespace=' . $this->mDb->addQuotes( $this->
namespace );
81 'tables' =>
'protected_titles',
82 'fields' => [
'pt_namespace',
'pt_title',
'pt_create_perm',
83 'pt_expiry',
'pt_timestamp' ],
89 return 'pt_timestamp';