Lines Matching defs:dom
65 $dom = new simple_html_dom(
89 $dom->clear();
93 return $dom->load($contents, $lowercase, $stripRN);
105 $dom = new simple_html_dom(
116 $dom->clear();
120 return $dom->load($str, $lowercase, $stripRN);
138 private $dom = null;
140 function __construct($dom)
142 $this->dom = $dom;
143 $dom->nodes[] = $this;
158 $this->dom = null;
349 return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
382 if ($this->dom && $this->dom->callback !== null) {
383 call_user_func_array($this->dom->callback, array($this));
391 return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
396 if ($this->dom && $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]) {
397 $ret = $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]->makeup();
425 case HDOM_TYPE_TEXT: return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
453 $ret .= $this->dom->default_span_text;
472 return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
507 $ret = $this->dom->restore_noise($ret);
533 $n = ($k === -1) ? $this->dom->root : $this->dom->nodes[$k];
554 $found[] = $this->dom->nodes[$k];
587 $nodes = array_slice($this->dom->nodes, $nodes_start, $nodes_count, true);
616 $ret[array_search($node, $this->dom->nodes, true)] = 1;
842 * since $dom->x:y will fail the php syntax check.
902 if ($this->dom->lowercase) {
1031 if ($this->dom) {
1032 $sourceCharset = strtoupper($this->dom->_charset);
1033 $targetCharset = strtoupper($this->dom->_target_charset);
1295 $didx = array_search($node, $this->dom->nodes, true);
1305 $edidx = array_search($entity, $node->dom->nodes, true);
1309 unset($node->dom->nodes[$edidx]);
1315 unset($this->dom->nodes[$didx]);