*
* @var array
*/
- static $_exportableFields = NULL;
+ public static $_exportableFields = NULL;
/**
* Takes an associative array and creates a Case Type object.
}
}
-
/**
* Format / convert submitted array to xml for case type definition
*
}
break;
- case 'sequence': // passthrough
+ // passthrough
+ case 'sequence':
case 'timeline':
if ($setVal) {
$xmlFile .= "<{$index}>true</{$index}>\n";
*/
protected static function encodeXmlString($str) {
// PHP 5.4: return htmlspecialchars($str, ENT_XML1, 'UTF-8')
- return htmlspecialchars($str);
+ if (is_scalar($str)) {
+ return htmlspecialchars($str);
+ }
+ else {
+ return NULL;
+ }
}
/**