diff options
author | Malf Furious <m@lfurio.us> | 2018-09-19 17:49:34 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2018-09-19 17:49:34 -0400 |
commit | e90ec83ac5f9327dcf055174002723b48948a679 (patch) | |
tree | d8edc600ef731b04095a4e34b9e07e13349cea2b /app/class/table.class.php | |
parent | eef89807b15b0e38362d67b68a5becacc8838864 (diff) | |
download | scrott-e90ec83ac5f9327dcf055174002723b48948a679.tar.gz scrott-e90ec83ac5f9327dcf055174002723b48948a679.zip |
table: Change function visibilities to public
These two functions, 'getCurrentTimestamp()' and 'isGUID()' are updated
to be public. There is actually no good reason for them to be private;
I originally just never antisipated their use outside this class.
I need isGUID() in index.php to help with page routing. Neither of
these two functions have side effects of any kind nor any unexpected
behavior, so there is no harm in going public.
Diffstat (limited to 'app/class/table.class.php')
-rw-r--r-- | app/class/table.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/class/table.class.php b/app/class/table.class.php index 28308bb..5e4c823 100644 --- a/app/class/table.class.php +++ b/app/class/table.class.php @@ -191,7 +191,7 @@ abstract class table /* * Get current timestamp as a string for object database purposes */ - private static function getCurrentTimestamp() : string + public static function getCurrentTimestamp() : string { $query = "SELECT now() AS stamp"; $res = database::query($query); @@ -201,7 +201,7 @@ abstract class table /* * Check whether the given GUID exists */ - private static function isGUID(string $guid) : bool + public static function isGUID(string $guid) : bool { $guid = database::esc($guid); $query = "SELECT guid FROM objects WHERE guid = '" . $guid . "'"; |