gunnar: server/php-kolab/Kolab_Freebusy/Freebusy Cache.php, 1.7, 1.8 Page.php, 1.5, 1.6
cvs at kolab.org
cvs at kolab.org
Wed Feb 27 09:44:40 CET 2008
Author: gunnar
Update of /kolabrepository/server/php-kolab/Kolab_Freebusy/Freebusy
In directory doto:/tmp/cvs-serv12922/Freebusy
Modified Files:
Cache.php Page.php
Log Message:
Add the CN attribute in the freebusy files.
Index: Cache.php
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Freebusy/Freebusy/Cache.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Cache.php 20 Feb 2008 08:27:44 -0000 1.7
+++ Cache.php 27 Feb 2008 08:44:38 -0000 1.8
@@ -193,7 +193,10 @@
// Create new vFreebusy.
$vFb = &Horde_iCalendar::newComponent('vfreebusy', $vCal);
- $vFb->setAttribute('ORGANIZER', 'MAILTO:' . $access->owner);
+ if ($access->cn) {
+ $cn = ';CN="' $access->cn . '":';
+ }
+ $vFb->setAttribute('ORGANIZER', $cn . 'MAILTO:' . $access->owner);
$vFb->setAttribute('DTSTAMP', time());
$vFb->setAttribute('URL', 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
Index: Page.php
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Freebusy/Freebusy/Page.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- Page.php 7 Feb 2008 12:24:03 -0000 1.5
+++ Page.php 27 Feb 2008 08:44:38 -0000 1.6
@@ -212,6 +212,13 @@
var $owner;
/**
+ * The common name (CN) of the owner
+ *
+ * @var string
+ */
+ var $cn = '';
+
+ /**
* The homeserver for that folder
*
* @var string
@@ -446,6 +453,9 @@
if ($uinfo) {
if (!empty($uinfo['MAIL'])) {
$this->owner = $uinfo['MAIL'];
+ }
+ if (!empty($uinfo['CN'])) {
+ $this->cn = $uinfo['CN'];
}
if (!empty($uinfo['HOMESERVER'])) {
$this->homeserver = $uinfo['HOMESERVER'];
More information about the commits
mailing list