[TASK] Implemented the ProtocolHandler things so it works again.
[TASK] Added some comments. [TASK] Added TODOs concerning refactoring and more functions that are needed.
This commit is contained in:
@@ -58,14 +58,17 @@ abstract class Client_AbstractClient {
|
||||
|
||||
/**
|
||||
* This function will be the main entry point of any client.
|
||||
* Any reactions will be passed to the ProtocolHandler.
|
||||
* The ProtocolHandler will then pass the data back to the socket.
|
||||
* @param string $data
|
||||
* @return string
|
||||
* @return void
|
||||
*/
|
||||
abstract protected function processContentObject($contentObject);
|
||||
|
||||
/**
|
||||
* This function will load the given config.
|
||||
* @param array $config
|
||||
* @return void
|
||||
*/
|
||||
abstract public function loadConfig($config);
|
||||
|
||||
@@ -81,6 +84,7 @@ abstract class Client_AbstractClient {
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
* @return void
|
||||
*/
|
||||
public function setID($id) {
|
||||
$this->ID = $id;
|
||||
@@ -88,6 +92,7 @@ abstract class Client_AbstractClient {
|
||||
|
||||
/**
|
||||
* @param string $group
|
||||
* @return void
|
||||
*/
|
||||
public function setGroup($group) {
|
||||
$this->group = $group;
|
||||
@@ -96,6 +101,7 @@ abstract class Client_AbstractClient {
|
||||
/**
|
||||
* Injects ClientManager
|
||||
* @param Client_ClientManager $clientManager
|
||||
* @return void
|
||||
* @throws Exception_WrongDatatypeException
|
||||
*/
|
||||
public function injectClientManager($clientManager) {
|
||||
|
||||
Reference in New Issue
Block a user