diff options
Diffstat (limited to 'src/Psecio/Gatekeeper/Model/Mysql.php')
-rw-r--r-- | src/Psecio/Gatekeeper/Model/Mysql.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Psecio/Gatekeeper/Model/Mysql.php b/src/Psecio/Gatekeeper/Model/Mysql.php index 436ede1..a61ca23 100644 --- a/src/Psecio/Gatekeeper/Model/Mysql.php +++ b/src/Psecio/Gatekeeper/Model/Mysql.php @@ -94,4 +94,15 @@ class Mysql extends \Modler\Model parent::load($loadData, $enforceGuard); return true; } + + /** + * Save the current model instance (gets datasource and calls save) + * + * @return boolean Success/fail result of save + */ + public function save() + { + $ds = \Psecio\Gatekeeper\Gatekeeper::getDatasource(); + return $ds->save($this); + } }
\ No newline at end of file |