PHP Класс Kronolith_Calendar_Resource, horde

Copyright 2010-2016 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.
Автор: Jan Schneider ([email protected])
Наследование: extends Kronolith_Calendar
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_resource Kronolith_Resource_Single The share of this calendar.

Открытые методы

Метод Описание
__construct ( array $params = [] ) Constructor.
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.
owner ( ) : string Returns the owner of this calendar.
toHash ( ) : array Returns a hash representing this calendar.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( array $params = [] )
$params array A hash with any parameters that this calendar might need. Required parameters: - share: The share of this calendar.

description() публичный Метод

Returns the description of this calendar.
public description ( ) : string
Результат string This calendar's description.

display() публичный Метод

Whether this calendar is supposed to be displayed in lists.
public display ( ) : boolean
Результат boolean True if this calendar should be displayed.

hasPermission() публичный Метод

Encapsulates permissions checking.
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.

name() публичный Метод

Returns the name of this calendar.
public name ( ) : string
Результат string This calendar's name.

owner() публичный Метод

Returns the owner of this calendar.
public owner ( ) : string
Результат string This calendar's owner.

toHash() публичный Метод

Returns a hash representing this calendar.
public toHash ( ) : array
Результат array A simple hash.

Описание свойств

$_resource защищенное свойство

The share of this calendar.
protected Kronolith_Resource_Single $_resource
Результат Kronolith_Resource_Single