PHP Класс Passwd_Driver_Pine, horde

Автор: Max Kalika ([email protected])
Наследование: extends Passwd_Driver
Показать файл Открыть проект

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

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