/**
* Loaded raw template data
*/
- private $loadedRawData = null;
+ private $loadedRawData = NULL;
/**
* Raw templates which are linked in code templates
*/
- private $rawTemplates = null;
+ private $rawTemplates = NULL;
/**
* A regular expression for variable=value pairs
* @param $stack Optional variable stack to look in
* @return $index FALSE means not found, >=0 means found on a specific index
*/
- private function getVariableIndex ($var, $stack = null) {
+ private function getVariableIndex ($var, $stack = NULL) {
// First everything is not found
$found = false;
* @param $stack Optional variable stack to look in
* @return $content Content of the variable or null if not found
*/
- protected function readVariable ($var, $stack = null) {
+ protected function readVariable ($var, $stack = NULL) {
// First everything is not found
- $content = null;
+ $content = NULL;
// If the stack is null, use the current group
if (is_null($stack)) $stack = $this->currGroup;
$$validVar = $dummy;
// Prepare all configuration variables
- $config = null;
+ $config = NULL;
if ($this->isVarStackSet('config')) {
$config = $this->getVarStack('config');
} // END - if
* @return void
* @throws XmlParserException If an XML error was found
*/
- public function renderXmlContent ($content = null) {
+ public function renderXmlContent ($content = NULL) {
// Is the content set?
if (is_null($content)) {
// Get current content
} // END - foreach
} // END - if
+ // Set the content again
+ $this->setRawTemplateData($compactedContent);
+
// Return compacted content
return $compactedContent;
}