From 9830d73b6819c4930bd96cc657b42aa3a10d8d66 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sun, 16 Sep 2018 22:25:22 -0400 Subject: Remove old content --- examples/common.mod.php | 113 ------------------------------------------------ 1 file changed, 113 deletions(-) (limited to 'examples/common.mod.php') diff --git a/examples/common.mod.php b/examples/common.mod.php index 6cba871..0d740ef 100644 --- a/examples/common.mod.php +++ b/examples/common.mod.php @@ -1,54 +1,5 @@ first_setting_tab_active = 0; - $this->first_setting_tab_disp = 0; - $this->common_handleFormSubmissions($_REQUEST['input'], $_FILES['attachment']); - - if (!is_null($guid)) - { - $this->obj = new DBObject($guid); - $this->owner = $this->obj->getOwner(); - $this->members = $this->obj->getMembers(); - } - - $this->common_deflt(); - } - /* * Default action */ @@ -83,41 +34,6 @@ class CommonModel extends MasterModel } } - /* - * Handle form submissions from common views - */ - function common_handleFormSubmissions($input, $attachment) - { - switch ($input['action']) - { - case "common-group-add": $this->addNewGroup($input); break; - case "common-setting-group": $this->saveSettingGroup($input, $attachment); break; - case "common-setting-user": $this->saveSettingUser($input, $attachment); break; - case "common-setting-admin": $this->saveSettingAdmin($input); break; - case "common-setting-allusers-adduser": $this->saveSettingAllusersAdduser($input); break; - case "common-setting-allusers-edituser": $this->saveSettingAllusersEdituser($input, $attachment); break; - case "common-setting-allusers-deluser": $this->saveSettingAllusersDeluser($input); break; - } - } - - /* - * Create a new user group - */ - function addNewGroup($input) - { - $form = new Form(); - $form->field_text("name"); - - if (!$form->populate($input)) - { - $this->logFormErrors($form); - return; - } - - $group = new Group(); - $group->createNewGroup($form->name, $this->getCurrentUser()); - } - /* * Save changes to user group settings */ @@ -465,33 +381,4 @@ class CommonModel extends MasterModel } } - /* - * Set CSS class for the first tab title in the setting modal only - */ - function getSettingModalTabActiveClass() - { - if (!$this->first_setting_tab_active) - { - $this->first_setting_tab_active = 1; - return "active"; - } - - return ""; - } - - /* - * Set CSS classes for the first tab in the setting modal only - */ - function getSettingModalTabDispClasses() - { - if (!$this->first_setting_tab_disp) - { - $this->first_setting_tab_disp = 1; - return "in active"; - } - - return ""; - } -} - ?> -- cgit v1.2.3