mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 22:48:45 +02:00
N°8772 - Compiler: add dynamic bindings
This commit is contained in:
@@ -34,7 +34,11 @@ class Property extends AbstractProperty
|
||||
|
||||
$sInputs = '';
|
||||
foreach ($this->oValueType->GetInputs() as $sInput => $sValue) {
|
||||
$sInputs .= "\n ->SetInputValue('$sInput', '$sValue')";
|
||||
if (preg_match("/^{{(?<node>\w+)\.(?<output>\w+)}}$/", $sValue, $aMatches) === 1) {
|
||||
$sInputs .= "\n ->InputDependsOn('$sInput', '{$aMatches['node']}', '{$aMatches['output']}')";
|
||||
} else {
|
||||
$sInputs .= "\n ->SetInputValue('$sInput', '$sValue')";
|
||||
}
|
||||
}
|
||||
|
||||
return <<<PHP
|
||||
|
||||
Reference in New Issue
Block a user