예제 #1
0
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('class', 'string', 'class of input field');
     $this->registerArgument('route', 'string', 'route to be used');
     $this->registerArgument('arguments', 'array', 'arguments used for the route replacements', FALSE, array());
 }
예제 #2
0
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerTagAttribute('size', 'string', 'Size of input field');
     $this->registerTagAttribute('name', 'string', 'Name of input field');
     $this->registerTagAttribute('class', 'string', 'class of input field');
     $this->registerTagAttribute('disabled', 'string', 'Specifies that the input element should be disabled when the page loads');
     $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('options', 'mixed', 'Associative array or object with internal IDs as key, and the values are displayed in the select box', true);
     $this->registerArgument('value', 'mixed', 'The default value');
 }