[TASK] Updated variable names to lowerCamelCase.
This commit is contained in:
@@ -167,6 +167,63 @@ class Client_ClientManager {
|
||||
unset($this->registeredProtocols[$protocol]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Attaches a configuration to a connection.
|
||||
* Will overwrite the existing configuration for the connection.
|
||||
* @param array $config
|
||||
* @param Connection_ConnectionHandler $connectionHandler
|
||||
* @return void
|
||||
*/
|
||||
public function attachConfig($config, $connectionHandler) {
|
||||
$this->configPool[$connectionHandler->getID()] = $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls Connection_Pool
|
||||
* @see Connection_ConnectionPool
|
||||
* @param int $id
|
||||
* @param string $data
|
||||
* @return void
|
||||
*/
|
||||
public function sendToID($id, $data) {
|
||||
return $this->connectionPool->writeToID($id, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of available connection IDs.
|
||||
* @return array
|
||||
*/
|
||||
public function getIDs() {
|
||||
$list = array();
|
||||
foreach($this->connectionPool->getConnectionHandlers() AS $connectionHandler) {
|
||||
$list[] = $connectionHandler->getID();
|
||||
}
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of available connection groups.
|
||||
* @return array
|
||||
*/
|
||||
public function getGroups() {
|
||||
$list = array();
|
||||
foreach($this->connectionPool->getConnectionHandlers() AS $connectionHandler) {
|
||||
$list[] = $connectionHandler->getGroup();
|
||||
}
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls Connection_Pool
|
||||
* @see Connection_ConnectionPool
|
||||
* @param string $group
|
||||
* @param string $data
|
||||
* @return void
|
||||
*/
|
||||
public function sendToGroup($group, $data) {
|
||||
return $this->connectionPool->writeToGroup($group, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Searches for the registered client for the given protocol.
|
||||
* Returns a client instance or void.
|
||||
@@ -258,62 +315,5 @@ class Client_ClientManager {
|
||||
$this->connectionPool->removeConnectionHandler($connectionHandler);
|
||||
}
|
||||
|
||||
/**
|
||||
* Attaches a configuration to a connection.
|
||||
* Will overwrite the existing configuration for the connection.
|
||||
* @param array $config
|
||||
* @param Connection_ConnectionHandler $connectionHandler
|
||||
* @return void
|
||||
*/
|
||||
public function attachConfig($config, $connectionHandler) {
|
||||
$this->configPool[$connectionHandler->getID()] = $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls Connection_Pool
|
||||
* @see Connection_ConnectionPool
|
||||
* @param int $id
|
||||
* @param string $data
|
||||
* @return void
|
||||
*/
|
||||
public function sendToID($id, $data) {
|
||||
return $this->connectionPool->writeToID($id, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of available connection IDs.
|
||||
* @return array
|
||||
*/
|
||||
public function getIDs() {
|
||||
$list = array();
|
||||
foreach($this->connectionPool->getConnectionHandlers() AS $connectionHandler) {
|
||||
$list[] = $connectionHandler->getID();
|
||||
}
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of available connection groups.
|
||||
* @return array
|
||||
*/
|
||||
public function getGroups() {
|
||||
$list = array();
|
||||
foreach($this->connectionPool->getConnectionHandlers() AS $connectionHandler) {
|
||||
$list[] = $connectionHandler->getGroup();
|
||||
}
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls Connection_Pool
|
||||
* @see Connection_ConnectionPool
|
||||
* @param string $group
|
||||
* @param string $data
|
||||
* @return void
|
||||
*/
|
||||
public function sendToGroup($group, $data) {
|
||||
return $this->connectionPool->writeToGroup($group, $data);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user