mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Remove ConfigForm::getValues() overrides where subform values are extracted manually
This commit is contained in:
parent
395201eee9
commit
6065e21e3a
@ -321,21 +321,6 @@ class UserBackendConfigForm extends ConfigForm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Retrieve all form element values
|
|
||||||
*
|
|
||||||
* @param bool $suppressArrayNotation Ignored
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getValues($suppressArrayNotation = false)
|
|
||||||
{
|
|
||||||
$values = parent::getValues();
|
|
||||||
$values = array_merge($values, $values['backend_form']);
|
|
||||||
unset($values['backend_form']);
|
|
||||||
return $values;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return whether the given values are valid
|
* Return whether the given values are valid
|
||||||
*
|
*
|
||||||
|
@ -198,19 +198,4 @@ class UserGroupBackendForm extends ConfigForm
|
|||||||
$this->populate($data);
|
$this->populate($data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Retrieve all form element values
|
|
||||||
*
|
|
||||||
* @param bool $suppressArrayNotation Ignored
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getValues($suppressArrayNotation = false)
|
|
||||||
{
|
|
||||||
$values = parent::getValues();
|
|
||||||
$values = array_merge($values, $values['backend_form']);
|
|
||||||
unset($values['backend_form']);
|
|
||||||
return $values;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -761,17 +761,6 @@ class NavigationConfigForm extends ConfigForm
|
|||||||
return $valid;
|
return $valid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function getValues($suppressArrayNotation = false)
|
|
||||||
{
|
|
||||||
$values = parent::getValues();
|
|
||||||
$values = array_merge($values, $values['item_form']);
|
|
||||||
unset($values['item_form']);
|
|
||||||
return $values;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
@ -258,19 +258,4 @@ class TransportConfigForm extends ConfigForm
|
|||||||
$this->populate($data);
|
$this->populate($data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Retrieve all form element values
|
|
||||||
*
|
|
||||||
* @param bool $suppressArrayNotation Ignored
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getValues($suppressArrayNotation = false)
|
|
||||||
{
|
|
||||||
$values = parent::getValues();
|
|
||||||
$values = array_merge($values, $values['transport_form']);
|
|
||||||
unset($values['transport_form']);
|
|
||||||
return $values;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -116,21 +116,6 @@ class AuthBackendPage extends Form
|
|||||||
$this->addSubForm($backendForm, 'backend_form');
|
$this->addSubForm($backendForm, 'backend_form');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Retrieve all form element values
|
|
||||||
*
|
|
||||||
* @param bool $suppressArrayNotation Ignored
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getValues($suppressArrayNotation = false)
|
|
||||||
{
|
|
||||||
$values = parent::getValues();
|
|
||||||
$values = array_merge($values, $values['backend_form']);
|
|
||||||
unset($values['backend_form']);
|
|
||||||
return $values;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validate the given form data and check whether it's possible to authenticate using the configured backend
|
* Validate the given form data and check whether it's possible to authenticate using the configured backend
|
||||||
*
|
*
|
||||||
|
@ -129,19 +129,4 @@ class UserGroupBackendPage extends Form
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Retrieve all form element values
|
|
||||||
*
|
|
||||||
* @param bool $suppressArrayNotation Ignored
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getValues($suppressArrayNotation = false)
|
|
||||||
{
|
|
||||||
$values = parent::getValues();
|
|
||||||
$values = array_merge($values, $values['backend_form']);
|
|
||||||
unset($values['backend_form']);
|
|
||||||
return $values;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user