protected function getField($aField) { return parent::getField($aField); }
protected function getField($aField) { return parent::getField($aField) . $this->getHTMLTag('input', array('type' => 'hidden', 'value' => '', 'name' => $aField['attributes']['name'] . '[_dummy_value]')) . $this->getHTMLTag('input', array('type' => 'hidden', 'name' => '__unset_' . $aField['_fields_type'] . '[' . $aField['_input_name_flat'] . '|_dummy_value' . ']', 'value' => $aField['_input_name_flat'] . '|_dummy_value', 'class' => 'unset-element-names element-address')); }
protected function getField($aField) { $aField['attributes'] = array('type' => 'text') + $aField['attributes']; return parent::getField($aField); }
/** * Returns the output of the field type. * * @return string */ public function getField($aField) { // Set required attributes. $aField['attributes']['type'] = 'text'; // not `number` because noUISlider supports a format option that appends a unit like `10 pounds`. $aField['attributes']['data-type'] = 'no_ui_slider'; $aField['attributes']['readonly'] = 'readonly'; // Format the `options` argument. $aField['options'] = $this->_getNoUISliderOptionsFormatted($this->getElementAsArray($aField, 'options'), $aField); // Format the `label` argument. $aField['label'] = $this->_getLabelsFormatted($aField['label'], $aField); // Format the input attributes. This must be AFTER formatting the `label` argument. $aField['attributes'] = $this->_getAttributesFormatted($aField); $_aAttributes = array('class' => $this->_getSliderElementClassSelectors($aField)) + $this->getDataAttributeArray($aField['options']) + $this->getElementAsArray($aField, array('attributes', 'slider')); return '<div ' . $this->getAttributes($_aAttributes) . ' ></div>' . parent::getField($aField); }