/** * Method to get the field input markup. * * @access public * * @return string The field input markup. * * @since 11.1 */ public function getInput() { $options = array(); if (!isset($this->jdomOptions['list'])) { //Get the options from XML foreach ($this->element->children() as $option) { $opt = new stdClass(); foreach ($option->attributes() as $attr => $value) { $opt->{$attr} = (string) $value; } $opt->text = JText::_(trim((string) $option)); $options[] = $opt; } } $this->input = JDom::_('html.form.input.select.limit', array_merge(array('dataKey' => $this->getOption('name'), 'domClass' => $this->getOption('class'), 'domId' => $this->id, 'domName' => $this->name, 'dataValue' => (string) $this->value, 'labelKey' => $this->getOption('labelKey'), 'list' => $options, 'listKey' => $this->getOption('listKey'), 'nullLabel' => $this->getOption('nullLabel'), 'responsive' => $this->getOption('responsive'), 'size' => $this->getOption('size', 1, 'int'), 'submitEventName' => $this->getOption('submit') == 'true' ? 'onchange' : null, 'ui' => $this->getOption('ui')), $this->jdomOptions)); return parent::getInput(); }
/** * Method to get the field input markup. * * @access public * * @return string The field input markup. * * @since 11.1 */ public function getInput() { $this->input = JDom::_('html.form.input.text', array_merge(array('dataKey' => $this->getOption('name'), 'domClass' => $this->getOption('class'), 'domId' => $this->id, 'domName' => $this->name, 'dataValue' => $this->value, 'placeholder' => $this->getOption('placeholder'), 'responsive' => $this->getOption('responsive'), 'size' => $this->getOption('size')), $this->jdomOptions)); return parent::getInput(); }
/** * Method to get the field input markup. * * @access public * * @return string The field input markup. * * @since 11.1 */ public function getInput() { $this->input = JDom::_('html.form.input.ajax', array_merge(array('dataKey' => $this->getOption('name'), 'domClass' => $this->getOption('class'), 'domId' => $this->id, 'domName' => $this->name, 'ajaxContext' => $this->getOption('ajaxContext'), 'ajaxVars' => array('values' => array($this->value)), 'ajaxWrapper' => null, 'dataValue' => $this->value, 'responsive' => $this->getOption('responsive')), $this->jdomOptions)); return parent::getInput(); }
/** * Method to get the field input markup. * * @access public * * @return string The field input markup. * * @since 11.1 */ public function getInput() { $this->input = JDom::_('html.form.input.calendar', array_merge(array('dataKey' => $this->getOption('name'), 'domClass' => $this->getOption('class'), 'domId' => $this->id, 'domName' => $this->name, 'dataValue' => $this->value, 'dateFormat' => $this->getOption('format'), 'filter' => $this->getOption('filter'), 'placeholder' => $this->getOption('placeholder'), 'responsive' => $this->getOption('responsive'), 'size' => $this->getOption('size'), 'submitEventName' => $this->getOption('submit') == 'true' ? 'onchange' : null), $this->jdomOptions)); return parent::getInput(); }
/** * Method to get the field input markup. * * @access public * * @return string The field input markup. * * @since 11.1 */ public function getInput() { $this->input = JDom::_('html.form.input.clock', array_merge(array('dataKey' => $this->getOption('name'), 'domClass' => $this->getOption('class'), 'domId' => $this->id, 'domName' => $this->name, 'dataValue' => $this->value, 'filter' => $this->getOption('filter'), 'responsive' => $this->getOption('responsive'), 'size' => 6, 'timeFormat' => $this->getOption('format')), $this->jdomOptions)); return parent::getInput(); }
/** * Method to get the field input markup. * * @access public * * @return string The field input markup. * * @since 11.1 */ public function getInput() { $this->input = JDom::_('html.form.input.file', array_merge(array('dataKey' => $this->getOption('name'), 'domClass' => $this->getOption('class'), 'domId' => $this->id, 'domName' => $this->name, 'dataValue' => $this->value, 'formControl' => $this->formControl, 'height' => $this->getOption('height'), 'indirect' => $this->getOption('indirect', null, 'bool'), 'responsive' => $this->getOption('responsive'), 'root' => $this->getOption('root'), 'ruleInstance' => $this->getOption('ruleInstance'), 'view' => $this->getOption('view'), 'width' => $this->getOption('width')), $this->jdomOptions)); return parent::getInput(); }