*/
class ProtectedTitlesPager extends AlphabeticPager {
- public $mForm, $mConds;
+ /**
+ * @var SpecialProtectedtitles
+ */
+ public $mForm;
+
+ /**
+ * @var array
+ */
+ public $mConds;
+ /** @var string|null */
+ private $level;
+
+ /** @var int|null */
+ private $namespace;
+
+ /**
+ * @param SpecialProtectedtitles $form
+ * @param array $conds
+ * @param string|null $type
+ * @param string|null $level
+ * @param int|null $namespace
+ * @param string|null $sizetype
+ * @param int|null $size
+ */
public function __construct( $form, $conds, $type, $level, $namespace,
$sizetype = '', $size = 0
) {
$this->mConds = $conds;
$this->level = $level;
$this->namespace = $namespace;
- $this->size = intval( $size );
parent::__construct( $form->getContext() );
}
* @return Title
*/
function getTitle() {
- return $this->mForm->getTitle();
+ return $this->mForm->getPageTitle();
}
function formatRow( $row ) {
$conds['pt_create_perm'] = $this->level;
}
- if ( !is_null( $this->namespace ) ) {
+ if ( $this->namespace !== null ) {
$conds[] = 'pt_namespace=' . $this->mDb->addQuotes( $this->namespace );
}