1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-07-29 22:41:11 +03:00

Refactor some methods

PFAHandler::store() -> PFAHandler::save();
 PFAHandler::storemore() -> PFAHandler::postSave();
 PFAHandler::beforestore() -> PFAHandler::preSave();
This commit is contained in:
David Goodwin
2020-09-25 21:29:45 +01:00
parent 10c92da8c8
commit 3c7da4f3b8
15 changed files with 268 additions and 95 deletions

View File

@ -123,7 +123,7 @@ class AdminHandler extends PFAHandler {
* called by $this->store() after storing $this->values in the database
* can be used to update additional tables, call scripts etc.
*/
protected function storemore() {
protected function postSave() : bool {
# store list of allowed domains in the domain_admins table
if (isset($this->values['domains'])) {
if (is_array($this->values['domains'])) {