/**
  * View conference event log.
  */
 function conferenceEventLog($args)
 {
     $logId = isset($args[0]) ? (int) $args[0] : 0;
     $this->validate();
     $conference =& Request::getConference();
     $this->setupTemplate(true);
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign_by_ref('conference', $conference);
     if ($logId) {
         $logDao =& DAORegistry::getDAO('ConferenceEventLogDAO');
         $logEntry =& $logDao->getLogEntry($logId);
         if ($logEntry && $logEntry->getConferenceId() != $conference->getId()) {
             Request::redirect(null, null, null, 'index');
         }
     }
     if (isset($logEntry)) {
         $templateMgr->assign('logEntry', $logEntry);
         $templateMgr->display('manager/conferenceEventLogEntry.tpl');
     } else {
         $rangeInfo =& Handler::getRangeInfo('eventLogEntries', array());
         import('conference.log.ConferenceLog');
         while (true) {
             $eventLogEntries =& ConferenceLog::getEventLogEntries($conference->getId(), null, $rangeInfo);
             if ($eventLogEntries->isInBounds()) {
                 break;
             }
             unset($rangeInfo);
             $rangeInfo =& $eventLogEntries->getLastPageRangeInfo();
             unset($eventLogEntries);
         }
         $templateMgr->assign('eventLogEntries', $eventLogEntries);
         $templateMgr->display('manager/conferenceEventLog.tpl');
     }
 }