$currVars = $this->readCurrentGroup();
// Append our variable
- $currVars[] = $this->generateVariableArray($variableName, $value);
+ array_push($currVars, $this->generateVariableArray($variableName, $value));
// Add it to the stack
$this->setVarStack($this->currGroup, $currVars);
// Is the variable set?
if ($index === FALSE) {
// Not found, add it
- $this->varStack[$varGroup][] = $this->generateVariableArray($variableName, $value);
+ array_push($this->varStack[$varGroup], $this->generateVariableArray($variableName, $value));
} else {
// Then modify it
$this->setVariableValue($this->currGroup, $index, $value);
$this->loadedRawData[$template] = $this->readVariable($template, 'config');
// Recursive protection:
- $this->loadedTemplates[] = $template;
+ array_push($this->loadedTemplates, $template);
} elseif ($this->getVariableIndex($template) !== FALSE) {
// Use that content here
$this->loadedRawData[$template] = $this->readVariable($template);
// Recursive protection:
- $this->loadedTemplates[] = $template;
+ array_push($this->loadedTemplates, $template);
} else {
// Then try to search for code-templates
try {
// Remember this template for recursion detection
// RECURSIVE PROTECTION!
- $this->loadedTemplates[] = $template;
+ array_push($this->loadedTemplates, $template);
} catch (FileIoException $e) {
// Even this is not done... :/
- $this->rawTemplates[] = $template;
+ array_push($this->rawTemplates, $template);
}
}
} // END - if
} // END - if
// Remember this template being compiled
- $this->compiledTemplates[] = $template;
+ array_push($this->compiledTemplates, $template);
// Compile the loaded code in five steps:
//
// Remember this template for recursion detection
// RECURSIVE PROTECTION!
- $this->loadedTemplates[] = $template;
+ array_push($this->loadedTemplates, $template);
} catch (FileIoException $e) {
// This template was never found. We silently ignore it
unset($this->rawTemplates[$key]);
// Remove it from stack
$this->removeVariable($currVariable['name'], 'general');
-
- // Re-assign the variable
//* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(__METHOD__ . ': value='. $value . ',name=' . $currVariable['name'] . ',index=' . $index);
- $this->setVariable('config', $currVariable['name'], $value);
+
+ // Is it a configuration key?
+ if ($this->getConfigInstance()->isConfigurationEntrySet($value)) {
+ // The value itself is a configuration entry
+ $this->assignConfigVariable($value);
+ } else {
+ // Re-assign the value directly
+ $this->setVariable('config', $currVariable['name'], $value);
+ }
} // END - foreach
}