PHP Класс Kronolith_Event_Resource, horde

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

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

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

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

Метод Описание
getDriver ( ) : Kronolith_Driver Returns a reference to a driver that's valid for this event.
getResourceReservee ( ) : string Return the name/email address or username of the reservee for this event.
getTitle ( string $user = null ) : string Returns the title of this event, considering private flags.
hasPermission ( integer $permission, string $user = null ) : boolean Encapsulates permissions checking. For now, admins, and ONLY admins have any permissions to a resource's events.
save ( ) : integer Saves changes to this event.

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

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

Returns a reference to a driver that's valid for this event.
public getDriver ( ) : Kronolith_Driver
Результат Kronolith_Driver A driver that this event can use to save itself, etc.

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

Return the name/email address or username of the reservee for this event.
public getResourceReservee ( ) : string
Результат string The email or username.

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

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

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

Encapsulates permissions checking. For now, admins, and ONLY admins have any permissions to a resource's events.
public hasPermission ( integer $permission, string $user = null ) : boolean
$permission integer The permission to check for.
$user string The user to check permissions for.
Результат boolean

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

Saves changes to this event.
public save ( ) : integer
Результат integer The event id.

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

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

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