/** * @param array $options * * @return array */ public function getImportableRecipientFieldOptions($options = array()) { global $container; // todo issue to dc-general \System::loadLanguageFile('orm_avisota_recipient'); /** @var EventDispatcher $eventDispatcher */ $eventDispatcher = $container['event-dispatcher']; $dcGeneralFactory = new DcGeneralFactory(); $dcGeneralFactory->setContainerName('orm_avisota_recipient'); $dcGeneralFactory->setEventDispatcher($eventDispatcher); $containerFactory = $dcGeneralFactory->createContainer(); foreach ($containerFactory->getPropertiesDefinition()->getProperties() as $property) { $extra = $property->getExtra(); if (isset($extra['importable']) && $extra['importable']) { $options[$property->getName()] = $property->getLabel(); } } return $options; }