Class Kronolith_Calendar_Resource
Kronolith_Calendar_Resource defines an API for single internal resource
calendars.
Copyright 2010-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.
-
Kronolith_Calendar
-
Kronolith_Calendar_Resource
Methods summary
public
|
#
__construct( array $params = array() )
Constructor.
Parameters
- $params
- <p>A hash with any parameters that this calendar
might need.
Required parameters:
- share: The share of this calendar.</p>
Overrides
|
public
string
|
#
owner( )
Returns the owner of this calendar.
Returns the owner of this calendar.
Returns
string This calendar's owner.
Overrides
|
public
string
|
#
name( )
Returns the name of this calendar.
Returns the name of this calendar.
Returns
string This calendar's name.
|
public
string
|
#
description( )
Returns the description of this calendar.
Returns the description of this calendar.
Returns
string This calendar's description.
Overrides
|
public
boolean
|
#
hasPermission( integer $permission, string $user = null, string $creator = null )
Encapsulates permissions checking.
Encapsulates permissions checking.
Parameters
- $permission
- The permission to check for.
- $user
- <p>The user to check permissions for. Defaults
to the current user.</p>
- $creator
- <p>An event creator, to check for creator
permissions.</p>
Returns
boolean Whether the user has the permission on this calendar.
Overrides
|
public
boolean
|
#
display( )
Whether this calendar is supposed to be displayed in lists.
Whether this calendar is supposed to be displayed in lists.
Returns
boolean True if this calendar should be displayed.
|