true, 'parent' => true, 'root' => true, 'global' => true); // check and get attributes $_attr = $this->getAttributes($compiler, $args); if ($_attr['nocache'] === true) { $compiler->trigger_template_error('nocache option not allowed', null, true); } // save possible attributes $conf_file = $_attr['file']; if (isset($_attr['section'])) { $section = $_attr['section']; } else { $section = 'null'; } $scope = 'local'; // scope setup if (isset($_attr['scope'])) { $_attr['scope'] = trim($_attr['scope'], "'\""); if (isset($_is_legal_scope[$_attr['scope']])) { $scope = $_attr['scope']; } else { $compiler->trigger_template_error('illegal value for "scope" attribute', null, true); } } // create config object $_output = "configLoad($conf_file, $section, '$scope');?>"; return $_output; } }