PHP Class Horde_Mail_Autoconfig_Server, horde

Author: Michael Slusarz ([email protected])
显示文件 Open project: horde/horde

Public Properties

Property Type Description
$host string The server hostname (IDN encoded).
$label integer The server label.
$port integer The server port.
$tls mixed 'tls' = TLS needed for direct connection to server/port. 'starttls' = Switch to TLS via protocol after connection. false = No TLS connection used.
$username string The username to use.

Public Methods

Method Description
valid ( array $opts = [] ) : boolean Check to see if server can be connected to.

Method Details

valid() abstract public method

Check to see if server can be connected to.
abstract public valid ( array $opts = [] ) : boolean
$opts array Additional options: - auth: (mixed) The authentication credentials used to test a successful connection. - insecure: (boolean) If true, will attempt insecure authentication. - users: (array) A list of usernames to attempt if trying auth. If successful, the username will be stored in $username.
return boolean True if server is valid.

Property Details

$host public_oe property

The server hostname (IDN encoded).
public string $host
return string

$label public_oe property

The server label.
public int $label
return integer

$port public_oe property

The server port.
public int $port
return integer

$tls public_oe property

'tls' = TLS needed for direct connection to server/port. 'starttls' = Switch to TLS via protocol after connection. false = No TLS connection used.
public mixed $tls
return mixed

$username public_oe property

The username to use.
public string $username
return string