PHP Класс Kronolith_Event_Holidays, horde

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

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

Свойство Тип Описание
$allday boolean Whether this is an all-day event.
$calendarType string The type of the calender this event exists on.
$status integer The status of this event.

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

Метод Описание
fromDriver ( Date_Holidays_Holiday $dhEvent ) Parse in an event from the driver.
getTitle ( string $user = null ) : string Return this events title.
hasPermission ( integer $permission, string $user = null ) : boolean Encapsulates permissions checking.
isAllDay ( ) : boolean Is this event an all-day event?

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

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

Parse in an event from the driver.
public fromDriver ( Date_Holidays_Holiday $dhEvent )
$dhEvent Date_Holidays_Holiday A holiday returned from the driver

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

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

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

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

Since there are no holidays lasting only a few hours, this is always true.
public isAllDay ( ) : boolean
Результат boolean true

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

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

Whether this is an all-day event.
public bool $allday
Результат boolean

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

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

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

The status of this event.
public int $status
Результат integer