diff options
author | Malf Furious <m@lfurio.us> | 2017-04-13 21:05:56 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2017-04-13 21:05:56 -0400 |
commit | 602921ebd65b8a46190bbcf1eb7a83c409f2c926 (patch) | |
tree | cc4c042608491d24277f8f9b88bd7e7735c07af1 /app/class/table.class.php | |
parent | 3b47c5f3876b8c46d199c615e95fe671293be7b7 (diff) | |
download | scrott-602921ebd65b8a46190bbcf1eb7a83c409f2c926.tar.gz scrott-602921ebd65b8a46190bbcf1eb7a83c409f2c926.zip |
Add table function refreshObj()
Diffstat (limited to 'app/class/table.class.php')
-rw-r--r-- | app/class/table.class.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/class/table.class.php b/app/class/table.class.php index 45be8c5..ac21aaf 100644 --- a/app/class/table.class.php +++ b/app/class/table.class.php @@ -68,6 +68,15 @@ abstract class table } /* + * This function uses loadObj to re-initialize this object, if in + * the case it gets modified in another scope. + */ + public function refreshObj() : void + { + $this->loadObj($this->guid); + } + + /* * This function will update this object in the database, or insert new * data if this object does not yet have a GUID. This function uses the * $fields array to construct SQL queries. |