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
파일 보기 프로젝트 열기: horde/horde

공개 프로퍼티들

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