Rework of the relation diagrams: implemented MetaModel::GetRelatedObjectsUp, and took the redundancy into account (still misses a GUI)

SVN:trunk[3545]
This commit is contained in:
Romain Quetiez
2015-04-15 09:06:50 +00:00
parent ef8888c679
commit 26eb4c7083
8 changed files with 528 additions and 38 deletions

View File

@@ -1449,11 +1449,12 @@ EOF;
if ($oRedundancy)
{
$oEnabled = $oRedundancy->GetUniqueElement('enabled');
$aData['bEnabledValue'] = ($oEnabled->GetChildText('value', 'false') == 'true');
$aData['sEnabledMode'] = $oEnabled->GetChildText('mode', 'fixed');
$oThreshold = $oRedundancy->GetUniqueElement('threshold');
$aData['iThresholdValue'] = (int) $oThreshold->GetChildText('value', 1);
$aData['sThresholdMode'] = $oThreshold->GetChildText('mode', 'fixed');
$aData['bRedundancyEnabledValue'] = ($oEnabled->GetChildText('value', 'false') == 'true');
$aData['sRedundancyEnabledMode'] = $oEnabled->GetChildText('mode', 'fixed');
$oMinUp = $oRedundancy->GetUniqueElement('min_up');
$aData['sRedundancyMinUpType'] = $oMinUp->GetChildText('type', 'count');
$aData['iRedundancyMinUpValue'] = (int) $oMinUp->GetChildText('value', 1);
$aData['sRedundancyMinUpMode'] = $oMinUp->GetChildText('mode', 'fixed');
}
$aRelations[$sRelationId][$sNeighbourId] = $aData;