PHP Класс Kronolith_Event_Horde, horde

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
Автор: Jan Schneider ([email protected])
Наследование: extends Kronolith_Event
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$calendarType string The type of the calender this event exists on.

Защищенные свойства (Protected)

Свойство Тип Описание
$_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.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Constructor.
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.

fromDriver() публичный Метод

Imports a backend specific event object.
public fromDriver ( mixed $event )
$event mixed Backend specific event object that this object will represent.

getDeleteUrl() публичный Метод

public getDeleteUrl ( array $params = [], $full = false ) : Horde_Url
$params array
Результат Horde_Url

getEditUrl() публичный Метод

public getEditUrl ( array $params = [], $full = false ) : Horde_Url
$params array
Результат Horde_Url

getTitle() публичный Метод

Returns the title of this event.
public getTitle ( string $user = null ) : string
$user string The current user.
Результат string The title of this event.

getTooltip() публичный Метод

public getTooltip ( ) : string
Результат string A tooltip for quick descriptions of this event.

getViewUrl() публичный Метод

public getViewUrl ( array $params = [], $full = false, $encoded = true ) : Horde_Url
$params array
Результат Horde_Url

hasPermission() публичный Метод

Encapsulates permissions checking.
public hasPermission ( integer $permission, string $user = null ) : boolean
$permission integer The permission to check for.
$user string The user to check permissions for.
Результат boolean

toJson() публичный Метод

Returns a simple object suitable for json transport representing this event.
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).
Результат stdClass A simple object.

toTimeobject() публичный Метод

Prepares this event to be saved to the backend.
public toTimeobject ( )

Описание свойств

$_api защищенное свойство

The API (application) of this event.
protected string $_api
Результат string

$_owner защищенное свойство

The event's owner.
protected string $_owner
Результат string

$_params защищенное свойство

Any parameters to identify the object in the other Horde application.
protected array $_params
Результат array

$_permissions защищенное свойство

A bitmask of permissions the current user has on this object.
protected int $_permissions
Результат integer

$_variableLength защищенное свойство

Whether this event has a variable length.
protected $_variableLength

$calendarType публичное свойство

The type of the calender this event exists on.
public string $calendarType
Результат string