Метод | Описание | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
background ( ) : string | Returns the background color for this calendar. | |
caldavUrl ( ) : string | Returns the CalDAV URL to this calendar. | |
css ( boolean $with_attribute = true ) : string | Returns the CSS color definition for this calendar. | |
description ( ) : string | Returns the description of this calendar. | |
display ( ) : boolean | Whether this calendar is supposed to be displayed in lists. | |
foreground ( ) : string | Returns the foreground color for this calendar. | |
hasPermission ( integer $permission, string $user = null, string $creator = null ) : boolean | Encapsulates permissions checking. | |
name ( ) : string | Returns the name of this calendar. | |
owner ( ) : string | Returns the owner of this calendar. | |
toHash ( ) : array | Returns a hash representing this calendar. |
Метод | Описание | |
---|---|---|
_caldavUrl ( string $id, string $interface ) : string | Returns the CalDAV URL for a calendar or task list. |
public __construct ( array $params = [] ) | ||
$params | array | A hash with any parameters that this calendar might need. |
public background ( ) : string | ||
Результат | string | A HTML color code. |
public description ( ) : string | ||
Результат | string | This calendar's description. |
public foreground ( ) : string | ||
Результат | string | A HTML color code. |
public hasPermission ( integer $permission, string $user = null, string $creator = null ) : boolean | ||
$permission | integer | The permission to check for. |
$user | string | The user to check permissions for. Defaults to the current user. |
$creator | string | An event creator, to check for creator permissions. |
Результат | boolean | Whether the user has the permission on this calendar. |