Revision: 2231
Author: andreassolberg
Date: Mon Mar 22 22:17:56 2010
Log: add new function to return value directly (without wrapper container)
http://code.google.com/p/simplesamlphp/source/detail?r=2231
Modified:
/trunk/modules/core/lib/Storage/SQLPermanentStorage.php
=======================================
--- /trunk/modules/core/lib/Storage/SQLPermanentStorage.php Mon Jan 11
03:32:33 2010
+++ /trunk/modules/core/lib/Storage/SQLPermanentStorage.php Mon Mar 22
22:17:56 2010
@@ -119,6 +119,15 @@
$res['value'] = unserialize($res['value']);
return $res;
}
+
+ /*
+ * Return the value directly (not in a container)
+ */
+ public function getValue($type = NULL, $key1 = NULL, $key2 = NULL) {
+ $res = $this->get($type, $key1, $key2);
+ if ($res === NULL) return NULL;
+ return $res['value'];
+ }
public function exists($type, $key1, $key2) {
$query = "SELECT * FROM data WHERE " .
--
You received this message because you are subscribed to the Google Groups
"simpleSAMLphp commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/simplesamlphp-commits?hl=en.