Lines Matching defs:dom
68 $dom = new simple_html_dom(
92 $dom->clear();
96 return $dom->load($contents, $lowercase, $stripRN);
108 $dom = new simple_html_dom(
119 $dom->clear();
123 return $dom->load($str, $lowercase, $stripRN);
141 private $dom = null;
143 function __construct($dom)
145 $this->dom = $dom;
146 $dom->nodes[] = $this;
161 $this->dom = null;
352 return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
385 if ($this->dom && $this->dom->callback !== null) {
386 call_user_func_array($this->dom->callback, array($this));
394 return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
399 if ($this->dom && $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]) {
400 $ret = $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]->makeup();
428 case HDOM_TYPE_TEXT: return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
456 $ret .= $this->dom->default_span_text;
475 return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
510 $ret = $this->dom->restore_noise($ret);
536 $n = ($k === -1) ? $this->dom->root : $this->dom->nodes[$k];
557 $found[] = $this->dom->nodes[$k];
590 $nodes = array_slice($this->dom->nodes, $nodes_start, $nodes_count, true);
838 * since $dom->x:y will fail the php syntax check.
898 if ($this->dom->lowercase) {
1027 if ($this->dom) {
1028 $sourceCharset = strtoupper($this->dom->_charset);
1029 $targetCharset = strtoupper($this->dom->_target_charset);
1291 $didx = array_search($node, $this->dom->nodes, true);
1301 $edidx = array_search($entity, $node->dom->nodes, true);
1305 unset($node->dom->nodes[$edidx]);
1311 unset($this->dom->nodes[$didx]);