Rework of the ModelFactory API to make it simpler and safer.

SVN:trunk[3347]
This commit is contained in:
Denis Flaven
2014-09-22 15:19:56 +00:00
parent 82a8a0bba7
commit 4953ea7701
2 changed files with 53 additions and 47 deletions

View File

@@ -106,7 +106,7 @@ class MFCompiler
//
$aMenuNodes = array();
$aMenusByModule = array();
foreach ($this->oFactory->ListActiveChildNodes('menus', 'menu') as $oMenuNode)
foreach ($this->oFactory->GetNodes('menus/menu') as $oMenuNode)
{
$sMenuId = $oMenuNode->getAttribute('id');
$aMenuNodes[$sMenuId] = $oMenuNode;
@@ -320,7 +320,7 @@ EOF;
mkdir($sDictDir, 0777, true);
}
$oDictionaries = $this->oFactory->ListActiveChildNodes('dictionaries', 'dictionary');
$oDictionaries = $this->oFactory->GetNodes('dictionaries/dictionary');
foreach($oDictionaries as $oDictionaryNode)
{
$this->CompileDictionary($oDictionaryNode, $sTempTargetDir, $sFinalTargetDir);