[ Index ]
 

Code source de Horde 3.1.3

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

title

Body

[fermer]

/lib/Block/ -> account.php (sommaire)

(pas de description)

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

Définit 4 classes

Horde_Block_Horde_account:: (2 méthodes):
  _title()
  _content()

Accounts_Driver:: (8 méthodes):
  getUsername()
  getRealm()
  getQuota()
  getFullname()
  getHome()
  getShell()
  getPasswordChange()
  checkPasswordStatus()

Accounts_Driver_localhost:: (6 méthodes):
  Accounts_Driver_localhost()
  _getAccount()
  getQuota()
  getFullname()
  getHome()
  getShell()

Accounts_Driver_ldap:: (7 méthodes):
  Accounts_Driver_ldap()
  _getAccount()
  getFullname()
  getHome()
  getShell()
  getPasswordChange()
  checkPasswordStatus()


Classe: Horde_Block_Horde_account  - X-Ref

$Horde: horde/lib/Block/account.php,v 1.7.2.4 2006/03/10 17:28:44 jan Exp $

Copyright 2001-2006 Eric Rostetter <eric.rostetter@physics.utexas.edu>
Copyright 2005-2006 Jan Schneider <jan@horde.org>

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

_title()   X-Ref
The title to go in this block.

return: string   The title text.

_content()   X-Ref
The content to go in this block.

return: string   The content

Classe: Accounts_Driver  - X-Ref

Accounts_Driver:: defines an API for getting/displaying account information
for a user for the accounts module.

Copyright 2001-2006 Eric Rostetter <eric.rostetter@physics.utexas.edu>

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

getUsername()   X-Ref
Returns the username.

return: string  The lowercased username.

getRealm()   X-Ref
Returns the user realm.

return: string  The user realm.

getQuota()   X-Ref
Returns the user's quota if available.

return: mixed  A quota array, elements are used bytes and limit bytes on

getFullname()   X-Ref
Returns the user's full name.

return: mixed  The user's full name (string), or false (error).

getHome()   X-Ref
Returns the user's home (login) directory.

return: mixed  The user's directory (string), or false (error).

getShell()   X-Ref
Returns the user's default shell.

return: mixed  The user's shell (string), or false (error).

getPasswordChange()   X-Ref
Returns the date of the user's last password change.

return: mixed  Date string (string) or false (error).

checkPasswordStatus()   X-Ref
Returns the status of the current password.

return: mixed  A string with a warning message if the password is about

Classe: Accounts_Driver_localhost  - X-Ref

Implements the Accounts API for servers with unix accounts on the localhost
machine (same machine as the web server).  Should work for local unix
accounts, nis/nis+ accounts, or any PAM oriented accounts that appear as
local accounts on the local machine.  The exception is the quota support.
See that routine for additional comments.

Copyright 2002-2006 Eric Jon Rostetter <eric.rostetter@physics.utexas.edu>

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

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

param: array $params  Hash containing connection parameters.

_getAccount()   X-Ref
Returns the user account from the posix information.

return: array  A hash with complete account details.

getQuota()   X-Ref
Implement the Quota API for IMAP servers with a unix quota command.
This may require a modified "quota" command that allows the httpd
server account to get quotas for other users...  It requires that your
web server and user server be the same server or at least have shared
authentication and file servers (e.g. via NIS/NFS).  And last, it (as
written) requires the posix php extensions.

If your quota command wraps the output onto two lines, then this module
will only work if you have a grep which supports the -A switch, and you
append an -A1 switch to your grep_path (e.g. '/bin/grep -A1').

return: mixed  The quota hash (bytes used, limit) or false for error.

getFullname()   X-Ref
Returns the user's full name.

return: mixed  The user's full name (string), or false (error).

getHome()   X-Ref
Returns the user's home (login) directory.

return: mixed  The user's directory (string), or false (error).

getShell()   X-Ref
Returns the user's default shell.

return: mixed  The user's shell (string), or false (error).

Classe: Accounts_Driver_ldap  - X-Ref

The ldap class attempts to return user information stored in an ldap
directory service.

Copyright 2001-2006 Eric Rostetter <eric.rostetter@physics.utexas.edu>

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

Accounts_Driver_ldap($params = array()   X-Ref
Constructs a new Accounts_Driver_ldap object.

param: array $params  A hash containing connection parameters.

_getAccount()   X-Ref
Returns the user account from the ldap source.

return: array  A hash with complete account details.

getFullname()   X-Ref
Returns the user's full name.

return: mixed  The user's full name (string), or false (error).

getHome()   X-Ref
Returns the user's home (login) directory.

return: mixed  The user's directory (string), or false (error).

getShell()   X-Ref
Returns the user's default shell.

return: mixed  The user's shell (string), or false (error).

getPasswordChange()   X-Ref
Returns the date of the user's last password change.

return: mixed  Date string (string) or false (error).

checkPasswordStatus()   X-Ref
Returns the status of the current password.

return: mixed  A string with a warning message if the password is about



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