HTMLForm gets the selected value from the request. The values
specified in the form descriptor were never used. (You can specify a
default value, but that uses the 'default' key anyway.)
Change-Id: I095ee004cbe74470f33c72b391b22dd4395bff6e
'name' => 'namespace',
'id' => 'namespace',
'cssclass' => 'namespaceselector',
'name' => 'namespace',
'id' => 'namespace',
'cssclass' => 'namespaceselector',
- 'selected' => $namespace,
'all' => '',
'label' => $this->msg( 'namespace' )->text(),
],
'all' => '',
'label' => $this->msg( 'namespace' )->text(),
],
'label' => $this->msg( 'protectedpages-indef' )->text(),
'name' => 'indefonly',
'id' => 'indefonly',
'label' => $this->msg( 'protectedpages-indef' )->text(),
'name' => 'indefonly',
'id' => 'indefonly',
],
'cascadecheck' => [
'type' => 'check',
'label' => $this->msg( 'protectedpages-cascade' )->text(),
'name' => 'cascadeonly',
'id' => 'cascadeonly',
],
'cascadecheck' => [
'type' => 'check',
'label' => $this->msg( 'protectedpages-cascade' )->text(),
'name' => 'cascadeonly',
'id' => 'cascadeonly',
- 'value' => $cascadeOnly
],
'redirectcheck' => [
'type' => 'check',
'label' => $this->msg( 'protectedpages-noredirect' )->text(),
'name' => 'noredirect',
'id' => 'noredirect',
],
'redirectcheck' => [
'type' => 'check',
'label' => $this->msg( 'protectedpages-noredirect' )->text(),
'name' => 'noredirect',
'id' => 'noredirect',
- 'value' => $noRedirect,
],
'sizelimit' => [
'class' => 'HTMLSizeFilterField',
],
'sizelimit' => [
'class' => 'HTMLSizeFilterField',
return [
'type' => 'select',
'options' => $options,
return [
'type' => 'select',
'options' => $options,
'label' => $this->msg( 'restriction-type' )->text(),
'name' => $this->IdType,
'id' => $this->IdType,
'label' => $this->msg( 'restriction-type' )->text(),
'name' => $this->IdType,
'id' => $this->IdType,
return [
'type' => 'select',
'options' => $options,
return [
'type' => 'select',
'options' => $options,
'label' => $this->msg( 'restriction-level' )->text(),
'name' => $this->IdLevel,
'id' => $this->IdLevel
'label' => $this->msg( 'restriction-level' )->text(),
'name' => $this->IdLevel,
'id' => $this->IdLevel