Lines Matching defs:idx
257 function children($idx = -1)
259 if ($idx === -1) {
263 if (isset($this->children[$idx])) {
264 return $this->children[$idx];
292 $idx = array_search($this, $this->parent->children, true);
294 if ($idx !== false && isset($this->parent->children[$idx + 1])) {
295 return $this->parent->children[$idx + 1];
307 $idx = array_search($this, $this->parent->children, true);
309 if ($idx !== false && $idx > 0) {
310 return $this->parent->children[$idx - 1];
511 function find($selector, $idx = null, $lowercase = false)
558 if (is_null($idx)) { return $found; }
559 elseif ($idx < 0) { $idx = count($found) + $idx; }
560 return (isset($found[$idx])) ? $found[$idx] : null;
1327 function getElementsById($id, $idx = null)
1329 return $this->find("#$id", $idx);
1337 function getElementsByTagName($name, $idx = null)
1339 return $this->find($name, $idx);
1347 function childNodes($idx = -1)
1349 return $this->children($idx);
1584 function find($selector, $idx = null, $lowercase = false)
1586 return $this->root->find($selector, $idx, $lowercase);
2219 $idx = ($remove_tag) ? 0 : 1; // 0 = entire match, 1 = submatch
2220 $this->noise[$key] = $matches[$i][$idx][0];
2221 $this->doc = substr_replace($this->doc, $key, $matches[$i][$idx][1], strlen($matches[$i][$idx][0]));
2311 function childNodes($idx = -1)
2313 return $this->root->childNodes($idx);
2341 function getElementsById($id, $idx = null)
2343 return $this->find("#$id", $idx);
2351 function getElementsByTagName($name, $idx = -1)
2353 return $this->find($name, $idx);