...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
public function assemblePluginAttributes($configuredAttributes, $provisioningData) { $attrs = array(); foreach($configuredAttributes as $attr => $cfg) { switch($attr) { case 'erpNumber': $attrs[$attr] = array(); foreach($provisioningData['Identifier'] as $m) { if(isset($m['type']) && $m['type'] == $cfg['typedefaulttype'] && $m['status'] == StatusEnum::Active) { $attrs[$attr] = $m['identifier']; break; } } break; case 'testDescription': $attrs[$attr] = "This is a test description"; break; // else we don't know what this attribute is } } return $attrs; } |
...