summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID/SQLiteStore.php
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-03-02 22:56:05 +0000
committertailor <cygnus@janrain.com>2007-03-02 22:56:05 +0000
commit9a50f5d16036586895b50ec56bc030e0e6ae1fbc (patch)
tree3ca0fd07f2bfb05d6d4561f39535abc1c413fc05 /Auth/OpenID/SQLiteStore.php
parent4a279473ce570b1e639e4c0fc9d64528ec9a9291 (diff)
downloadphp-openid-9a50f5d16036586895b50ec56bc030e0e6ae1fbc.zip
php-openid-9a50f5d16036586895b50ec56bc030e0e6ae1fbc.tar.gz
php-openid-9a50f5d16036586895b50ec56bc030e0e6ae1fbc.tar.bz2
[project @ Add getExpired to stores]
Diffstat (limited to 'Auth/OpenID/SQLiteStore.php')
-rw-r--r--Auth/OpenID/SQLiteStore.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Auth/OpenID/SQLiteStore.php b/Auth/OpenID/SQLiteStore.php
index 130f8fa..95c4d1d 100644
--- a/Auth/OpenID/SQLiteStore.php
+++ b/Auth/OpenID/SQLiteStore.php
@@ -35,6 +35,9 @@ class Auth_OpenID_SQLiteStore extends Auth_OpenID_SQLStore {
"SELECT handle, secret, issued, lifetime, assoc_type FROM %s ".
"WHERE server_url = ?";
+ $this->sql['get_expired'] =
+ "SELECT server_url FROM %s WHERE issued + lifetime < ?";
+
$this->sql['get_assoc'] =
"SELECT handle, secret, issued, lifetime, assoc_type FROM %s ".
"WHERE server_url = ? AND handle = ?";