Inheritance: extends FluidTYPO3\Flux\Form\AbstractMultiValueFormField
コード例 #1
0
 /**
  * @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;
 }
コード例 #2
0
 /**
  * @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;
 }
コード例 #3
0
ファイル: AbstractPipe.php プロジェクト: kersten/flux
 /**
  * @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);
 }
コード例 #4
0
ファイル: FlashMessagePipe.php プロジェクト: kersten/flux
 /**
  * @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;
 }
コード例 #5
0
ファイル: ControllerActions.php プロジェクト: JostBaron/flux
 /**
  * @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);
     }
 }
コード例 #6
0
 /**
  * @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;
 }
コード例 #7
0
ファイル: Radio.php プロジェクト: fluidtypo3/flux
 /**
  * @return array
  */
 public function buildConfiguration()
 {
     $configuration = parent::prepareConfiguration('radio');
     $configuration['items'] = $this->getItems();
     return $configuration;
 }