PHP Класс Horde_Kolab_Storage_List_Query_Acl_Base, horde

Copyright 2011-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Gunnar Wrobel ([email protected])
Наследование: extends Horde_Kolab_Storage_List_Query_Acl
Показать файл Открыть проект

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

Метод Описание
__construct ( Horde_Kolab_Storage_Driver $driver ) Constructor.
deleteAcl ( string $folder, string $user ) : null Delete the access rights for user on a folder.
getAcl ( string $folder ) : array Retrieve the access rights for a folder. This method will use two calls to the backend. It will first get the individual user rights via getMyRights and will subsequently fetch all ACL if the user has admin rights on a folder. If you already know the user has admin rights on a folder it makes more sense to call getAllAcl() directly.
getAllAcl ( string $folder ) : string Retrieve the all access rights on a folder.
getMyAcl ( string $folder ) : string Retrieve the access rights the current user has on a folder.
hasAclSupport ( ) : boolean Does the backend support ACL?
setAcl ( string $folder, string $user, string $acl ) : null Set the access rights for a folder.

Приватные методы

Метод Описание
_failOnMissingAcl ( )

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

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

Constructor.
public __construct ( Horde_Kolab_Storage_Driver $driver )
$driver Horde_Kolab_Storage_Driver The driver to access the backend.

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

Delete the access rights for user on a folder.
public deleteAcl ( string $folder, string $user ) : null
$folder string The folder to act upon.
$user string The user to delete the ACL for
Результат null

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

Retrieve the access rights for a folder. This method will use two calls to the backend. It will first get the individual user rights via getMyRights and will subsequently fetch all ACL if the user has admin rights on a folder. If you already know the user has admin rights on a folder it makes more sense to call getAllAcl() directly.
public getAcl ( string $folder ) : array
$folder string The folder to retrieve the ACL for.
Результат array An array of rights.

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

Retrieve the all access rights on a folder.
public getAllAcl ( string $folder ) : string
$folder string The folder to retrieve the ACL for.
Результат string The folder rights.

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

Retrieve the access rights the current user has on a folder.
public getMyAcl ( string $folder ) : string
$folder string The folder to retrieve the user ACL for.
Результат string The user rights.

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

Does the backend support ACL?
public hasAclSupport ( ) : boolean
Результат boolean True if the backend supports ACLs.

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

Set the access rights for a folder.
public setAcl ( string $folder, string $user, string $acl ) : null
$folder string The folder to act upon.
$user string The user to set the ACL for.
$acl string The ACL.
Результат null