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

공개 프로퍼티들

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