The readKeys method added.
This commit is contained in:
parent
dfc8c0d356
commit
10c715cdae
1 changed files with 18 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
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 $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/Prefs.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -267,6 +267,23 @@ class Prefs{
|
||||||
return $val;
|
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
|
* Update value of preference record
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue