AddInput(self::INPUT_CLASS_NAME, ClassIOFormat::class); } /** @inheritdoc */ public function InitOutputs(): void { parent::InitOutputs(); $this->AddOutput(self::OUTPUT_ATTRIBUTE, AttributeIOFormat::class, new StringToAttributeConverter()); } /** @inheritdoc */ public function UpdateDynamicOptions(string $sEventType = null): void { $oValue = $this->GetInput(self::INPUT_CLASS_NAME)->GetValue($sEventType); $aAttributeCodes = MetaModel::GetAttributesList($oValue); $this->aDynamicOptions['choices'] = array_combine($aAttributeCodes, $aAttributeCodes); } }