Свойство | Type | Description | |
---|---|---|---|
$context | array | Stream context options | |
$encoding | string | Encoding method for the connection, defaults to ISO-8859-1 but can be set to UTF-8 if necessary | |
$host | string | Host to which the client will connect | |
$hostmask | Phergie_Hostmask | Hostmask for the connection | |
$nick | string | Nick that the client will use | |
$password | string | Password that the client will use | |
$port | integer | Port on which the client will connect, defaults to the standard IRC port | |
$realname | string | Realname that the client will use | |
$transport | string | Transport for the connection, defaults to tcp but can be set to ssl or variations thereof to connect over SSL | |
$username | string | Username that the client will use |
Méthode | Description | |
---|---|---|
__construct ( array $options = [] ) : void | Constructor to initialize instance properties. | |
getContext ( ) : array | Returns the stream context options in use. | |
getEncoding ( ) : string | Returns the encoding in use by the connection. | |
getHost ( ) : string | Returns the host to which the client will connect if it is set or emits an error if it is not set. | |
getHostmask ( ) : string | Returns a hostmask that uniquely identifies the connection. | |
getNick ( ) : string | Returns the nick that the client will use. | |
getPassword ( ) : string | Returns the password that the client will use. | |
getPort ( ) : integer | Returns the port on which the client will connect. | |
getRealname ( ) : string | Returns the realname that the client will use. | |
getTransport ( ) : string | Returns the transport in use by the connection. | |
getUsername ( ) : string | Returns the username that the client will use. | |
setContext ( array $context ) : Phergie_Connection_Streams | Sets the stream context options to use. | |
setEncoding ( string $encoding ) : Phergie_Connection | Sets the encoding for the connection to use. | |
setHost ( string $host ) : Phergie_Connection | Sets the host to which the client will connect. | |
setNick ( string $nick ) : Phergie_Connection | Sets the nick that the client will use. | |
setOptions ( array $options ) : Phergie_Connection | Sets multiple connection settings using an array. | |
setPassword ( string $password ) : Phergie_Connection | Sets the password that the client will use. | |
setPort ( integer $port ) : Phergie_Connection | Sets the port on which the client will connect. | |
setRealname ( string $realname ) : Phergie_Connection | Sets the realname that the client will use. | |
setTransport ( string $transport ) : Phergie_Connection | Sets the transport for the connection to use. | |
setUsername ( string $username ) : Phergie_Connection | Sets the username that the client will use. |
Méthode | Description | |
---|---|---|
checkSetting ( string $setting ) : void | Emits an error related to a required connection setting does not have value set for it. |
public __construct ( array $options = [] ) : void | ||
$options | array | Optional associative array of property values to initialize |
Résultat | void |
protected checkSetting ( string $setting ) : void | ||
$setting | string | Name of the setting |
Résultat | void |
public getContext ( ) : array | ||
Résultat | array | Context options as they will be passed to stream_context_create() |
public getEncoding ( ) : string | ||
Résultat | string | Encoding (ex: ASCII, ISO-8859-1, UTF-8, etc.) |
public getHostmask ( ) : string | ||
Résultat | string |
public getPassword ( ) : string | ||
Résultat | string |
public getRealname ( ) : string | ||
Résultat | string |
public getTransport ( ) : string | ||
Résultat | string | Transport (ex: tcp, ssl, etc.) |
public getUsername ( ) : string | ||
Résultat | string |
public setContext ( array $context ) : Phergie_Connection_Streams | ||
$context | array | Context options as they will be passed to stream_context_create() |
Résultat | Phergie_Connection_Streams | Implements a fluent interface |
public setEncoding ( string $encoding ) : Phergie_Connection | ||
$encoding | string | Encoding to use (ex: ASCII, ISO-8859-1, UTF-8, etc.) |
Résultat | Phergie_Connection | Provides a fluent interface |
public setOptions ( array $options ) : Phergie_Connection | ||
$options | array | Associative array of setting names mapped to corresponding values |
Résultat | Phergie_Connection | Provides a fluent interface |
public setPassword ( string $password ) : Phergie_Connection | ||
$password | string | Password |
Résultat | Phergie_Connection | Provides a fluent interface |
public setRealname ( string $realname ) : Phergie_Connection | ||
$realname | string | Real name |
Résultat | Phergie_Connection | Provides a fluent interface |
public setTransport ( string $transport ) : Phergie_Connection | ||
$transport | string | Transport (ex: tcp, ssl, etc.) |
Résultat | Phergie_Connection | Provides a fluent interface |
public setUsername ( string $username ) : Phergie_Connection | ||
$username | string | Username |
Résultat | Phergie_Connection | Provides a fluent interface |
protected string $encoding | ||
Résultat | string |
protected string $host | ||
Résultat | string |
protected Phergie_Hostmask $hostmask | ||
Résultat | Phergie_Hostmask |
protected string $password | ||
Résultat | string |
protected int $port | ||
Résultat | integer |
protected string $realname | ||
Résultat | string |
protected string $transport | ||
Résultat | string |
protected string $username | ||
Résultat | string |