Пример #1
0
 /**
  * @return FieldInterface[]
  */
 public function getFormFields()
 {
     $fields = parent::getFormFields();
     $fields['subject'] = Input::create(array('type' => 'Input'))->setName('subject');
     $fields['body'] = Text::create(array('type' => 'Text'))->setName('body');
     $fields['receipent'] = Input::create(array('type' => 'Input'))->setName('recipient');
     $fields['sender'] = Input::create(array('type' => 'Input'))->setName('sender');
     return $fields;
 }
 /**
  * @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;
 }
Пример #3
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;
 }
Пример #4
0
 /**
  * @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;
 }