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
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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