39 protected $cmd = null;
46 protected $rpl = null;
53 protected $con = null;
60 protected $err = array();
67 protected $evt = array();
74 protected $exp = TRUE;
89 $this->exp = (bool) $exp;
102 return (!func_num_args()) ? $this->rpl->unescape() : $this->rpl;
112 if(!count($this->rpl))
return array();
118 for($i = 0; $i < count($list); $i++) $list[$i]->unescape();
133 foreach($this->
toLines(0) as $cells)
139 for($i = 0; $i < count($pairs); $i++) $pairs[$i]->unescape();
158 for($i = 0; $i < count($table); $i++)
160 foreach($table[$i] as $pair)
169 $array[$i][$pair->toString()] = null;
175 $array[$i][$ident->toString()] = $value->isInt() ? $value->toInt() : (!func_num_args() ? $value->unescape() : $value);
192 $nodes = (func_num_args() > 1) ? $this->
toArray(1) : $this->
toArray();
195 foreach($nodes as $node)
197 if(array_key_exists($ident, $node))
199 $array[(is_object($node[$ident])) ? $node[$ident]->
toString() : $node[$ident]] = $node;
219 if(count($array) == 1)
221 return array_shift($array);
234 $array = (func_num_args() > 1) ? $this->
toArray(1) : $this->
toArray();
236 for($i = 0; $i < count($array); $i++)
238 $array[$i] = (object) $array[$i];
273 return (array_key_exists($ident, $this->err)) ? $this->err[$ident] : $default;
292 $this->err[$ident->toString()] = $value->isInt() ? $value->toInt() : $value->unescape();
301 if($permsid = key($this->con->request(
"permget permid=" . $permid, FALSE)->toAssocArray(
"permsid")))
303 $suffix =
" (failed on " . $permsid .
")";
307 $suffix =
" (failed on " . $this->cmd->section(
TeamSpeak3::SEPARATOR_CELL) .
" " . $permid .
"/0x" . strtoupper(dechex($permid)) .
")";
312 $suffix =
" (" . trim($details) .
")";
331 foreach($rpl as $key => $val)