PHP Class Horde_Block_Account_Finger, horde

Copyright 2001-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: Peter Paul Elfferich ([email protected])
Author: Jan Schneider ([email protected])
Inheritance: extends Horde_Block_Account_Base
Mostra file Open project: horde/horde

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.
getShell ( ) : string Returns the user's default shell.

Protected Methods

Method Description
_get ( string $what ) : string Returns some user detail.
_getAccount ( ) : array Returns the user account.
_parseAccount ( array $output ) : array Returns a hash with parsed account information.

Method Details

__construct() public method

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

_get() protected method

Returns some user detail.
protected _get ( string $what ) : string
$what string Which information to return.
return string The user's detail.

_getAccount() protected method

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

_parseAccount() protected method

Returns a hash with parsed account information.
protected _parseAccount ( array $output ) : array
$output array Array of finger output strings
return array A hash with account details parsed from output

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.

getShell() public method

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