5, 'style' => 'height: auto;', ]; } /** @inheritdoc */ public function InitInputs(): void { parent::InitInputs(); $this->AddInput(self::INPUT_CLASS_NAME, ClassIOFormat::class); $this->AddInput(self::INPUT_ATTRIBUTE, AttributeIOFormat::class); } /** @inheritdoc */ public function InitOutputs(): void { parent::InitOutputs(); $this->AddOutput(self::OUTPUT_VALUE, RawFormat::class); } /** @inheritdoc */ public function UpdateDynamicOptions(string $sEventType = null): void { $oClassName = $this->GetInput(self::INPUT_CLASS_NAME)->GetValue($sEventType); $oAttribute = $this->GetInput(self::INPUT_ATTRIBUTE)->GetValue($sEventType); try{ $oAttDef = MetaModel::GetAttributeDef(strval($oClassName), strval($oAttribute)); $aValues = $oAttDef->GetAllowedValues(); $this->aDynamicOptions['choices'] = array_flip($aValues ?? []); } catch(Exception){} } }