);
$GLOBALS['__XML_ARGUMENTS'] = array();
$GLOBALS['__COLUMN_INDEX'] = array();
+ $GLOBALS['__XML_CONTENT'] = $content;
// Handle it over to the parser
parseXmlData($templateContent);
addXmlSpecialElements($template);
// Call the call-back function
- doCallXmlCallbackFunction();
+ doCallXmlCallbackFunction($content);
} else {
// Template not found
displayMessage('{%message,XML_TEMPLATE_404=' . $template . '%}');
// Is it there?
if (!function_exists($callbackName)) {
// No, then please add it
- reportBug(__FUNCTION__, __LINE__, 'callback=' . $callback . ',function=' . $function . 'arguments()=' . count($GLOBALS['__XML_ARGUMENTS'][$callback]) . ' - execute call-back does not exist.');
+ reportBug(__FUNCTION__, __LINE__, 'callback=' . $callback . ',function=' . $function . ',arguments()=' . count($GLOBALS['__XML_ARGUMENTS'][$callback]) . ',content()=' . count($GLOBALS['__XML_CONTENT']) . ' - execute call-back does not exist.');
} // END - if
// Call it
- call_user_func_array($callbackName, array($function, $GLOBALS['__XML_ARGUMENTS'][$callback], $GLOBALS['__COLUMN_INDEX'][$callback]));
+ call_user_func_array($callbackName, array($function, $GLOBALS['__XML_ARGUMENTS'][$callback], $GLOBALS['__COLUMN_INDEX'][$callback], $GLOBALS['__XML_CONTENT']));
} // END - foreach
} else {
// Not found
$characters = trim($characters);
// Are there some to handle?
- if (strlen($characters) == 0) {
+ if (empty($characters)) {
// Nothing to handle
return;
} // END - if
assert(isset($columnArray[$childKey]));
// Now is it what we are looking for?
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'value=' . $value . ',key=' . $key . ',childKey=' . $childKey . ',columnArray=' . $columnArray[$childKey]);
if ($columnArray[$childKey] === $value) {
// Remember this match
$return = $key;