mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
Setup: Display the XML errors on the screen (cleanup deprecated functions)
SVN:trunk[5717]
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user