mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 17:18:54 +01:00
so_sql::init() returns now $this->data as eg. so_sql::read()
This commit is contained in:
parent
6387f19cae
commit
e64e3e06b1
@ -258,6 +258,7 @@ class so_sql
|
||||
* initializes data with the content of key
|
||||
*
|
||||
* @param array $keys array with keys in form internalName => value
|
||||
* @return array internal data after init
|
||||
*/
|
||||
function init($keys=array())
|
||||
{
|
||||
@ -266,6 +267,8 @@ class so_sql
|
||||
$this->db2data();
|
||||
|
||||
$this->data_merge($keys);
|
||||
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -275,7 +278,7 @@ class so_sql
|
||||
* @param string/array $extra_cols string or array of strings to be added to the SELECT, eg. "count(*) as num"
|
||||
* @param string $join sql to do a join, added as is after the table-name, eg. ", table2 WHERE x=y" or
|
||||
* @return array/boolean data if row could be retrived else False
|
||||
*/
|
||||
*/
|
||||
function read($keys,$extra_cols='',$join='')
|
||||
{
|
||||
if (!is_array($keys))
|
||||
|
Loading…
Reference in New Issue
Block a user