Definition at line 8 of file calendar_helper.inc.
◆ addHandler()
CalendarHelper::addHandler |
( |
|
$class, |
|
|
|
$handler |
|
) |
| |
◆ CalendarHelper()
CalendarHelper::CalendarHelper |
( |
| ) |
|
Definition at line 12 of file calendar_helper.inc.
static fireEvent($event, $parameter=null, $mustBeConsumed=false)
Fire an event to all subscribers as detailed in their manifests.
◆ createCalendarFacet()
static CalendarHelper::createCalendarFacet |
( |
| ) |
|
|
static |
Definition at line 97 of file calendar_helper.inc.
99 $facet =
new MultiSelectFacetFilter(
"calendar_id", array(
Calendar =>
"{name}"));
101 $facet->dropdownMaxWidth =
"160px";
102 $facet->width =
"200px";
103 $facet->height =
"240px";
◆ eventFilterSetup()
static CalendarHelper::eventFilterSetup |
( |
| ) |
|
|
static |
Definition at line 72 of file calendar_helper.inc.
77 $event->filter =
new InclusionFilter(
"calendar_id",
"start_date",
"end_date");
if(count($sites) > 1) $calendarSelect
◆ getHandler()
CalendarHelper::getHandler |
( |
|
$event | ) |
|
If the event DataItem class is Event and the instance has a composite class, then find the handler that renders that composite class.
e.g., CompositeProgramEvent could be rendered by ProgramEventhandler
If the event class is not Event, then the map should link the data item class to the handler e.g., MyEventClass rendered by MyEventHandler
- Parameters
-
obj | $event | class Event or any obj that can be rendered on the calendar |
- Returns
- obj handler instance of StandardEventHandler or class inheriting from it or class EventHandler
Definition at line 31 of file calendar_helper.inc.
34 if(!
$event->$pk && count($this->handlerMap))
36 $handler_class = array_shift(array_values($this->handlerMap));
37 return new $handler_class;
40 if(get_class(
$event) ==
"Event" &&
$event->composite_class)
42 $event_class =
$event->composite_class;
46 $event_class = get_class(
$event);
49 if(array_key_exists($event_class, $this->handlerMap))
51 $handler = $this->handlerMap[$event_class];
◆ $handlerMap
CalendarHelper::$handlerMap = array() |
The documentation for this class was generated from the following file: