[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:
Jan Philipp Timme
2010-12-08 16:47:04 +00:00
parent 2b8263a49d
commit dee3333578
10 changed files with 114 additions and 17 deletions
+7 -1
View File
@@ -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) {