PHP 클래스 IMP_Imap_Acl, horde

저자: Chris Hastie ([email protected])
저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_cache array Cached data for getRightsMbox().

공개 메소드들

메소드 설명
addRights ( IMP_Mailbox $mbox, string $user, string $rights ) Adds rights to an ACL on the server.
canEdit ( IMP_Mailbox $mbox ) : boolean Can the current user edit the ACL for this mailbox?
getACL ( IMP_Mailbox $mbox, boolean $user = false ) : mixed Retrieve the existing ACLs for a mailbox from the server.
getRights ( ) : array Return master list of ACL rights.
getRightsMbox ( IMP_Mailbox $mbox, string $user ) : Horde_Imap_Client_Data_AclRights Return list of rights available on the server.
removeRights ( IMP_Mailbox $mbox, string $user, string $rights ) Removes rights to an ACL on the server.

메소드 상세

addRights() 공개 메소드

Adds rights to an ACL on the server.
public addRights ( IMP_Mailbox $mbox, string $user, string $rights )
$mbox IMP_Mailbox The mailbox on which to edit the ACL.
$user string The user to grant rights to.
$rights string The rights to add.

canEdit() 공개 메소드

Can the current user edit the ACL for this mailbox?
public canEdit ( IMP_Mailbox $mbox ) : boolean
$mbox IMP_Mailbox The mailbox name.
리턴 boolean True if the current user has administrative rights.

getACL() 공개 메소드

Retrieve the existing ACLs for a mailbox from the server.
public getACL ( IMP_Mailbox $mbox, boolean $user = false ) : mixed
$mbox IMP_Mailbox The mailbox to get the ACL for.
$user boolean Return only the current user's rights?
리턴 mixed If $user is false, see Horde_Imap_Client_Base::getACL(). If $user is true, see Horde_Imap_Client_Base::getMyACLRights().

getRights() 공개 메소드

Return master list of ACL rights.
public getRights ( ) : array
리턴 array A list of ACL rights. Keys are the right identifiers, values are arrays containing two entries: 'desc' and 'title'.

getRightsMbox() 공개 메소드

Return list of rights available on the server.
public getRightsMbox ( IMP_Mailbox $mbox, string $user ) : Horde_Imap_Client_Data_AclRights
$mbox IMP_Mailbox The mailbox name.
$user string The ACL identifier (user) to query.
리턴 Horde_Imap_Client_Data_AclRights An ACL rights object.

removeRights() 공개 메소드

Removes rights to an ACL on the server.
public removeRights ( IMP_Mailbox $mbox, string $user, string $rights )
$mbox IMP_Mailbox The mailbox on which to edit the ACL.
$user string The user to remove rights from.
$rights string The rights to remove. If empty, removes the entire ACL.

프로퍼티 상세

$_cache 보호되어 있는 프로퍼티

Cached data for getRightsMbox().
protected array $_cache
리턴 array