PHP 클래스 Phergie_Connection_Handler, phergie

저자: Phergie Development Team ([email protected])
상속: implements Countable, implements IteratorAggregate
파일 보기 프로젝트 열기: phergie/phergie 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

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