class RulesConditionalWhileUI in Conditional Rules 7
Same name and namespace in other branches
- 8 includes/rules_conditional.ui.inc \RulesConditionalWhileUI
UI for while loops to add extra description.
Hierarchy
- class \RulesPluginUI extends \FacesExtender implements RulesPluginUIInterface
- class \RulesContainerPluginUI
- class \RulesConditionalPredicateUI
- class \RulesConditionalWhileUI
- class \RulesConditionalPredicateUI
- class \RulesContainerPluginUI
Expanded class hierarchy of RulesConditionalWhileUI
1 string reference to 'RulesConditionalWhileUI'
- rules_conditional_rules_plugin_info in ./
rules_conditional.rules.inc - Implements hook_rules_plugin_info().
File
- includes/
rules_conditional.ui.inc, line 198 - Plugin UI implementation.
View source
class RulesConditionalWhileUI extends RulesConditionalPredicateUI {
public function form(&$form, &$form_state, $options = array(), $iterator = NULL) {
parent::form($form, $form_state, $options);
// Display help for while loop.
$form['while_help'] = array(
'#weight' => -5,
);
$form['while_help']['text'] = array(
'#prefix' => '<p>',
'#markup' => t('Configure the condition for this while loop to continue. This loop will not end until the condition evaluates to false, or the maximum limit on the number of iterations has been reached.'),
'#suffix' => '</p>',
);
// Display help to change iteration limit.
$maxIterations = variable_get('rules_conditional_max_iterations', RULES_CONDITIONAL_MAX_ITERATIONS);
$form['while_help']['description'] = array(
'#prefix' => '<div class="description"><p>',
'#markup' => t('The current limit is @limit. Note that this cannot be changed in the user interface. Although it can be changed by setting the %variable variable to another value, raising this limit must be done with care since Rules evaluation can be resource-intensive.', array(
'@limit' => $maxIterations,
'%variable' => 'rules_conditional_max_iterations',
)),
'#suffix' => '</p></div>',
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RulesConditionalPredicateUI:: |
protected | property | ||
RulesConditionalPredicateUI:: |
public | function |
Implements RulesPluginUIInterface. Overrides RulesContainerPluginUI:: |
|
RulesConditionalPredicateUI:: |
public | function |
Delegates the form submit handler to the predicate. Overrides RulesPluginUI:: |
|
RulesConditionalPredicateUI:: |
public | function |
Delegates the form validator to the predicate. Overrides RulesPluginUI:: |
|
RulesConditionalPredicateUI:: |
public | function |
Provide $this->element to make the code more meaningful. Overrides RulesPluginUI:: |
|
RulesConditionalWhileUI:: |
public | function |
Delegates the form to the predicate. Overrides RulesConditionalPredicateUI:: |
|
RulesContainerPluginUI:: |
public | function | Gets the Add-* operations for the given element. | |
RulesContainerPluginUI:: |
public | function |
Applies the values of the form to the given rule configuration. Overrides RulesPluginUI:: |
3 |
RulesContainerPluginUI:: |
public | function |
Implements RulesPluginUIInterface. Overrides RulesPluginUI:: |
1 |
RulesPluginUI:: |
public static | property | The base path determines where a Rules overview UI lives. | |
RulesPluginUI:: |
protected | property | ||
RulesPluginUI:: |
public static | function | Determines the default redirect target for an edited/deleted element. | |
RulesPluginUI:: |
public static | function | ||
RulesPluginUI:: |
public | function | Returns the name of class for the given data type. | |
RulesPluginUI:: |
public static | function | Returns the state values for $form, possibly only a part of the whole form. | |
RulesPluginUI:: |
public static | function | ||
RulesPluginUI:: |
protected | function | Actually generates the parameter form for the given data type. | |
RulesPluginUI:: |
public static | function | ||
RulesPluginUI:: |
public | function | Returns the form for configuring the info of a single variable. | |
RulesPluginUI:: |
public | function |
Implements RulesPluginUIInterface. Overrides RulesPluginUIInterface:: |
|
RulesPluginUI:: |
public static | function | Deprecated by the controllers overviewTable() method. | |
RulesPluginUI:: |
public static | function | Generates an operation path. | |
RulesPluginUI:: |
public | function | Adds the configuration settings form (label, tags, description, ...). | 1 |
RulesPluginUI:: |
public | function | 1 | |
RulesPluginUI:: |
protected | function | Provides a matrix permission for the component based in the existing roles. | |
RulesPluginUI:: |
public | function | ||
RulesPluginUI:: |
public | function |