Added <inherit_flags_from> to inherit the flags from another state.

SVN:trunk[3296]
This commit is contained in:
Denis Flaven
2014-08-13 15:04:25 +00:00
parent fd9008a163
commit 7d619f278e

View File

@@ -1093,8 +1093,7 @@ EOF;
$sLifecycle .= " MetaModel::Init_DefineState(\n";
$sLifecycle .= " \"".$sState."\",\n";
$sLifecycle .= " array(\n";
$sAttributeInherit = '';
//$sAttributeInherit = $oState->GetChildText('inherit_flags', ''); // Seems easy but think about the consequences when applying a delta
$sAttributeInherit = $oState->GetChildText('inherit_flags_from', '');
$sLifecycle .= " \"attribute_inherit\" => '$sAttributeInherit',\n";
$oHighlight = $oState->GetUniqueElement('highlight', false);
if ($oHighlight)