Update changed property when updating a Kolab object

This commit is contained in:
Thomas Bruederli 2012-06-26 16:31:42 +02:00
parent f05068fb3b
commit af2bf9005c
5 changed files with 10 additions and 0 deletions

View file

@ -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']));

View file

@ -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();

View file

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

View file

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

View file

@ -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);