($cmd, $arg)
| 86 | } |
| 87 | |
| 88 | public function exec($cmd, $arg) |
| 89 | { |
| 90 | $this->session->send($cmd.$arg.chr(0)); |
| 91 | $s = $this->session->receive(); |
| 92 | if (!$this->session->ok()) { |
| 93 | throw new BaseXException($this->session->readString()); |
| 94 | } |
| 95 | return $s; |
| 96 | } |
| 97 | |
| 98 | public function current() |
| 99 | { |