summaryrefslogtreecommitdiffstats
path: root/app/model
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-03-10 20:35:32 -0500
committerMalf Furious <m@lfurio.us>2016-03-27 20:16:32 -0400
commitc93ae572abf32262137cce69f1c020e9a5b46d9f (patch)
treee5c0f1218fd1b1367d98dd18942183ba6152fd13 /app/model
parenta543d599d211d897e1ed22dcde8794b9cf8072fd (diff)
downloadscrott-c93ae572abf32262137cce69f1c020e9a5b46d9f.tar.gz
scrott-c93ae572abf32262137cce69f1c020e9a5b46d9f.zip
Add function CommonModel::common_handleFormSubmissions()
This helper func to all implementing MVC controllers is used to check for submission of any web-form defined within a common MVC view file. If detected, the appropriate handler function is called.
Diffstat (limited to 'app/model')
-rw-r--r--app/model/common.mod.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/model/common.mod.php b/app/model/common.mod.php
index a3e9258..9289c21 100644
--- a/app/model/common.mod.php
+++ b/app/model/common.mod.php
@@ -20,6 +20,17 @@ class CommonModel extends MasterModel
}
/*
+ * Handle form submissions from common views
+ */
+ function common_handleFormSubmissions($input)
+ {
+ switch ($input['action'])
+ {
+ case "common-setting-user": $this->saveSettingUser($input); break;
+ }
+ }
+
+ /*
* Save changes to user account settings
*/
function saveSettingUser($input)