コード例 #1
0
ファイル: TextViewHelper.php プロジェクト: busynoggin/flux
 /**
  * Initialize
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('validate', 'string', 'FlexForm-type validation configuration for this input', FALSE, 'trim');
     $this->registerArgument('cols', 'int', 'Number of columns in editor', FALSE, 85);
     $this->registerArgument('rows', 'int', 'Number of rows in editor', FALSE, 10);
     $this->registerArgument('defaultExtras', 'string', 'FlexForm-syntax "defaultExtras" definition, example: "richtext[*]:rte_transform[mode=ts_css]"', FALSE, '');
     $this->registerArgument('enableRichText', 'boolean', 'Shortcut for adding value of TS plugin.tx_flux.settings.flexform.rteDefaults to "defaultExtras"', FALSE, FALSE);
 }
コード例 #2
0
ファイル: InputViewHelper.php プロジェクト: JostBaron/flux
 /**
  * Initialize
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('eval', 'string', 'FlexForm-type validation configuration for this input', FALSE, 'trim');
     $this->registerArgument('size', 'integer', 'Size of field', FALSE, 32);
     $this->registerArgument('maxCharacters', 'integer', 'Maximum number of characters allowed', FALSE);
     $this->registerArgument('minimum', 'integer', 'Minimum value for integer type fields', FALSE);
     $this->registerArgument('maximum', 'integer', 'Maximum value for integer type fields', FALSE);
     $this->registerArgument('placeholder', 'string', 'Placeholder text which vanishes if field is filled and/or field is focused');
 }
コード例 #3
0
ファイル: TextViewHelper.php プロジェクト: fluidtypo3/flux
 /**
  * Initialize
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('validate', 'string', 'FlexForm-type validation configuration for this input', FALSE, 'trim');
     $this->registerArgument('cols', 'int', 'Number of columns in editor', FALSE, 85);
     $this->registerArgument('rows', 'int', 'Number of rows in editor', FALSE, 10);
     $this->registerArgument('defaultExtras', 'string', 'FlexForm-syntax "defaultExtras" definition, example: "richtext[*]:rte_transform[mode=ts_css]"', FALSE, '');
     $this->registerArgument('enableRichText', 'boolean', 'Shortcut for adding value of TS plugin.tx_flux.settings.flexform.rteDefaults to "defaultExtras"', FALSE, FALSE);
     $this->registerArgument('renderType', 'string', 'Render type allows you to modify the behaviour of text field. At the moment only t3editor and none (works as disabled) are supported but you can create your own. More information: https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Text/Index.html#rendertype', FALSE, '');
     $this->registerArgument('format', 'string', 'Format is used with renderType and, at the moment, is just useful if renderType is equals to t3editor. At the moment possible values are:  html, typoscript, javascript, css, xml, html, php, sparql, mixed. More information: https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Text/Index.html#format', FALSE, '');
 }
コード例 #4
0
 /**
  * @param string $type
  * @param RenderingContextInterface $renderingContext
  * @param array $arguments
  * @return MultiValueFieldInterface
  */
 protected static function getPreparedComponent($type, RenderingContextInterface $renderingContext, array $arguments)
 {
     /** @var MultiValueFieldInterface $component */
     $component = parent::getPreparedComponent($type, $renderingContext, $arguments);
     $component->setMinItems($arguments['minItems']);
     $component->setMaxItems($arguments['maxItems']);
     $component->setSize($arguments['size']);
     $component->setMultiple($arguments['multiple']);
     $component->setRenderMode($arguments['renderMode']);
     $component->setItemListStyle($arguments['itemListStyle']);
     $component->setSelectedListStyle($arguments['selectedListStyle']);
     return $component;
 }
コード例 #5
0
 /**
  * @param string $type
  * @return MultiValueFieldInterface
  */
 protected function getPreparedComponent($type)
 {
     /** @var MultiValueFieldInterface $component */
     $component = parent::getPreparedComponent($type);
     $component->setMinItems($this->arguments['minItems']);
     $component->setMaxItems($this->arguments['maxItems']);
     $component->setSize($this->arguments['size']);
     $component->setMultiple($this->arguments['multiple']);
     $component->setRenderMode($this->arguments['renderMode']);
     $component->setItemListStyle($this->arguments['itemListStyle']);
     $component->setSelectedListStyle($this->arguments['selectedListStyle']);
     return $component;
 }
コード例 #6
0
 /**
  * Initialize
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('userFunc', 'string', 'Classname->function notation of UserFunc to be called, example "Tx_Myext_Configuration_FlexForms_MyField->renderField" - Extbase classes need autoload registry for this', TRUE);
     $this->registerArgument('arguments', 'array', 'Optional array of arguments to pass to the UserFunction building this field');
 }