toTimeslice() public static method

Export an event to a timeslice.
public static toTimeslice ( Kronolith_Event $event, $type, $client )
$event Kronolith_Event
示例#1
0
 public function toTimeslice()
 {
     $driver = $this->_getDriver($this->vars->cal);
     $event = $driver->getEvent($this->vars->e);
     try {
         Kronolith::toTimeslice($event, $this->vars->t, $this->vars->c);
     } catch (Kronolith_Exception $e) {
         $GLOBALS['notification']->push(sprintf(_("Error saving timeslice: %s"), $e->getMessage()), 'horde.error');
         return false;
     }
     $GLOBALS['notification']->push(_("Successfully saved timeslice."), 'horde.success');
     return true;
 }