function rules_admin_rule_proxy::get_new_variables in Rules 6
Gets the info about all new defined variables in this rule, before the element with the given id
1 call to rules_admin_rule_proxy::get_new_variables()
- rules_admin_rule_proxy::get_available_variables in rules_admin/
rules_admin.rule_proxy.inc - Gets info about all available variables This are the arguments of the rule's set as well as further arguments that might be provided by actions of this or preceding rules. Variables set to be hidden are left out.
File
- rules_admin/
rules_admin.rule_proxy.inc, line 218 - Contains the rules proxy class
Class
- rules_admin_rule_proxy
- This is a smally proxy for the real rule. It provides some useful operations for the admin UI. It builds a small index for the elements of a rule, so that they can be easily identified and modified.
Code
function get_new_variables($id = NULL) {
$vars = array();
$i = 0;
$element = TRUE;
while (isset($id) && $i < $id || !isset($id) && $element !== FALSE) {
$element = $this
->get_element($i);
$vars = $this
->element_get_new_variables($element) + $vars;
$i++;
}
return $vars;
}