Property | Type | Description | |
---|---|---|---|
$_color | string | The color of this calendar. | |
$_desc | string | The description of this calendar. | |
$_name | string | The name of this calendar. | |
$_password | string | The HTTP password for this calendar. | |
$_url | string | The URL of this calendar. | |
$_user | string | The HTTP user name for this calendar. |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
background ( ) : string | Returns the background color for this calendar. | |
credentials ( ) : array | Returns the authentication credentials for this calendar. | |
description ( ) : string | Returns the description of this calendar. | |
display ( ) : boolean | Whether this calendar is supposed to be displayed in lists. | |
hasPermission ( integer $permission, string $user = null, string $creator = null ) : boolean | Encapsulates permissions checking. | |
name ( ) : string | Returns the name of this calendar. | |
toHash ( ) : array | Returns a hash representing this calendar. | |
url ( ) : string | Returns the URL of this calendar. |
public __construct ( array $params = [] ) | ||
$params | array | A hash with any parameters that this calendar might need. Required parameters: - share: The share of this calendar. |
public background ( ) : string | ||
return | string | A HTML color code. |
public credentials ( ) : array | ||
return | array | This calendar's credentials. |
public description ( ) : string | ||
return | string | This calendar's description. |
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. |
return | boolean | Whether the user has the permission on this calendar. |
protected string $_desc | ||
return | string |
protected string $_password | ||
return | string |
protected string $_user | ||
return | string |