[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/IMAP/ACL/ -> rfc2086.php (sommaire)

(pas de description)

Poids: 492 lignes (18 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

IMAP_ACL_rfc2086:: (9 méthodes):
  IMAP_ACL_rfc2086()
  _connect()
  createACL()
  editACL()
  _getCapability()
  getACL()
  _getACL()
  canEdit()
  _atomise()


Classe: IMAP_ACL_rfc2086  - X-Ref

Contains functions related to managing Access Control Lists on an IMAP
server using RFC 2086.

Required parameters:<pre>
'username'  The username for the server connection
'password'  The password for the server connection
'hostspec'  The hostname or IP address of the server.
DEFAULT: 'localhost'
'port'      The server port to which we will connect.
IMAP is generally 143, while IMAP-SSL is generally 993.
DEFAULT: 143
'protocol'  The connection protocol (e.g. 'imap', 'pop3', 'nntp').
Protocol is one of 'imap/notls' (or only 'imap' if you
have a c-client version 2000c or older), 'imap/ssl', or
'imap/ssl/novalidate-cert' (for a self-signed certificate).
DEFAULT: 'imap'</pre>

$Horde: framework/IMAP/IMAP/ACL/rfc2086.php,v 1.6.8.12 2006/07/26 19:34:45 chuck Exp $

Copyright 2003-2006 Chris Hastie <imp@oak-wood.co.uk>

See the enclosed file COPYING for license information (LGPL). If you did
not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

IMAP_ACL_rfc2086($params = array()   X-Ref
Constructor.

param: array $params  Any additional parameters this driver may need.

_connect()   X-Ref
Pas de description

createACL($folder, $share_user, $acl)   X-Ref
Sets the ACL on an IMAP server.

param: string $folder      The folder on which to edit the ACL.
param: string $share_user  The user to grant rights to.
param: array $acl          An array, the keys of which are the rights to
return: mixed  True on success, PEAR_Error on failure or if server

editACL($folder, $share_user, $acl)   X-Ref
Edits an ACL on an IMAP server.

param: string $folder      The folder on which to edit the ACL.
param: string $share_user  The user to grant rights to.
param: array $acl          An array, the keys of which are the rights to
return: mixed  True on success, false on failure unless server doesn't

_getCapability()   X-Ref
Attempts to get the result of a CAPABILITY command to the current IMAP
server.

return: array  An array containing the server's capabilities.

getACL($folder)   X-Ref
Attempts to retrieve the existing ACL for a folder from the current
IMAP server.

param: string folder  The folder to get the ACL for.
return: array  A hash containing information on the ACL.

_getACL($folder, $authMech)   X-Ref
Attempts to retrieve the existing ACL for a folder from the current
IMAP server.

NB: if Auth_SASL is not installed this function will send the users
password to the IMAP server as plain text!!

param: string folder    The folder to get the ACL for.
param: string authMech  The authorisation mechanism to use. One of
return: array  A hash containing information on the ACL

canEdit($folder, $user)   X-Ref
Can a user edit the ACL for this folder?

param: string $folder  The folder name.
param: string $user    A user name.
return: boolean  True if $user has permission to edit the ACL on

_atomise($in)   X-Ref
Crudely split a string into 'atoms'.

param: string $in  The string to split.
return: array  An array of 'atoms'.



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7