class RulesDataUIDecimal
UI for decimal data.
Hierarchy
- class \RulesDataUI
- class \RulesDataUIText extends \RulesDataUI implements \RulesDataDirectInputFormInterface
- class \RulesDataUIDecimal extends \RulesDataUIText
- class \RulesDataUIText extends \RulesDataUI implements \RulesDataDirectInputFormInterface
Expanded class hierarchy of RulesDataUIDecimal
1 string reference to 'RulesDataUIDecimal'
- rules_rules_core_data_info in modules/
rules_core.rules.inc - Implements hook_rules_data_info() on behalf of the pseudo rules_core module.
File
-
ui/
ui.data.inc, line 296
View source
class RulesDataUIDecimal extends RulesDataUIText {
/**
* Implements RulesDataDirectInputFormInterface::inputForm().
*/
public static function inputForm($name, $info, $settings, RulesPlugin $element) {
$form = parent::inputForm($name, $info, $settings, $element);
if (empty($info['options list'])) {
$form[$name]['#type'] = 'textfield';
}
$form[$name]['#element_validate'][] = 'rules_ui_element_decimal_validate';
$form[$name]['#rows'] = 1;
return $form;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
RulesDataUI::getTypeInfo | public static | function | Returns the data type and parameter information for the given arguments. | ||
RulesDataUI::renderOptionsLabel | public static | function | Renders the value with a label if an options list is available. | ||
RulesDataUI::selectionForm | public static | function | Provides the selection form for a parameter. | ||
RulesDataUIDecimal::inputForm | public static | function | Implements RulesDataDirectInputFormInterface::inputForm(). | Overrides RulesDataUIText::inputForm | |
RulesDataUIText::getDefaultMode | public static | function | Overrides RulesDataUI::getDefaultMode(). | Overrides RulesDataUI::getDefaultMode | 2 |
RulesDataUIText::render | public static | function | Implements RulesDataDirectInputFormInterface::render(). | Overrides RulesDataDirectInputFormInterface::render | 4 |