/** * Initialize the arguments. * * @return void * @author Bastian Waidelich <*****@*****.**> * @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 checkboxes', TRUE); $this->registerUniversalTagAttributes(); }
/** * Initialize arguments. * * @return void */ 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', TRUE); $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('includeBlank', 'boolean', 'whether or not to show an empty option on top', FALSE, TRUE); $this->registerArgument('blankLabel', 'string', 'the content of the blank option', FALSE, ''); }