39 protected $cmd = null;
46 protected $rpl = null;
53 protected $con = null;
60 protected $err = array();
67 protected $evt = array();
93 return (!func_num_args()) ? $this->rpl->unescape() : $this->rpl;
103 if(!count($this->rpl))
return array();
109 for($i = 0; $i < count($list); $i++) $list[$i]->unescape();
124 foreach($this->
toLines(0) as $cells)
130 for($i = 0; $i < count($pairs); $i++) $pairs[$i]->unescape();
149 for($i = 0; $i < count($table); $i++)
151 foreach($table[$i] as $pair)
155 $array[$i][$pair->toString()] = null;
161 $array[$i][$ident->toString()] = $value->isInt() ? $value->toInt() : (!func_num_args() ? $value->unescape() : $value);
178 $nodes = (func_num_args() > 1) ? $this->
toArray(1) : $this->
toArray();
181 foreach($nodes as $node)
183 if(array_key_exists($ident, $node))
185 $array[(is_object($node[$ident])) ? $node[$ident]->
toString() : $node[$ident]] = $node;
205 if(count($array) == 1)
207 return array_shift($array);
220 $array = (func_num_args() > 1) ? $this->
toArray(1) : $this->
toArray();
222 for($i = 0; $i < count($array); $i++)
224 $array[$i] = (object) $array[$i];
259 return (array_key_exists($ident, $this->err)) ? $this->err[$ident] : $default;
278 $this->err[$ident->toString()] = $value->isInt() ? $value->toInt() : $value->unescape();
289 $suffix =
" (failed on " . key($this->con->selfPermCheck($permid)) .
")";
293 $suffix =
" (failed on " . $this->cmd->section(
TeamSpeak3::SEPARATOR_CELL) .
" " . $permid .
"/0x" . strtoupper(dechex($permid)) .
")";
298 $suffix =
" (" . trim($details) .
")";
317 foreach($rpl as $key => $val)