You are here

function rules_admin_rule_proxy::get_element in Rules 6

Gets an element of the referenced rule by id

3 calls to rules_admin_rule_proxy::get_element()
rules_admin_rule_proxy::get_element_parent_id in rules_admin/rules_admin.rule_proxy.inc
Gets the id of the parent element
rules_admin_rule_proxy::get_new_variables in rules_admin/rules_admin.rule_proxy.inc
Gets the info about all new defined variables in this rule, before the element with the given id
rules_admin_rule_proxy::get_rule in rules_admin/rules_admin.rule_proxy.inc
Gets the referenced rule

File

rules_admin/rules_admin.rule_proxy.inc, line 63
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_element($id) {
  if (!isset($this->map[$id])) {
    $this->map[$id] = FALSE;
  }
  return $this->map[$id];
}