Update changed property when updating a Kolab object
This commit is contained in:
parent
f05068fb3b
commit
af2bf9005c
5 changed files with 10 additions and 0 deletions
|
@ -135,6 +135,8 @@ class kolab_format_contact extends kolab_format
|
|||
if (!empty($object['uid']))
|
||||
$this->obj->setUid($object['uid']);
|
||||
|
||||
$object['changed'] = new DateTime('now', self::$timezone);
|
||||
|
||||
// do the hard work of setting object values
|
||||
$nc = new NameComponents;
|
||||
$nc->setSurnames(self::array2vector($object['surname']));
|
||||
|
|
|
@ -49,6 +49,8 @@ class kolab_format_distributionlist extends kolab_format
|
|||
if (!empty($object['uid']))
|
||||
$this->obj->setUid($object['uid']);
|
||||
|
||||
$object['changed'] = new DateTime('now', self::$timezone);
|
||||
|
||||
$this->obj->setName($object['name']);
|
||||
|
||||
$seen = array();
|
||||
|
|
|
@ -49,6 +49,8 @@ class kolab_format_journal extends kolab_format
|
|||
if (!empty($object['uid']))
|
||||
$this->obj->setUid($object['uid']);
|
||||
|
||||
$object['changed'] = new DateTime('now', self::$timezone);
|
||||
|
||||
// TODO: set object propeties
|
||||
|
||||
// cache this data
|
||||
|
|
|
@ -49,6 +49,8 @@ class kolab_format_note extends kolab_format
|
|||
if (!empty($object['uid']))
|
||||
$this->obj->setUid($object['uid']);
|
||||
|
||||
$object['changed'] = new DateTime('now', self::$timezone);
|
||||
|
||||
// TODO: set object propeties
|
||||
|
||||
// cache this data
|
||||
|
|
|
@ -221,6 +221,8 @@ abstract class kolab_format_xcal extends kolab_format
|
|||
if (!empty($object['uid']))
|
||||
$this->obj->setUid($object['uid']);
|
||||
|
||||
$object['changed'] = new DateTime('now', self::$timezone);
|
||||
|
||||
// increment sequence
|
||||
$this->obj->setSequence($this->obj->sequence()+1);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue