($code, $arg, $input)
| 236 | } |
| 237 | |
| 238 | private function sendCmd($code, $arg, $input) |
| 239 | { |
| 240 | $this->send(chr($code).$arg.chr(0).$input.chr(0)); |
| 241 | $this->info = $this->receive(); |
| 242 | if (!$this->ok()) { |
| 243 | throw new BaseXException($this->info); |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * Raises a socket error. |