Property | Type | Description | |
---|---|---|---|
$calendarType | string | The type of the calender this event exists on. |
Property | Type | Description | |
---|---|---|---|
$_ajaxLink | string | The link to this event in the ajax interface. | |
$_api | string | The API (application) of this event. | |
$_deleteLink | string | The link to delete this event. | |
$_editLink | string | The link to edit this event. | |
$_link | string | The link to this event. | |
$_owner | string | The event's owner. | |
$_params | array | Any parameters to identify the object in the other Horde application. | |
$_permissions | integer | A bitmask of permissions the current user has on this object. | |
$_variableLength | Whether this event has a variable length. |
Method | Description | |
---|---|---|
__construct ( Kronolith_Driver_Horde $driver, mixed $eventObject = null ) | Constructor. | |
fromDriver ( mixed $event ) | Imports a backend specific event object. | |
getDeleteUrl ( array $params = [], $full = false ) : Horde_Url | ||
getEditUrl ( array $params = [], $full = false ) : Horde_Url | ||
getTitle ( string $user = null ) : string | Returns the title of this event. | |
getTooltip ( ) : string | ||
getViewUrl ( array $params = [], $full = false, $encoded = true ) : Horde_Url | ||
hasPermission ( integer $permission, string $user = null ) : boolean | Encapsulates permissions checking. | |
toJson ( array $options = [] ) : stdClass | Returns a simple object suitable for json transport representing this event. | |
toTimeobject ( ) | Prepares this event to be saved to the backend. |
public __construct ( Kronolith_Driver_Horde $driver, mixed $eventObject = null ) | ||
$driver | Kronolith_Driver_Horde | The backend driver that this event is stored in. |
$eventObject | mixed | Backend specific event object that this will represent. |
public fromDriver ( mixed $event ) | ||
$event | mixed | Backend specific event object that this object will represent. |
public getDeleteUrl ( array $params = [], $full = false ) : Horde_Url | ||
$params | array | |
return | Horde_Url |
public getEditUrl ( array $params = [], $full = false ) : Horde_Url | ||
$params | array | |
return | Horde_Url |
public getTooltip ( ) : string | ||
return | string | A tooltip for quick descriptions of this event. |
public getViewUrl ( array $params = [], $full = false, $encoded = true ) : Horde_Url | ||
$params | array | |
return | Horde_Url |
public toJson ( array $options = [] ) : stdClass | ||
$options | array | An array of options: - all_day: (boolean) If not null, overrides whether the event is an all-day event. DEFAULT: null (Do not override). - full: (boolean) Whether to return all event details. DEFAULT: false (Do not return all details). - time_format: (string) The date() format to use for time formatting. DEFAULT: 'H:i' - history: (boolean) If true, ensures that this event's history is loaded from the History backend. DEFAULT: false (Do not ensure history is loaded). |
return | stdClass | A simple object. |
public toTimeobject ( ) |
protected string $_ajaxLink | ||
return | string |
protected string $_api | ||
return | string |
protected string $_deleteLink | ||
return | string |
protected string $_editLink | ||
return | string |
protected array $_params | ||
return | array |
protected int $_permissions | ||
return | integer |
protected $_variableLength |
public string $calendarType | ||
return | string |