summaryrefslogtreecommitdiff
path: root/plugins/libkolab/lib/kolab_storage_cache_configuration.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-10-04 17:38:44 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-10-04 17:38:44 (GMT)
commitaf5115d0c3f24aa60272156c6ce1c7724d2945b3 (patch)
tree069f403c9fc7710bcf270f7e661cf7de2a961343 /plugins/libkolab/lib/kolab_storage_cache_configuration.php
parentb7d4731d9766a6f13d893b39f80512c266fc513c (diff)
downloadroundcubemail-plugins-kolab-af5115d0c3f24aa60272156c6ce1c7724d2945b3.tar.gz
Specify type field
Diffstat (limited to 'plugins/libkolab/lib/kolab_storage_cache_configuration.php')
-rw-r--r--plugins/libkolab/lib/kolab_storage_cache_configuration.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/libkolab/lib/kolab_storage_cache_configuration.php b/plugins/libkolab/lib/kolab_storage_cache_configuration.php
index 5de4c1e..8380aa8 100644
--- a/plugins/libkolab/lib/kolab_storage_cache_configuration.php
+++ b/plugins/libkolab/lib/kolab_storage_cache_configuration.php
@@ -24,5 +24,17 @@
class kolab_storage_cache_configuration extends kolab_storage_cache
{
protected $extra_cols = array('type');
-
+
+ /**
+ * Helper method to convert the given Kolab object into a dataset to be written to cache
+ *
+ * @override
+ */
+ protected function _serialize($object)
+ {
+ $sql_data = parent::_serialize($object);
+ $sql_data['type'] = $object['type'];
+
+ return $sql_data;
+ }
} \ No newline at end of file