Html::hidden( 'title', $title->getPrefixedDBkey() ) . "\n" .
$this->getNamespaceMenu( $namespace ) . "\n" .
$this->getTypeMenu( $type ) . "\n" .
Html::hidden( 'title', $title->getPrefixedDBkey() ) . "\n" .
$this->getNamespaceMenu( $namespace ) . "\n" .
$this->getTypeMenu( $type ) . "\n" .
$this->getRedirectCheck( $noRedirect ) . "\n" .
"<br />\n" .
$this->getSizeLimit( $sizetype, $size ) . "\n" .
$this->getRedirectCheck( $noRedirect ) . "\n" .
"<br />\n" .
$this->getSizeLimit( $sizetype, $size ) . "\n" .
'selected' => $namespace,
'all' => '',
'label' => $this->msg( 'namespace' )->text()
'selected' => $namespace,
'all' => '',
'label' => $this->msg( 'namespace' )->text()
- Xml::input( 'size', 9, $size, array( 'id' => 'wpsize' ) ) .
+ Xml::input( 'size', 9, $size, [ 'id' => 'wpsize' ] ) .
// First pass to load the log names
foreach ( Title::getFilteredRestrictionTypes( true ) as $type ) {
// First pass to load the log names
foreach ( Title::getFilteredRestrictionTypes( true ) as $type ) {
return '<span class="mw-input-with-label">' .
Xml::label( $this->msg( 'restriction-type' )->text(), $this->IdType ) . ' ' .
Xml::tags( 'select',
return '<span class="mw-input-with-label">' .
Xml::label( $this->msg( 'restriction-type' )->text(), $this->IdType ) . ' ' .
Xml::tags( 'select',
// First pass to load the log names
foreach ( $this->getConfig()->get( 'RestrictionLevels' ) as $type ) {
// First pass to load the log names
foreach ( $this->getConfig()->get( 'RestrictionLevels' ) as $type ) {
return '<span class="mw-input-with-label">' .
Xml::label( $this->msg( 'restriction-level' )->text(), $this->IdLevel ) . ' ' .
Xml::tags( 'select',
return '<span class="mw-input-with-label">' .
Xml::label( $this->msg( 'restriction-level' )->text(), $this->IdLevel ) . ' ' .
Xml::tags( 'select',
public $mForm, $mConds;
private $type, $level, $namespace, $sizetype, $size, $indefonly, $cascadeonly, $noredirect;
public $mForm, $mConds;
private $type, $level, $namespace, $sizetype, $size, $indefonly, $cascadeonly, $noredirect;
- function __construct( $form, $conds = array(), $type, $level, $namespace,
+ function __construct( $form, $conds = [], $type, $level, $namespace,
$sizetype = '', $size = 0, $indefonly = false, $cascadeonly = false, $noredirect = false
) {
$this->mForm = $form;
$sizetype = '', $size = 0, $indefonly = false, $cascadeonly = false, $noredirect = false
) {
$this->mForm = $form;
foreach ( $result as $row ) {
$lb->add( $row->page_namespace, $row->page_title );
foreach ( $result as $row ) {
$lb->add( $row->page_namespace, $row->page_title );
// fill LinkBatch with user page and user talk
if ( count( $userids ) ) {
$userCache = UserCache::singleton();
// fill LinkBatch with user page and user talk
if ( count( $userids ) ) {
$userCache = UserCache::singleton();
foreach ( $userids as $userid ) {
$name = $userCache->getProp( $userid, 'name' );
if ( $name !== false ) {
foreach ( $userids as $userid ) {
$name = $userCache->getProp( $userid, 'name' );
if ( $name !== false ) {
'log_timestamp' => 'protectedpages-timestamp',
'pr_page' => 'protectedpages-page',
'pr_expiry' => 'protectedpages-expiry',
'log_user' => 'protectedpages-performer',
'pr_params' => 'protectedpages-params',
'log_comment' => 'protectedpages-reason',
'log_timestamp' => 'protectedpages-timestamp',
'pr_page' => 'protectedpages-page',
'pr_expiry' => 'protectedpages-expiry',
'log_user' => 'protectedpages-performer',
'pr_params' => 'protectedpages-params',
'log_comment' => 'protectedpages-reason',
$changeProtection = Linker::linkKnown(
$title,
$this->msg( 'protect_change' )->escaped(),
$changeProtection = Linker::linkKnown(
$title,
$this->msg( 'protect_change' )->escaped(),
// Messages: restriction-level-sysop, restriction-level-autoconfirmed
$params[] = $this->msg( 'restriction-level-' . $row->pr_level )->escaped();
if ( $row->pr_cascade ) {
// Messages: restriction-level-sysop, restriction-level-autoconfirmed
$params[] = $this->msg( 'restriction-level-' . $row->pr_level )->escaped();
if ( $row->pr_cascade ) {
- return array(
- 'tables' => array( 'page', 'page_restrictions', 'log_search', 'logging' ),
- 'fields' => array(
+ return [
+ 'tables' => [ 'page', 'page_restrictions', 'log_search', 'logging' ],
+ 'fields' => [