57 if (!checkRole(
$page->role))
63 echo $pageView->drawView();
67 catch(DataNotFoundException $e)
92 $tabs = array(
"Details" =>
"/admin/calendar_form",
93 "Calendar" =>
"/admin/calendar_view",
94 "Event List" =>
"/admin/calendar_events"
97 $qs = ($key) ?
"calendar_id=$key" :
"";
98 return new TabBar(
"tabs",
$tabs,
$qs);
104 $mgr->upgrade($version);
119 trace(
"Component calendar is deleting objects dependent on user_id {$user_id}", 3);
122 $calendar->delete(
"WHERE owner_id={$user_id}");
142 'Calendar',
'Event',
'EventCommentXref',
143 'EventSiteXref',
'EventType',
144 'CalendarEventTypeXref'));
154 Settings::setDefaultValue(
"calendar",
"max_events_per_day", 5, Number,
"For calendar monthly display; set to 0 if no maximum");
static findByIdentifier($identifier)
static enumerateContextHelpClasses($classes)
static upgradeComponent($version)
static registerSerializationHandler()
static deleteUser($user)
Respond to fired event DeleteUser.
static setDefaults()
params to setDefaultValue: component, name, value, field_type, annotation, category,...
static registerCommentAdapter()
static registerTaxonomyClasses($classes)
static enumerateItems($items)
static displayCalendar($identifier, &$continue)
static findByIdentifier($identifier, $constraint="")
ComponentPageView generates the page content for a component page, substituting page fields,...
Provides serialization for a number of DataItem classes, grouped under a common tag in the serialized...
static usingFeature()
Uses the specified framework feature(s).
static using()
Import the datamodels, views and manifest for the specified component(s).
static storeRedirectPage()
Store the page from which a user has been redirected when prompted to login or create an account.
registerHandler($component, $title, $handler)
Registers a serialization handler for a component.
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.
static setDefaultPermission($component, $name, $annotation, $value, $weight=0)
Set a default Permission value indicating which SiteRoles have the given permission.
Provides a simple implementation of a SerializationHandler that can serialize a single DataItem class...