PHP Class Horde_Block_Account_Localhost, horde

See that routine for additional comments. Copyright 2002-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL-2). If you did not receive this file, see http://www.horde.org/licenses/lgpl.
Author: Eric Jon Rostetter ([email protected])
Author: Jan Schneider ([email protected])
Inheritance: extends Horde_Block_Account_Base
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_information array User information hash.

Méthodes publiques

Méthode Description
__construct ( array $params = [] ) Constructor.
getFullname ( ) : string Returns the user's full name.
getHome ( ) : string Returns the user's home (login) directory.
getQuota ( ) : array Returns the user's quota for servers with a unix quota command.
getShell ( ) : string Returns the user's default shell.

Méthodes protégées

Méthode Description
_getAccount ( ) : array Returns the user account from the posix information.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $params = [] )
$params array Hash containing connection parameters.

_getAccount() protected méthode

Returns the user account from the posix information.
protected _getAccount ( ) : array
Résultat array A hash with complete account details.

getFullname() public méthode

Returns the user's full name.
public getFullname ( ) : string
Résultat string The user's full name.

getHome() public méthode

Returns the user's home (login) directory.
public getHome ( ) : string
Résultat string The user's directory.

getQuota() public méthode

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').
public getQuota ( ) : array
Résultat array A quota array, elements are used bytes and limit bytes.

getShell() public méthode

Returns the user's default shell.
public getShell ( ) : string
Résultat string The user's shell.

Property Details

$_information protected_oe property

User information hash.
protected array $_information
Résultat array