PHP Класс Phergie_Connection_Handler, phergie

Автор: Phergie Development Team ([email protected])
Наследование: implements Countable, implements IteratorAggregate
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$connections array Map of connections indexed by hostmask

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Constructor to initialize storage for connections.
public __construct ( ) : void
Результат void

addConnection() публичный Метод

Adds a connection to the connection list.
public addConnection ( Phergie_Connection $connection ) : Phergie_Connection_Handler
$connection Phergie_Connection Connection to add
Результат Phergie_Connection_Handler Provides a fluent interface

count() публичный Метод

Returns the number of connections in the list.
public count ( ) : integer
Результат integer Number of connections

getConnections() публичный Метод

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)
Результат array List of Phergie_Connection objects corresponding to the specified hostmask(s)

getIterator() публичный Метод

Returns an iterator for the connection list.
public getIterator ( ) : ArrayIterator
Результат ArrayIterator

removeConnection() публичный Метод

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
Результат Phergie_Connection_Handler Provides a fluent interface

Описание свойств

$connections защищенное свойство

Map of connections indexed by hostmask
protected array $connections
Результат array