Lines Matching defs:idx
260 function children($idx = -1)
262 if ($idx === -1) {
266 if (isset($this->children[$idx])) {
267 return $this->children[$idx];
295 $idx = array_search($this, $this->parent->children, true);
297 if ($idx !== false && isset($this->parent->children[$idx + 1])) {
298 return $this->parent->children[$idx + 1];
310 $idx = array_search($this, $this->parent->children, true);
312 if ($idx !== false && $idx > 0) {
313 return $this->parent->children[$idx - 1];
514 function find($selector, $idx = null, $lowercase = false)
561 if (is_null($idx)) { return $found; }
562 elseif ($idx < 0) { $idx = count($found) + $idx; }
563 return (isset($found[$idx])) ? $found[$idx] : null;
1323 function getElementsById($id, $idx = null)
1325 return $this->find("#$id", $idx);
1333 function getElementsByTagName($name, $idx = null)
1335 return $this->find($name, $idx);
1343 function childNodes($idx = -1)
1345 return $this->children($idx);
1578 function find($selector, $idx = null, $lowercase = false)
1580 return $this->root->find($selector, $idx, $lowercase);
2213 $idx = ($remove_tag) ? 0 : 1; // 0 = entire match, 1 = submatch
2214 $this->noise[$key] = $matches[$i][$idx][0];
2215 $this->doc = substr_replace($this->doc, $key, $matches[$i][$idx][1], strlen($matches[$i][$idx][0]));
2305 function childNodes($idx = -1)
2307 return $this->root->childNodes($idx);
2335 function getElementsById($id, $idx = null)
2337 return $this->find("#$id", $idx);
2345 function getElementsByTagName($name, $idx = -1)
2347 return $this->find($name, $idx);