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);
}
}