/** * @return FieldInterface[] */ public function getFormFields() { $fields = parent::getFormFields(); $converters = array_values((array) $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['typeConverters']); $converters = array_combine($converters, $converters); $fields['typeConverter'] = Select::create(array('type' => 'Select'))->setName('typeConverter')->setItems($converters); $fields['targetType'] = Input::create(array('type' => 'Input'))->setName('targetType'); return $fields; }
/** * @return FieldInterface[] */ public function getFormFields() { $fields = parent::getFormFields(); $extensionNames = array_keys((array) $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions']); $extensionNames = array_combine($extensionNames, $extensionNames); $fields['extensionName'] = Select::create(array('type' => 'Select'))->setName('extensionName')->setItems($extensionNames); $fields['controller'] = Input::create(array('type' => 'Input'))->setName('controller')->setValidate('trim,required'); $fields['action'] = Input::create(array('type' => 'Input'))->setName('action')->setValidate('trim,required'); return $fields; }
/** * @return FieldInterface[] */ public function getFormFields() { $class = get_class($this); /** @var Input $labelField */ $labelField = Input::create(array('type' => 'Input')); $labelField->setName('label'); $labelField->setDefault($this->getLabel()); /** @var Select $classField */ $classField = Select::create(array('type' => 'Select')); $classField->setName('class'); $classField->setItems(array($class => $class)); return array('label' => $labelField, 'class' => $classField); }
/** * @return FieldInterface[] */ public function getFormFields() { $severities = array(FlashMessage::OK => 'OK', FlashMessage::ERROR => 'ERROR', FlashMessage::NOTICE => 'NOTICE', FlashMessage::WARNING => 'WARNING'); $fields = parent::getFormFields(); $fields['message'] = Text::create(array('type' => 'Text'))->setName('message'); $fields['title'] = Input::create(array('type' => 'Input'))->setName('title'); /** @var Select $severity */ $severity = Select::create(array('type' => 'Select')); $severity->setName('severity'); $severity->setItems($severities); $severity->setDefault(FlashMessage::OK); $fields['severity'] = $severity; return $fields; }
/** * @return array */ public function getItems() { $basicItems = parent::getItems(); if (0 < count($basicItems)) { return $basicItems; } else { $actions = $this->getActions(); if (0 === count($actions)) { $actions = $this->getActionsForExtensionNameAndPluginName($this->controllerExtensionName, $this->pluginName); } return $this->buildItemsForActions($actions); } }
/** * @return FieldInterface[] */ public function getFormFields() { $class = get_class($this); $fields = array('label' => Input::create(array('type' => 'Input'))->setName('label')->setDefault($this->getLabel()), 'class' => Select::create(array('type' => 'Select'))->setName('class')->setItems(array($class => $class))); return $fields; }
/** * @return array */ public function buildConfiguration() { $configuration = parent::prepareConfiguration('radio'); $configuration['items'] = $this->getItems(); return $configuration; }