protected function add_parent_data($name, $type)
{
if (empty($this->parent)) {
return;
}
if (!isset($this->parent->locals[$type])) {
$this->parent->locals[$type] = array();
}
if (is_array($name)) {
$this->parent->locals[$type] = array_merge($name, $this->parent->locals[$type]);
} elseif (!in_array($name, $this->parent->locals[$type])) {
$this->parent->locals[$type][] = $name;
}
}