The readKeys method added.

This commit is contained in:
tomas 2005-07-27 00:54:13 +00:00
parent dfc8c0d356
commit 10c715cdae

View file

@ -23,7 +23,7 @@
Author : $Author: tomas $
Version : $Revision: 1.6 $
Version : $Revision: 1.7 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/Prefs.php,v $
------------------------------------------------------------------------------*/
@ -267,6 +267,23 @@ class Prefs{
return $val;
}
/**
* Read all keys of subject's preferences
*
* @param subjid int, local user/group id
* @return array, preference keys
*/
function readKeys($subjid)
{
$res = $this->dbc->getAll("
SELECT keystr FROM {$this->prefTable}
WHERE subjid=$subjid
");
if(PEAR::isError($res)) return $res;
if(is_null($res)) return FALSE;
return $res;
}
/**
* Update value of preference record
*