diff options
author | git-marijus <mario@mariovavti.com> | 2017-11-04 10:25:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-04 10:25:27 +0100 |
commit | d31df715fb988d5f48a3174646c63542c356fb55 (patch) | |
tree | 8ef7bf1e06a5d223228b370121bda97695af7d0e /Zotlabs/Zot/Verify.php | |
parent | 39c194c5c32e49f461b8b42a3f4e411a3a5cde3c (diff) | |
parent | 26fa091aa2acd1e31db31de4969895372fc4164f (diff) | |
download | volse-hubzilla-d31df715fb988d5f48a3174646c63542c356fb55.tar.gz volse-hubzilla-d31df715fb988d5f48a3174646c63542c356fb55.tar.bz2 volse-hubzilla-d31df715fb988d5f48a3174646c63542c356fb55.zip |
Merge pull request #883 from dawnbreak/docu
:bulb: Improving Doxygen documentation.
Diffstat (limited to 'Zotlabs/Zot/Verify.php')
-rw-r--r-- | Zotlabs/Zot/Verify.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Zotlabs/Zot/Verify.php b/Zotlabs/Zot/Verify.php index 1d9e6de3f..7abe38d17 100644 --- a/Zotlabs/Zot/Verify.php +++ b/Zotlabs/Zot/Verify.php @@ -26,12 +26,11 @@ class Verify { q("delete from verify where id = %d", intval($r[0]['id']) ); - return true; + return true; } return false; } - function get_meta($type,$channel_id,$token) { $r = q("select id, meta from verify where vtype = '%s' and channel = %d and token = '%s' limit 1", dbesc($type), @@ -42,12 +41,18 @@ class Verify { q("delete from verify where id = %d", intval($r[0]['id']) ); - return $r[0]['meta']; + return $r[0]['meta']; } return false; } - function purge($type,$interval) { + /** + * @brief Purge entries of a verify-type older than interval. + * + * @param string $type Verify type + * @param string $interval SQL compatible time interval + */ + function purge($type, $interval) { q("delete from verify where vtype = '%s' and created < %s - INTERVAL %s", dbesc($type), db_utcnow(), |