* -------------------------------------------------------------------- *
* Kurzbeschreibung : Funktionen zum Umgang mit XML-Templates *
* -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
// Parses the XML content
function parseXmlData ($content) {
// Is there recode?
- if (!function_exists('recode')) {
+ if (!isPhpExtensionLoaded('recode')) {
// No fallback ATM
reportBug(__FUNCTION__, __LINE__, 'PHP extension recode is missing. Please install it.');
} // END - if
// Walk through all entries
foreach ($columns as $columnArray) {
// Must be an array
- assert(is_array($columnArray), 'columnArray[]=' . gettype($columnArray) . ' must be an array.');
+ assert(is_array($columnArray));
// Init SQL part
$sqlPart = '';
// Walk through whole array
foreach ($columns as $key => $columnArray) {
// Make sure the element is there
- assert(isset($columnArray[$childKey]), 'columnArray[' . $childKey . '] is not set.');
+ 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]);