mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-10-06 02:02:24 +02:00
"added cols and append parameter from calendar_so::search to calendar_bo::search too"
This commit is contained in:
parent
2845873bae
commit
272817b1c7
@ -280,8 +280,10 @@ class calendar_bo
|
|||||||
* show_rejected if set rejected invitation are shown only when true, otherwise it depends on the cal-pref or a running query
|
* show_rejected if set rejected invitation are shown only when true, otherwise it depends on the cal-pref or a running query
|
||||||
* ignore_acl if set and true no check_perms for a general EGW_ACL_READ grants is performed
|
* ignore_acl if set and true no check_perms for a general EGW_ACL_READ grants is performed
|
||||||
* enum_groups boolean if set and true, group-members will be added as participants with status 'G'
|
* enum_groups boolean if set and true, group-members will be added as participants with status 'G'
|
||||||
* @return array of events or array with YYYYMMDD strings / array of events pairs (depending on $daywise param)
|
* cols string|array columns to select, if set the recordset/iterator will be returned
|
||||||
* or false if there are no read-grants from _any_ of the requested users
|
* append string to append to the query, eg. GROUP BY
|
||||||
|
* @return iterator|array|boolean array of events or array with YYYYMMDD strings / array of events pairs (depending on $daywise param)
|
||||||
|
* or false if there are no read-grants from _any_ of the requested users or iterator/recordset if cols are given
|
||||||
*/
|
*/
|
||||||
function &search($params)
|
function &search($params)
|
||||||
{
|
{
|
||||||
@ -373,7 +375,12 @@ class calendar_bo
|
|||||||
}
|
}
|
||||||
// date2ts(,true) converts to server time, db2data converts again to user-time
|
// date2ts(,true) converts to server time, db2data converts again to user-time
|
||||||
$events =& $this->so->search(isset($start) ? $this->date2ts($start,true) : null,isset($end) ? $this->date2ts($end,true) : null,
|
$events =& $this->so->search(isset($start) ? $this->date2ts($start,true) : null,isset($end) ? $this->date2ts($end,true) : null,
|
||||||
$users,$cat_id,$filter,$params['query'],$offset,(int)$params['num_rows'],$params['order'],$show_rejected);
|
$users,$cat_id,$filter,$params['query'],$offset,(int)$params['num_rows'],$params['order'],$show_rejected,$params['cols'],$params['append']);
|
||||||
|
|
||||||
|
if (isset($params['cols']))
|
||||||
|
{
|
||||||
|
return $events;
|
||||||
|
}
|
||||||
$this->total = $this->so->total;
|
$this->total = $this->so->total;
|
||||||
$this->db2data($events,isset($params['date_format']) ? $params['date_format'] : 'ts');
|
$this->db2data($events,isset($params['date_format']) ? $params['date_format'] : 'ts');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user