PHP 클래스 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.
저자: Eric Jon Rostetter ([email protected])
저자: Jan Schneider ([email protected])
상속: extends Horde_Block_Account_Base
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_information array User information hash.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
_getAccount ( ) : array Returns the user account from the posix information.

메소드 상세

__construct() 공개 메소드

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

_getAccount() 보호된 메소드

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

getFullname() 공개 메소드

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

getHome() 공개 메소드

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

getQuota() 공개 메소드

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

getShell() 공개 메소드

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

프로퍼티 상세

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

User information hash.
protected array $_information
리턴 array