[Tickets #3954] Re: I can´t see the attendees and the description of a event
bugs at horde.org
bugs at horde.org
Wed Oct 14 15:25:45 UTC 2009
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/3954
------------------------------------------------------------------------------
Ticket | 3954
Updated By | patrick.abiven at apitech.fr
Summary | I can´t see the attendees and the description of a
| event
Queue | Kronolith
Version | 2.1
Type | Enhancement
State | Rejected
Priority | 2. Medium
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
patrick.abiven at apitech.fr (2009-10-14 11:25) wrote:
Hello
We have the same request from our users. Here is a proposal for
providing this feature.
1) In kronolith/lib/Driver/sql.php
Create a new function for retrieving $attendees from the organizer e
vent.
function getOrgAttendees($eventUid)
{
$query = "SELECT event_attendees" .
" FROM " . $this->_params['table'] . " WHERE event_uid = ?" .
" AND event_attendees <> 'a:0:{}'";
$values = array($eventUid);
$attendees = $this->_db->getRow($query, $values, DB_FETCHMODE_ASSOC);
if (is_a($attendees, 'PEAR_Error')) {
Horde::logMessage($attendees, __FILE__, __LINE__, PEAR_LOG_ERR);
return $attendees;
}
return unserialize($attendees['event_attendees']);
}
2) In kronolith/lib/Views/Event.php
modify the html() function:
$status = Kronolith::statusToString($this->event->getStatus());
$attendees = $this->event->getAttendees();
+ if (empty($attendees) == true)
+ {
+ $orgAttendees =
$GLOBALS['kronolith_driver']->getOrgAttendees($this->event->getUID());
+ }
3) kronolith/templates/view/view.inc
Add some html code for displaying $orgAttendees.
<?php if (!empty($orgAttendees)): ?>
..
Thanks for your advise on this feature.
Regars
Patrick
More information about the bugs
mailing list