Property | Type | Description | |
---|---|---|---|
$connections | array | Map of connections indexed by hostmask |
Method | Description | |
---|---|---|
__construct ( ) : void | Constructor to initialize storage for connections. | |
addConnection ( Phergie_Connection $connection ) : Phergie_Connection_Handler | Adds a connection to the connection list. | |
count ( ) : integer | Returns the number of connections in the list. | |
getConnections ( array | string $keys = null ) : array | Returns a list of specified connection objects. | |
getIterator ( ) : ArrayIterator | Returns an iterator for the connection list. | |
removeConnection ( Phergie_Connection | string $connection ) : Phergie_Connection_Handler | Removes a connection from the connection list. |
public __construct ( ) : void | ||
return | void |
public addConnection ( Phergie_Connection $connection ) : Phergie_Connection_Handler | ||
$connection | Phergie_Connection | Connection to add |
return | Phergie_Connection_Handler | Provides a fluent interface |
public getIterator ( ) : ArrayIterator | ||
return | ArrayIterator |
public removeConnection ( Phergie_Connection | string $connection ) : Phergie_Connection_Handler | ||
$connection | Phergie_Connection | string | Instance or hostmask for the connection to remove |
return | Phergie_Connection_Handler | Provides a fluent interface |
protected array $connections | ||
return | array |