src/Thujohn/Pdf/dompdf/include/frame.cls.php
function append_child(Frame $child, $update_node = true) {
    if ( $update_node ) 
      $this->_node->appendChild($child->_node);

    // Remove the child from its parent
    if ( $child->_parent )
      $child->_parent->remove_child($child, false);

    $child->_parent = $this;
    $child->_next_sibling = null;
    
    // Handle the first child
    if ( !$this->_last_child ) {
      $this->_first_child = $child;
      $this->_last_child = $child;
      $child->_prev_sibling = null;
    } else {
      $this->_last_child->_next_sibling = $child;
      $child->_prev_sibling = $this->_last_child;
      $this->_last_child = $child;
    }
  }
function append_child(Frame $child, $update_node = true) {
    if ( $update_node ) 
      $this->_node->appendChild($child->_node);

    // Remove the child from its parent
    if ( $child->_parent )
      $child->_parent->remove_child($child, false);

    $child->_parent = $this;
    $child->_next_sibling = null;
    
    // Handle the first child
    if ( !$this->_last_child ) {
      $this->_first_child = $child;
      $this->_last_child = $child;
      $child->_prev_sibling = null;
    } else {
      $this->_last_child->_next_sibling = $child;
      $child->_prev_sibling = $this->_last_child;
      $this->_last_child = $child;
    }
  }
function append_child ( Frame $ child , $ update_node = true ) { if ( $ update_node ) $ this -> _node -> appendChild ( $ child -> _node ) ; // Remove the child from its parent if ( $ child -> _parent ) $ child -> _parent -> remove_child ( $ child , false ) ; $ child -> _parent = $ this ; $ child -> _next_sibling = null ; // Handle the first child if ( ! $ this -> _last_child ) { $ this -> _first_child = $ child ; $ this -> _last_child = $ child ; $ child -> _prev_sibling = null ; } else { $ this -> _last_child -> _next_sibling = $ child ; $ child -> _prev_sibling = $ this -> _last_child ; $ this -> _last_child = $ child ; } }
Inserts a new child at the end of the Frame

@param $child Frame The new Frame to insert
@param $update_node boolean Whether or not to update the DOM
Inserts a new child at the end of the Frame