Definition at line 88 of file calendar_view.inc.
◆ buildForm()
StandardEventHandler::buildForm |
( |
|
$event | ) |
|
Reimplemented from EventHandler.
Definition at line 192 of file calendar_view.inc.
195 $form->required(
"title",
"start_date",
"end_date");
196 $form->hide(
"composite_class",
"event_invitation_id",
"allow_access",
"time_zone_id",
"owner_id");
198 $form->allowDelete =
true;
206 $calendarSelect =
new RelatedItemSelectFieldRenderer(
$form,
"calendar_id",
"Calendar",
Calendar,
"ORDER BY name",
"{name}",
"calendar_id",
false,
false, 80);
207 $eventTypeSelect =
new SelectFieldRenderer(
$form,
"event_type",
"Event Type");
208 $eventTypeSelect->allowAddEntry();
if(count($sites) > 1) $calendarSelect
◆ details()
StandardEventHandler::details |
( |
|
$event, |
|
|
|
$byProgram = false |
|
) |
| |
Definition at line 155 of file calendar_view.inc.
159 <div
class=
"event_details">
160 <h3><?echo
$event->title?></h3>
161 <div
class=
"event_contents">
162 <p><em><?echo
$event->event_type?></em></p>
163 <p><label
style=
"width: 80px">Start: </label><?echo
$event->format(
"{start_date:short}") ?><br/>
164 <label
style=
"width: 80px">End: </label><?echo
$event->format(
"{end_date:short}") ?></p>
169 <p><label
style=
"width: 80px">Location: </label><?echo
$event->location?></p>
173 <p><?echo
$event->description?></p>
181 $out = ob_get_contents();
formatButtons($event)
Called by function details.
◆ filter()
StandardEventHandler::filter |
( |
|
$event, |
|
|
|
$date |
|
) |
| |
If an event spans over more than 5 days, only show it on the first day.
If a multiday event starts before the first of the month, then show it on the first of the month only.
- See also
- EventHandler::filter()
Reimplemented from EventHandler.
Definition at line 98 of file calendar_view.inc.
101 $end = explode(
" ",
$event->end_date);
103 $startTimeStamp = strtotime(
$start[0]);
104 $endTimeStamp = strtotime($end[0]);
105 $dateTimeStamp = strtotime(
$date);
107 $diff = abs($endTimeStamp - $startTimeStamp);
108 $days = floor($diff/(60*60*24));
110 $inDate =
new DateTime(
$date.
"T00:00:00");
111 $startDate =
new DateTime(
$event->start_date);
114 if($inDate->format(
"j") == 1 && ($startDate->format(
"Y-m-d") <= $inDate->format(
"Y-m-d")))
119 if($days <= 5 || $showEvent)
121 return ($dateTimeStamp >= $startTimeStamp && $dateTimeStamp <= $endTimeStamp);
125 return ($dateTimeStamp == $startTimeStamp);
◆ formatFilteringTags()
StandardEventHandler::formatFilteringTags |
( |
|
$event, |
|
|
|
$tagRowCallbacks |
|
) |
| |
Reimplemented from EventHandler.
Definition at line 129 of file calendar_view.inc.
132 if(!count($tagRowCallbacks))
return "";
134 $id =
$event->format(
"id='{$pk}_{{$pk}}'");
136 foreach($tagRowCallbacks as $cb)
138 $dataAttrs = call_user_func($cb,
$event, $dataAttrs);
142 foreach($dataAttrs as
$name => $value)
144 $attrs .=
" ".$name.
"='".$value.
"'";
147 return "{$id}{$attrs}";
◆ formatiCalendar()
StandardEventHandler::formatiCalendar |
( |
|
$event, |
|
|
|
$sequence_id = 0 |
|
) |
| |
Definition at line 187 of file calendar_view.inc.
Note: we may wish to add someting like this to description:
◆ formatSummary()
StandardEventHandler::formatSummary |
( |
|
$event, |
|
|
|
$tagRowCallacks |
|
) |
| |
Reimplemented from EventHandler.
Definition at line 213 of file calendar_view.inc.
215 $handler_class = get_class($this);
218 $content .=
"<div {$tags} class='event_summary' onclick='showEventDetail({$event->$pk}, \"{$handler_class}\")'>";
formatFilteringTags($event, $tagRowCallbacks)
if(array_key_exists("HTTP_IF_MODIFIED_SINCE", $_SERVER)) $content
◆ summary()
StandardEventHandler::summary |
( |
|
$event | ) |
|
The documentation for this class was generated from the following file: