Go to the source code of this file.
Classes | |
| class | eventsDay |
| class | eventsMonth |
Functions | |
| generateFilename () | |
| addParticipant ($user_id) | |
| removeParticipant ($user_id) | |
| load () | |
| save () | |
| delete () | |
| render () | |
| globalID_events ($splitID) | |
| parse_events_calendar ($page_data) | |
| parse_events_event ($page_data) | |
| parse_events_events ($page_data) | |
| profilemodule_events () | |
| events_savecategories () | |
| modulesetup_events () | |
Variables | |
| PHP | $modules_names [] = "Event Manager" |
| $mopules_versions [] = "0.1" | |
| $modules_descriptions [] = "An events-based calendar" | |
| $modules_setup [] = "modulesetup_events" | |
| $modules_globalID [] = "globalID_events" | |
| $profilemodules [] = "profilemodule_events" | |
| $modules [] = "parse_events_calendar" | |
| $page_help ["\calendar(txt1)"] = "This will show a calendar with events in the categories defined by txt1. txt1 is a space-separated list." | |
| $page_help ["\events(txt1)"] = "This will show the events for the next txt1 days. If txt1 is not present, it will show events for the next 7 days" | |
| $page_help ["\event(txt1,txt2)"] = "This will show the event on the timestamp txt2 as defined by the user txt1" | |
| $events_folder = "$module_folder/events" | |
| $month = date( "n", $this->timestamp ) | |
| $day = date( "j", $this->timestamp ) | |
| $filename = "$events_folder/categories.php" | |
| addParticipant | ( | $ | user_id | ) |
Definition at line 178 of file events.php.
References save().

| delete | ( | ) |
Definition at line 244 of file events.php.
| events_savecategories | ( | ) |
Definition at line 1298 of file events.php.
References $eventcategories, $events_folder, $filename, and array_export().
Referenced by modulesetup_events().

| generateFilename | ( | ) |
Regenerate the filename from the timestamp
Definition at line 169 of file events.php.
References $day, $month, and $userinfo_folder.
Referenced by save().
| globalID_events | ( | $ | splitID | ) |
Returns the url that corresponds to the globalID for an event, if appropriate
| $splitID | The global ID to check |
Definition at line 766 of file events.php.
| load | ( | ) |
Definition at line 190 of file events.php.
References $userinfo_folder, description, i18n(), and title.

| modulesetup_events | ( | ) |
Definition at line 1307 of file events.php.
References $eventcategories, $language, $setup_folder, events_savecategories(), globalIDtoURL(), i18n(), and thisPageURL().

| parse_events_calendar | ( | $ | page_data | ) |
| parse_events_event | ( | $ | page_data | ) |
| parse_events_events | ( | $ | page_data | ) |
Definition at line 846 of file events.php.
References $day, $i, $month, $setup_folder, and i18n().

| profilemodule_events | ( | ) |
Definition at line 885 of file events.php.
References $eventcategories, $formatting_toolbar, $i, $language, $permissionlevels_array, $setup_folder, $tabwidget, $userinfo_folder, $viewUser, currentUser(), globalIDtoURL(), i18n(), siteURL(), and thisPageURL().

| removeParticipant | ( | $ | user_id | ) |
Definition at line 184 of file events.php.
References save().

| render | ( | ) |
Definition at line 251 of file events.php.
References $day, $month, currentUser(), description, formatTime(), globalIDtoURL(), i18n(), parse_page_data(), save(), thisPageURL(), and title.
Referenced by modulesetup_convention(), modulesetup_documents(), modulesetup_gallery2(), parse_convention(), and renderEditor().

| save | ( | ) |
Definition at line 218 of file events.php.
References $userinfo_folder, array_export(), description, generateFilename(), and title.
Referenced by addParticipant(), modulesetup_convention(), removeParticipant(), render(), and renderEditor().

| $day = date( "j", $this->timestamp ) |
Definition at line 158 of file events.php.
Referenced by generateFilename(), parse_events_events(), and render().
| $events_folder = "$module_folder/events" |
| $filename = "$events_folder/categories.php" |
Definition at line 1429 of file events.php.
| $modules[] = "parse_events_calendar" |
Definition at line 87 of file events.php.
| $modules_descriptions[] = "An events-based calendar" |
Definition at line 77 of file events.php.
| $modules_globalID[] = "globalID_events" |
Definition at line 83 of file events.php.
| PHP $modules_names[] = "Event Manager" |
Event Calendar module for Travelsized CMS
Dan Jensen <admin@leinir.dk>
Events directory structure:
modules/ events/ XXXX/ (year, ex 2006) XX/ (month, ex 05) XX/ (date, ex 21) $user_id.$timestamp.php (files containing an event data array structure)
Event data array structure:
array( "title" => string, "description => page_data, "timestamp" => start time, "duration" => number of seconds, "creator" => user_id, "viewlevel" => viewing allowance level, "participatelevel" => participation allowance level, "participants" => array(user_id, user_id), "comments" => comments array (for comment_handler) );
CSS classes used for showing data
table.event_calendar tr.event_calendar td.event_calendar_day_leadin table.event_calendar_day_leadin tr.event_calendar_day_top_leadin td.event_calendar_day_tl_leadin td.event_calendar_day_tr_leadin tr.event_calendar_day_bottom_leadin td.event_calendar_day_b_leadin td.event_calendar_day td.event_calendar_day_selected td.event_calendar_day_ownevent a.event_calendar_day a.event_calendar_day_selected a.event_calendar_day_ownevent table.event_calendar_day table.event_calendar_day_selected table.event_calendar_day_ownevent tr.event_calendar_day_top tr.event_calendar_day_top_selected tr.event_calendar_day_top_ownevent td.event_calendar_day_tl td.event_calendar_day_tl_selected td.event_calendar_day_tl_ownevent td.event_calendar_day_tr td.event_calendar_day_tr_selected td.event_calendar_day_tr_ownevent tr.event_calendar_day_bottom tr.event_calendar_day_bottom_selected tr.event_calendar_day_bottom_ownevent td.event_calendar_day_b td.event_calendar_day_b_selected td.event_calendar_day_b_ownevent td.event_calendar_day_leadout table.event_calendar_day_leadout tr.event_calendar_day_top_leadout td.event_calendar_day_tl_leadout td.event_calendar_day_tr_leadout tr.event_calendar_day_bottom_leadout td.event_calendar_day_b_leadout
Definition at line 75 of file events.php.
| $modules_setup[] = "modulesetup_events" |
Definition at line 81 of file events.php.
| $month = date( "n", $this->timestamp ) |
Definition at line 157 of file events.php.
Referenced by generateFilename(), parse_events_events(), and render().
| $mopules_versions[] = "0.1" |
Definition at line 76 of file events.php.
| $page_help["\event(txt1,txt2)"] = "This will show the event on the timestamp txt2 as defined by the user txt1" |
Definition at line 95 of file events.php.
| $page_help["\events(txt1)"] = "This will show the events for the next txt1 days. If txt1 is not present, it will show events for the next 7 days" |
Definition at line 94 of file events.php.
| $page_help["\calendar(txt1)"] = "This will show a calendar with events in the categories defined by txt1. txt1 is a space-separated list." |
Definition at line 93 of file events.php.
| $profilemodules[] = "profilemodule_events" |
Definition at line 85 of file events.php.
1.5.5