Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. |
Method | Description | |
---|---|---|
_authenticate ( string $userId, array $credentials ) | Find out if a set of login credentials are valid. |
public __construct ( array $params = [] ) | ||
$params | array | Optional parameters:
'hostspec' - (string) The hostname or IP address of the FTP server. DEFAULT: 'localhost' 'port' - (integer) The server port to connect to. DEFAULT: 21 |
protected _authenticate ( string $userId, array $credentials ) | ||
$userId | string | The userId to check. |
$credentials | array | An array of login credentials. For FTP, this must contain a password entry. |