Setup: Display the XML errors on the screen (cleanup deprecated functions)

SVN:trunk[5717]
This commit is contained in:
Eric Espié
2018-04-20 16:02:41 +00:00
parent b529f3d4cc
commit d120109a78
3 changed files with 40 additions and 61 deletions

View File

@@ -821,18 +821,28 @@ class ModelFactory
/**
* XML load errors (XML format and validation)
* @Deprecated Errors are now sent by Exception
*/
function HasLoadErrors()
{
return (count(self::$aLoadErrors) > 0);
}
/**
* @Deprecated Errors are now sent by Exception
* @return array
*/
function GetLoadErrors()
{
return self::$aLoadErrors;
}
function GetXMLErrorMessage($aErrors)
/**
* @param array $aErrors
*
* @return string
*/
protected function GetXMLErrorMessage($aErrors)
{
$sMessage = "Data model source file ({$aErrors[0]->file}) could not be loaded : \n";
foreach($aErrors as $oXmlError)