PHP Class Phergie_Connection_Handler, phergie

Author: Phergie Development Team ([email protected])
Inheritance: implements Countable, implements IteratorAggregate
Afficher le fichier Open project: phergie/phergie Class Usage Examples

Protected Properties

Свойство Type Description
$connections array Map of connections indexed by hostmask

Méthodes publiques

Méthode 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.

Method Details

__construct() public méthode

Constructor to initialize storage for connections.
public __construct ( ) : void
Résultat void

addConnection() public méthode

Adds a connection to the connection list.
public addConnection ( Phergie_Connection $connection ) : Phergie_Connection_Handler
$connection Phergie_Connection Connection to add
Résultat Phergie_Connection_Handler Provides a fluent interface

count() public méthode

Returns the number of connections in the list.
public count ( ) : integer
Résultat integer Number of connections

getConnections() public méthode

Returns a list of specified connection objects.
public getConnections ( array | string $keys = null ) : array
$keys array | string One or more hostmasks identifying the connections to return (optional)
Résultat array List of Phergie_Connection objects corresponding to the specified hostmask(s)

getIterator() public méthode

Returns an iterator for the connection list.
public getIterator ( ) : ArrayIterator
Résultat ArrayIterator

removeConnection() public méthode

Removes a connection from the connection list.
public removeConnection ( Phergie_Connection | string $connection ) : Phergie_Connection_Handler
$connection Phergie_Connection | string Instance or hostmask for the connection to remove
Résultat Phergie_Connection_Handler Provides a fluent interface

Property Details

$connections protected_oe property

Map of connections indexed by hostmask
protected array $connections
Résultat array