From e90ec83ac5f9327dcf055174002723b48948a679 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Wed, 19 Sep 2018 17:49:34 -0400 Subject: 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. --- app/class/table.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/class/table.class.php') 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 . "'"; -- cgit v1.2.3