PHP Class 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.
See also: http://pear.php.net/packages/Date_Holidays
Author: Stephan Hohmann ([email protected])
Inheritance: extends Kronolith_Event
Afficher le fichier Open project: horde/horde

Méthodes publiques

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
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?

Method Details

fromDriver() public méthode

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

getTitle() public méthode

Return this events title.
public getTitle ( string $user = null ) : string
$user string The current user.
Résultat string The title of this event

hasPermission() public méthode

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.
Résultat boolean

isAllDay() public méthode

Since there are no holidays lasting only a few hours, this is always true.
public isAllDay ( ) : boolean
Résultat boolean true

Property Details

$allday public_oe property

Whether this is an all-day event.
public bool $allday
Résultat boolean

$calendarType public_oe property

The type of the calender this event exists on.
public string $calendarType
Résultat string

$status public_oe property

The status of this event.
public int $status
Résultat integer