You are here

protected function simple_html_dom::link_nodes in simplehtmldom API 6

Same name and namespace in other branches
  1. 5.2 simplehtmldom/simple_html_dom.php \simple_html_dom::link_nodes()
  2. 7 simplehtmldom/simple_html_dom.php \simple_html_dom::link_nodes()
3 calls to simple_html_dom::link_nodes()
simple_html_dom::as_text_node in simplehtmldom/simple_html_dom.php
simple_html_dom::parse in simplehtmldom/simple_html_dom.php
simple_html_dom::read_tag in simplehtmldom/simple_html_dom.php

File

simplehtmldom/simple_html_dom.php, line 845

Class

simple_html_dom

Code

protected function link_nodes(&$node, $is_child) {
  $node->parent = $this->parent;
  $this->parent->nodes[] = $node;
  if ($is_child) {
    $this->parent->children[] = $node;
  }
}