Exemple #1
0
 public function getGCalendar()
 {
     $results = GCalendarDBUtil::getCalendars(JRequest::getVar('gcid', null));
     if (empty($results) || JRequest::getVar('eventID', null) == null) {
         return null;
     }
     return GCalendarZendHelper::getEvent($results[0], JRequest::getVar('eventID', null));
 }
Exemple #2
0
 public function getOriginalGCEvent()
 {
     if ($this->originalGCEvent != null) {
         return $this->originalGCEvent;
     }
     if (!$this->isRepeating()) {
         return null;
     }
     if ($this->getRecurrence() != null) {
         return $this;
     }
     $this->originalGCEvent = GCalendarZendHelper::getEvent(GCalendarDBUtil::getCalendar($this->getParam('gcid')), substr($this->getGCalId(), 0, strpos($this->getGCalId(), '_')));
     return $this->originalGCEvent;
 }