mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
* CalDAV/GroupDAV/InfoLog: making synced InfoLog types configurable and moved getctag method to infolog_bo in preparation of InfoLog eSync support
This commit is contained in:
parent
bb4b9819b0
commit
c4865bb067
@ -1052,6 +1052,32 @@ class infolog_bo
|
|||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Query ctag for infolog
|
||||||
|
*
|
||||||
|
* @param string $filter='own'
|
||||||
|
* @param string|array $types='task'
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getctag(array $filter)
|
||||||
|
{
|
||||||
|
$filter += array(
|
||||||
|
'order' => 'info_datemodified',
|
||||||
|
'sort' => 'DESC',
|
||||||
|
'date_format' => 'server',
|
||||||
|
'start' => 0,
|
||||||
|
'num_rows' => 1,
|
||||||
|
);
|
||||||
|
|
||||||
|
$result =& $this->search($filter);
|
||||||
|
|
||||||
|
if (empty($result)) return 'EGw-empty-wGE';
|
||||||
|
|
||||||
|
$entry = array_shift($result);
|
||||||
|
|
||||||
|
return 'EGw-'.$entry['info_datemodified'].'-wGE';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* imports a mail identified by uid as infolog
|
* imports a mail identified by uid as infolog
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user