Esempio n. 1
0
 /**
  * Initialize the arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', FALSE, 'f3-form-error');
     $this->registerUniversalTagAttributes();
 }
Esempio n. 2
0
 /**
  * Initialize the arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', false, 'f3-form-error');
     $this->overrideArgument('value', 'string', 'Value of input tag. Required for radio buttons', true);
     $this->registerUniversalTagAttributes();
 }
 /**
  *
  * Initializses the view helper arguments.
  * @return void
  *
  */
 public function initializeArguments()
 {
     \TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('multiple', 'string', 'if set, multiple select field');
     $this->registerTagAttribute('size', 'string', 'Size of input field');
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', FALSE, 'f3-form-error');
 }
Esempio n. 4
0
 /**
  * Initialize the arguments.
  *
  * @return void
  * @internal
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('size', 'int', 'The size of the select field');
     $this->registerTagAttribute('placeholder', 'string', 'Specifies a short hint that describes the expected value of an input element');
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the select element should be disabled when the page loads');
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', false, 'f3-form-error');
     $this->registerArgument('initialDate', 'string', 'Initial time (@see http://www.php.net/manual/en/datetime.formats.php for supported formats)');
     $this->registerUniversalTagAttributes();
 }
 /**
  * Initialize arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('multiple', 'string', 'if set, multiple select field');
     $this->registerTagAttribute('optionCount', 'int', 'Required for multiple select');
     $this->registerTagAttribute('size', 'string', 'Size of input field');
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', FALSE, 'f3-form-error');
 }
Esempio n. 6
0
 /**
  * Initialize the arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerTagAttribute('maxlength', 'int', 'The maxlength attribute of the input field (will not be validated)');
     $this->registerTagAttribute('readonly', 'string', 'The readonly attribute of the input field');
     $this->registerTagAttribute('size', 'int', 'The size of the input field');
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', FALSE, 'f3-form-error');
     $this->registerUniversalTagAttributes();
 }
Esempio n. 7
0
 /**
  * Initialize the arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('size', 'int', 'The size of the input field');
     $this->registerTagAttribute('placeholder', 'string', 'Specifies a short hint that describes the expected value of an input element');
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', false, 'f3-form-error');
     $this->registerArgument('initialDate', 'string', 'Initial date (@see http://www.php.net/manual/en/datetime.formats.php for supported formats)');
     $this->registerArgument('enableDatePicker', 'bool', 'Enable the Datepicker', false, true);
     $this->registerArgument('dateFormat', 'string', 'The date format', false, 'Y-m-d');
     $this->registerUniversalTagAttributes();
 }
Esempio n. 8
0
 /**
  * Initialize the arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('autofocus', 'string', 'Specifies that a text area should automatically get focus when the page loads');
     $this->registerTagAttribute('rows', 'int', 'The number of rows of a text area');
     $this->registerTagAttribute('cols', 'int', 'The number of columns of a text area');
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerTagAttribute('placeholder', 'string', 'The placeholder of the textarea');
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', FALSE, 'f3-form-error');
     $this->registerUniversalTagAttributes();
 }
 /**
  * Call the render() method and handle errors.
  *
  * @return string the rendered ViewHelper
  */
 protected function callRenderMethod()
 {
     $id = $this->deriveId();
     if ($id) {
         $this->tag->addAttribute('id', $id);
     }
     $inputTag = parent::callRenderMethod();
     $labelTag = $this->renderLabelTag();
     $descriptionTag = $this->renderDescriptionTag();
     $errors = $this->renderErrors();
     return $labelTag . $inputTag . $descriptionTag . $errors;
 }
 /**
  * Initialize the arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('autofocus', 'string', 'Specifies that an input should automatically get focus when the page loads');
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerTagAttribute('maxlength', 'int', 'The maxlength attribute of the input field (will not be validated)');
     $this->registerTagAttribute('readonly', 'string', 'The readonly attribute of the input field');
     $this->registerTagAttribute('size', 'int', 'The size of the input field');
     $this->registerTagAttribute('placeholder', 'string', 'The placeholder of the textfield');
     $this->registerTagAttribute('pattern', 'string', 'HTML5 validation pattern');
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', false, 'f3-form-error');
     $this->registerUniversalTagAttributes();
 }
Esempio n. 11
0
 /**
  * Initialize the arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('autofocus', 'string', 'Specifies that a button should automatically get focus when the page loads');
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerTagAttribute('form', 'string', 'Specifies one or more forms the button belongs to');
     $this->registerTagAttribute('formaction', 'string', 'Specifies where to send the form-data when a form is submitted. Only for type="submit"');
     $this->registerTagAttribute('formenctype', 'string', 'Specifies how form-data should be encoded before sending it to a server. Only for type="submit" (e.g. "application/x-www-form-urlencoded", "multipart/form-data" or "text/plain")');
     $this->registerTagAttribute('formmethod', 'string', 'Specifies how to send the form-data (which HTTP method to use). Only for type="submit" (e.g. "get" or "post")');
     $this->registerTagAttribute('formnovalidate', 'string', 'Specifies that the form-data should not be validated on submission. Only for type="submit"');
     $this->registerTagAttribute('formtarget', 'string', 'Specifies where to display the response after submitting the form. Only for type="submit" (e.g. "_blank", "_self", "_parent", "_top", "framename")');
     $this->registerUniversalTagAttributes();
 }
Esempio n. 12
0
 /**
  * Initialize arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('size', 'string', 'Size of input field');
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerArgument('multiple', 'boolean', 'if set, multiple select field', FALSE, FALSE);
     $this->registerArgument('options', 'array', 'Associative array with internal IDs as key, and the values are displayed in the select box');
     $this->registerArgument('optionValueField', 'string', 'If specified, will call the appropriate getter on each object to determine the value.');
     $this->registerArgument('optionLabelField', 'string', 'If specified, will call the appropriate getter on each object to determine the label.');
     $this->registerArgument('sortByOptionLabel', 'boolean', 'If true, List will be sorted by label.', FALSE, FALSE);
     $this->registerArgument('selectAllByDefault', 'boolean', 'If specified options are selected if none was set before.', FALSE, FALSE);
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', FALSE, 'f3-form-error');
 }
Esempio n. 13
0
 /**
  * Initialize the arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerUniversalTagAttributes();
 }
Esempio n. 14
0
 /**
  * Initialize the arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
 }
Esempio n. 15
0
 /**
  * Initialize the arguments.
  *
  * @return void
  * @author Sebastian Kurfürst <*****@*****.**>
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('rows', 'int', 'The number of rows of a text area', true);
     $this->registerTagAttribute('cols', 'int', 'The number of columns of a text area', true);
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', false, 'f3-form-error');
     $this->registerUniversalTagAttributes();
 }
Esempio n. 16
0
 /**
  * Initialize arguments.
  *
  * @return void
  * @api
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerTagAttribute('size', 'string', 'Size of input field');
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $this->registerArgument('options', 'array', 'Associative array with internal IDs as key, and the values are displayed in the select box. Can be combined with or replaced by child f:form.select.* nodes.');
     $this->registerArgument('optionsAfterContent', 'boolean', 'If true, places auto-generated option tags after those rendered in the tag content. If false, automatic options come first.', false, false);
     $this->registerArgument('optionValueField', 'string', 'If specified, will call the appropriate getter on each object to determine the value.');
     $this->registerArgument('optionLabelField', 'string', 'If specified, will call the appropriate getter on each object to determine the label.');
     $this->registerArgument('sortByOptionLabel', 'boolean', 'If true, List will be sorted by label.', false, false);
     $this->registerArgument('selectAllByDefault', 'boolean', 'If specified options are selected if none was set before.', false, false);
     $this->registerArgument('errorClass', 'string', 'CSS class to set if there are errors for this view helper', false, 'f3-form-error');
     $this->registerArgument('prependOptionLabel', 'string', 'If specified, will provide an option at first position with the specified label.');
     $this->registerArgument('prependOptionValue', 'string', 'If specified, will provide an option at first position with the specified value.');
     $this->registerArgument('multiple', 'boolean', 'If set multiple options may be selected.', false, false);
 }
Esempio n. 17
0
 /**
  * Initialize
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerArgument('selected', 'boolean', 'Set to TRUE to mark field as selected; otherwise detected from field value');
 }
 /**
  * Initialize
  *
  * @return void
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerUniversalTagAttributes();
     $this->registerArgument('selected', 'boolean', 'Set to "selected" to mark field as selected. If not present, selected status will be determined by select value');
 }