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
ファイルを表示 Open project: horde/horde

Protected Properties

Property Type Description
$_information array User information hash.

Public Methods

Method 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.

Protected Methods

Method Description
_getAccount ( ) : array Returns the user account from the posix information.

Method Details

__construct() public method

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

_getAccount() protected method

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

getFullname() public method

Returns the user's full name.
public getFullname ( ) : string
return string The user's full name.

getHome() public method

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

getQuota() public method

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
return array A quota array, elements are used bytes and limit bytes.

getShell() public method

Returns the user's default shell.
public getShell ( ) : string
return string The user's shell.

Property Details

$_information protected_oe property

User information hash.
protected array $_information
return array