* 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:
Ralf Becker 2011-09-28 12:37:06 +00:00
parent bb4b9819b0
commit c4865bb067

View File

@ -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
* *