Skip to content
Snippets Groups Projects
Commit 604c42c3 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

add new function to return value directly (without wrapper container)

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2231 44740490-163a-0410-bde0-09ae8108e29a
parent b40f6156
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,15 @@ class sspmod_core_Storage_SQLPermanentStorage {
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 " .
"key1 = '" . sqlite_escape_string($key1) . "' AND " .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment