PHP 클래스 Passwd_Driver_Pine, horde

저자: Max Kalika ([email protected])
상속: extends Passwd_Driver
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_connected boolean Boolean which contains state of the ftp connection.
$_contents array Contents array of the pine password file.
$_ftp VFS Horde_Vfs instance.

공개 메소드들

메소드 설명
__construct ( array $params = [] )

보호된 메소드들

메소드 설명
_changePassword ( $user, $oldpass, $newpass )
_connect ( $user, $password ) Connects to the FTP server.
_decode ( string $string ) : array Decodes a Pine-encoded password string.
_disconnect ( ) Disconnect from the FTP server.
_encode ( array $lines ) : array Encodes an array of elements into a Pine-readable password string.
_lookup ( string $user, string $oldPassword ) Finds out if a username and password is valid.
_modify ( string $user, string $newPassword ) Modifies a pine password record for a user.

메소드 상세

__construct() 공개 메소드

public __construct ( array $params = [] )
$params array

_changePassword() 보호된 메소드

protected _changePassword ( $user, $oldpass, $newpass )

_connect() 보호된 메소드

Connects to the FTP server.
protected _connect ( $user, $password )

_decode() 보호된 메소드

The algorithm is borrowed from read_passfile() and xlate_out() functions in pine/imap.c file distributed in the Pine source archive.
protected _decode ( string $string ) : array
$string string The contents of a pine-encoded password file.
리턴 array List of lines of decoded elements.

_disconnect() 보호된 메소드

Disconnect from the FTP server.
protected _disconnect ( )

_encode() 보호된 메소드

The algorithm is borrowed from write_passfile() and xlate_in() functions in pine/imap.c file distributed in the Pine source archive.
protected _encode ( array $lines ) : array
$lines array List of lines of decoded elements.
리턴 array Contents of a pine-readable password file.

_lookup() 보호된 메소드

Finds out if a username and password is valid.
protected _lookup ( string $user, string $oldPassword )
$user string The userID to check.
$oldPassword string An old password to check.

_modify() 보호된 메소드

Modifies a pine password record for a user.
protected _modify ( string $user, string $newPassword )
$user string The user whose record we will udpate.
$newPassword string The new password value to set.

프로퍼티 상세

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

Boolean which contains state of the ftp connection.
protected bool $_connected
리턴 boolean

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

Contents array of the pine password file.
protected array $_contents
리턴 array

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

Horde_Vfs instance.
protected VFS $_ftp
리턴 VFS