parent::__construct( 'Lockdb', 'siteadmin' );
}
+ public function doesWrites() {
+ return true;
+ }
+
public function requiresWrite() {
return false;
}
}
protected function getFormFields() {
- return array(
- 'Reason' => array(
+ return [
+ 'Reason' => [
'type' => 'textarea',
'rows' => 4,
'vertical-label' => true,
'label-message' => 'enterlockreason',
- ),
- 'Confirm' => array(
+ ],
+ 'Confirm' => [
'type' => 'toggle',
'label-message' => 'lockconfirm',
- ),
- );
+ ],
+ ];
}
protected function alterForm( HTMLForm $form ) {