+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
*
* The XMLRepository is responsible for loading XML for case-types.
* It includes any bulk operations that apply across the list of all XML
return self::$singleton;
}
+ public function flush() {
+ $this->xml = array();
+ $this->hookCache = NULL;
+ $this->allCaseTypes = NULL;
+ CRM_Core_DAO::$_dbColumnValueCache = array();
+ }
+
/**
* Class constructor.
*
if ($fileName && file_exists($fileName)) {
// read xml file
$dom = new DomDocument();
- $dom->load($fileName);
+ $xmlString = file_get_contents($fileName);
+ $dom->loadXML($xmlString);
+ $dom->documentURI = $fileName;
$dom->xinclude();
$fileXml = simplexml_import_dom($dom);
}