$this->clientManager->getIDs(), "Groups" => $this->clientManager->getGroups() ), TRUE); } if(strpos($rawData, "-") !== FALSE ) { $data = explode("-", $rawData, 2); $this->clientManager->sendToID((int) $data[0], $data[1]."\r\n"); $return = print_r($data, TRUE); } if(strpos($rawData, "+") !== FALSE ) { $data = explode("+", $rawData, 2); $this->clientManager->sendToGroup($data[0], $data[1]."\r\n"); $return = print_r($data, TRUE); } //TODO: implement this correctly $return = str_replace("\n", "\r\n", $return); return $return; } /** * Loads the given configuration. * @param array $config * @return void */ public function loadConfig($config) { } } ?>