summaryrefslogtreecommitdiff
path: root/plugins/libkolab
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-18 11:34:10 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-18 11:34:20 (GMT)
commit824db716b4b6f08ca649d5a2a88a77c87f062e10 (patch)
tree21851231e792671946166311ffe45005ce50e832 /plugins/libkolab
parent0d9e4228111341deb78c26e0b3e9a7d592083dac (diff)
downloadroundcubemail-plugins-kolab-824db716b4b6f08ca649d5a2a88a77c87f062e10.tar.gz
Allow to configure the name (inlcude OU) displayed for virtual user folders (#3384)
Diffstat (limited to 'plugins/libkolab')
-rw-r--r--plugins/libkolab/lib/kolab_storage_folder_user.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/libkolab/lib/kolab_storage_folder_user.php b/plugins/libkolab/lib/kolab_storage_folder_user.php
index 70ded87..1c37da9 100644
--- a/plugins/libkolab/lib/kolab_storage_folder_user.php
+++ b/plugins/libkolab/lib/kolab_storage_folder_user.php
@@ -65,6 +65,16 @@ class kolab_storage_folder_user extends kolab_storage_folder_virtual
}
/**
+ * Getter for a more informative title of this user folder
+ *
+ * @return string Title for the given user record
+ */
+ public function get_title()
+ {
+ return trim($this->ldaprec['displayname'] . '; ' . $this->ldaprec['mail'], '; ');
+ }
+
+ /**
* Returns the owner of the folder.
*
* @return string The owner of this folder.