pQuery\DomNode::moveChildren PHP Метод

moveChildren() публичный Метод

#php5
public moveChildren ( $to, &$new_index, $start, $end )
    function moveChildren($to, &$new_index = -1, $start = 0, $end = -1)
    {
        #php5e
        if ($end < 0) {
            $end += count($this->children);
        }
        for ($i = $start; $i <= $end; $i++) {
            $this->children[$start]->changeParent($to, $new_index);
        }
    }
DomNode