protected function getParentVars()
    {
        $vars = array();
        $p = $this->getParent();
        while ($p) {
            $vars = array_merge($p->getVars(), $vars);
            $p = $p->getParent();
        }

        return $vars;
    }