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
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$calendarType string The type of the calender this event exists on.

보호된 프로퍼티들

프로퍼티 타입 설명
$_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