Expose the libkolabxml object's created date/time (where available)

This commit is contained in:
Thomas Bruederli 2012-08-03 14:05:22 +02:00
parent 8cff86aef2
commit 0fc3c6f288
3 changed files with 6 additions and 3 deletions

View file

@ -97,8 +97,9 @@ class kolab_format_journal extends kolab_format
// read object properties
$object = array(
'uid' => $this->obj->uid(),
'changed' => $this->obj->lastModified(),
'uid' => $this->obj->uid(),
'created' => self::php_datetime($this->obj->created()),
'changed' => self::php_datetime($this->obj->lastModified()),
);

View file

@ -97,7 +97,8 @@ class kolab_format_note extends kolab_format
// read object properties
$object = array(
'uid' => $this->obj->uid(),
'changed' => $this->obj->lastModified(),
'created' => self::php_datetime($this->obj->created()),
'changed' => self::php_datetime($this->obj->lastModified()),
);

View file

@ -97,6 +97,7 @@ abstract class kolab_format_xcal extends kolab_format
$object = array(
'uid' => $this->obj->uid(),
'created' => self::php_datetime($this->obj->created()),
'changed' => self::php_datetime($this->obj->lastModified()),
'title' => $this->obj->summary(),
'location' => $this->obj->location(),