Add inline javascript to the output buffer.
string
addInlineScript
(mixed $script)
-
mixed
$script: The script text to add (can be stored in an array also).
Returns a comma separated list of attendees.
string
attendeeList
()
Builds the HTML for an event status widget.
string
buildStatusWidget
(string $name, [string $current = KRONOLITH_STATUS_CONFIRMED], [string $any = false])
-
string
$name: The name of the widget.
-
string
$current: The selected status value.
-
string
$any: Whether an 'any' item should be added
Returns the number of events in calendars that the current user owns.
integer
countEvents
()
Returs the HTML/javascript snippit needed to embed a calendar in an external website.
string
embedCode
(string $calendar)
-
string
$calendar: A calendar name.
Returns the feed URL for a calendar.
string
feedUrl
(string $calendar)
-
string
$calendar: A calendar name.
Returns the default calendar for the current user at the specified permissions level.
void
getDefaultCalendar
([ $permission = PERMS_SHOW])
Builds Kronolith's list of menu items.
void
getMenu
([ $returnType = 'object'])
Fetches a remote calendar into the session and return the data.
mixed
getRemoteCalendar
(string $url)
-
string
$url: The location of the remote calendar.
Returns an event object for an event on a remote calendar.
This is kind of a temorary solution until we can have multiple drivers in use at the same time.
-
$url
$url: The url of the remote calendar.
-
$eventId
$eventId: The index of the event on the remote calendar.
Returns the email address, if available, of a user.
void
getUserEmail
( $uid)
Returns the real name, if available, of a user.
void
getUserName
( $uid)
Get a named Kronolith_View_* object and load it with the appropriate date parameters.
void
getView
(string $view)
-
string
$view: The name of the view.
Returns the specified permission for the current user.
mixed
hasPermission
(string $permission)
-
string
$permission: A permission, currently only 'max_events'.
Initial app setup code.
void
initialize
()
Checks if an email address belongs to a user.
void
isUserEmail
( $uid, $email)
Returns all the alarms active right on $date.
array
listAlarms
(Horde_Date $date, array $calendars, [boolean $fullevent = false])
-
Horde_Date
$date: The start of the time range.
-
array
$calendars: The calendars to check for events.
-
boolean
$fullevent: Whether to return complete alarm objects or only alarm IDs.
Returns all calendars a user has access to, according to several parameters/permission levels.
array
listCalendars
([boolean $owneronly = false], [integer $permission = PERMS_SHOW])
-
boolean
$owneronly: Only return calenders that this user owns? Defaults to false.
-
integer
$permission: The permission to filter calendars by.
Returns all the events that happen each day within a time period.
array
listEventIds
([object $startDate = null], [object $endDate = null], [array $calendars = null], [boolean $alarmsOnly = false])
-
object
$startDate: The start of the time range.
-
object
$endDate: The end of the time range.
-
array
$calendars: The calendars to check for events.
-
boolean
$alarmsOnly: Return only events with an alarm set
Returns all the events that happen each day within a time period
array
listEvents
([int|Horde_Date $startDate = null], [int|Horde_Date $endDate = null], [array $calendars = null], [boolean $showRecurrence = true], [boolean $alarmsOnly = false], [boolean $showRemote = true])
-
int|Horde_Date
$startDate: The start of the time range.
-
int|Horde_Date
$endDate: The end of the time range.
-
array
$calendars: The calendars to check for events.
-
boolean
$showRecurrence: Return every instance of a recurring event? If false, will only return recurring events once inside the $startDate - $endDate range. Defaults to true
-
boolean
$alarmsOnly: Filter results for events with alarms Defaults to false
-
boolean
$showRemote: Return events from remote and listTimeObjects as well?
Returns a list of events containing holidays occuring between
and
. The outcome depends on the user's selection of holiday drivers
array
listHolidayEvents
([int|Horde_Date $startDate = null], [int|Horde_Date $endDate = null])
-
int|Horde_Date
$startDate: The start of the datespan to be checked.
-
int|Horde_Date
$endDate: The end of the datespan.
Returns all the events from a remote calendar.
void
listRemoteEvents
(string $url)
-
string
$url: The url of the remote calendar.
Either sets or checks the value of the logintasks flag.
integer
loginTasksFlag
([integer $set = null])
-
integer
$set: The value of the flag.
Print inline javascript to the output buffer.
string
outputInlineScript
()
Maps a Kronolith attendee participation string to a translated string suitable for display.
string
partToString
(integer $part)
-
integer
$part: The attendee participation; one of the KRONOLITH_PART_XXX constants.
Maps a Kronolith recurrence value to a translated string suitable for display.
string
recurToString
(integer $type)
-
integer
$type: The recurrence value; one of the HORDE_DATE_RECUR_XXX constants.
Maps an iCalendar attendee response string to the corresponding Kronolith value.
string
responseFromICal
(string $response)
-
string
$response: The attendee response.
Maps a Kronolith attendee response string to a translated string suitable for display.
string
responseToString
(integer $response)
-
integer
$response: The attendee response; one of the KRONOLITH_RESPONSE_XXX constants.
Search for events with the given properties
array
search
(object $query)
-
object
$query: The search query
Sends out iTip event notifications to all attendees of a specific event. Can be used to send event invitations, event updates as well as event cancellations.
void
sendITipNotifications
(
&$event,
&$notification,
integer $action, [
Horde_Date $instance =
null],
Kronolith_Event $event,
Notification $notification)
-
Kronolith_Event
$event: The event in question.
-
Notification
$notification: A notification object used to show result status.
-
integer
$action: The type of notification to send. One of the KRONOLITH_ITIP_* values.
-
Horde_Date
$instance: If cancelling a single instance of a recurring event, the date of this intance.
-
&$event
-
&$notification
Sends email notifications that a event has been added, edited, or deleted to users that want such notifications.
-
Kronolith_Event
$event: An event.
-
string
$action: The event action. One of "add", "edit", or "delete".
-
&$event
Maps a Kronolith meeting status string to a translated string suitable for display.
string
statusToString
(integer $status)
-
integer
$status: The meeting status; one of the KRONOLITH_STATUS_XXX constants.
void
tabs
([string $tabname = null])
Should we show event location, based on the show_location
preference and $print_view?
void
viewShowLocation
()
Should we show event time, based on the show_time preference
and $print_view?
void
viewShowTime
()
Adds an event to all the days it covers.
void
_addCoverDates
(
&$results,
Kronolith_Event $event,
Horde_Date $eventStart,
Horde_Date $eventEnd,
array $result)
-
array
$result: The current result list.
-
Kronolith_Event
$event: An event object.
-
Horde_Date
$eventStart: The event's start at the actual recurrence.
-
Horde_Date
$eventEnd: The event's end at the actual recurrence.
-
&$results
Used with usort() to sort events based on their start times.
void
_sortEventStartTime
( $a, $b)