[TASK] Added Tags to the DocComments.
[TASK] Reformated some classes.
This commit is contained in:
parent
26036e9994
commit
3880b59f94
|
@ -9,6 +9,7 @@ class Client_BotClient extends Client_AbstractClient {
|
|||
|
||||
/**
|
||||
* Default constructor.
|
||||
* @return void
|
||||
*/
|
||||
public function __construct() {
|
||||
|
||||
|
|
|
@ -143,6 +143,7 @@ class Client_ClientManager {
|
|||
/**
|
||||
* Closes and removes the connection.
|
||||
* @param Connection_ConnectionHandler $connectionHandler
|
||||
* @return void
|
||||
*/
|
||||
public function removeConnection($connectionHandler) {
|
||||
unset($this->configPool[$connectionHandler->getID()]);
|
||||
|
|
|
@ -112,6 +112,7 @@ class Connection_ConnectionHandler {
|
|||
/**
|
||||
* Injector for the internal ConnectionPool access.
|
||||
* @param Connection_ConnectionPool $connectionPool
|
||||
* @return void
|
||||
*/
|
||||
public function injectConnectionPool($connectionPool) {
|
||||
$this->connectionPool = $connectionPool;
|
||||
|
@ -149,6 +150,7 @@ class Connection_ConnectionHandler {
|
|||
/**
|
||||
* Sets the IPv6-flag.
|
||||
* @param boolean $IPv6
|
||||
* @return void
|
||||
*/
|
||||
public function setIPv6($IPv6) {
|
||||
$this->IPv6 = $IPv6;
|
||||
|
@ -157,6 +159,7 @@ class Connection_ConnectionHandler {
|
|||
/**
|
||||
* Sets reconnect_on_disconnect flag.
|
||||
* @param boolean $reconnect
|
||||
* @return void
|
||||
*/
|
||||
public function setReconnect($reconnect) {
|
||||
$this->reconnect_on_disconnect = $reconnect;
|
||||
|
|
|
@ -164,6 +164,7 @@ class Connection_ConnectionPool {
|
|||
* Writes the given data to the socket with $id.
|
||||
* @param int $id
|
||||
* @param string $data
|
||||
* @return void
|
||||
*/
|
||||
public function writeToID($id, $data) {
|
||||
foreach($this->connectionHandlers AS $connectionHandler) {
|
||||
|
|
|
@ -12,6 +12,7 @@ class Exception_GeneralException extends Exception {
|
|||
* @throws UnknownException
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($message = "", $code = 0) {
|
||||
if ($message === "") {
|
||||
|
|
|
@ -58,6 +58,7 @@ abstract class Protocol_AbstractProtocolHandler {
|
|||
/**
|
||||
* Adds the incoming data to the internal buffer.
|
||||
* @param string $rawData
|
||||
* @return void
|
||||
*/
|
||||
public function pushRawData($rawData) {
|
||||
$this->buffer_incoming->addData($rawData);
|
||||
|
|
|
@ -4,7 +4,5 @@
|
|||
* @author JPT
|
||||
* @package Protocol
|
||||
*/
|
||||
class Protocol_BotProtocolContentObject extends Protocol_AbstractProtocolContentObject {
|
||||
|
||||
}
|
||||
class Protocol_BotProtocolContentObject extends Protocol_AbstractProtocolContentObject {}
|
||||
?>
|
|
@ -187,6 +187,5 @@ class Protocol_IrcProtocolHandler extends Protocol_AbstractProtocolHandler {
|
|||
$this->sendRaw("PONG :" . $param);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
|
@ -4,7 +4,5 @@
|
|||
* @author JPT
|
||||
* @package Protocol
|
||||
*/
|
||||
class Protocol_RawProtocolContentObject extends Protocol_AbstractProtocolContentObject {
|
||||
|
||||
}
|
||||
class Protocol_RawProtocolContentObject extends Protocol_AbstractProtocolContentObject {}
|
||||
?>
|
|
@ -213,6 +213,7 @@ class Socket_SocketHandler {
|
|||
/**
|
||||
* Gets last error from socket.
|
||||
* @throws Exception_SocketException
|
||||
* @return void
|
||||
*/
|
||||
protected function error() {
|
||||
if(is_resource($this->socket) === FALSE) throw new Exception_SocketException("No socket resource available!", 1290954177);
|
||||
|
|
Loading…
Reference in New Issue