function rules_admin_rule_proxy::get_rule in Rules 6
Gets the referenced rule
6 calls to rules_admin_rule_proxy::get_rule()
- rules_admin_rule_proxy::clean_rule in rules_admin/
rules_admin.rule_proxy.inc - Cleans the given rule. This means, array keys that are neither elements nor properties are removed.
- rules_admin_rule_proxy::delete_rule in rules_admin/
rules_admin.rule_proxy.inc - Deletes the rule configuration from the database
- rules_admin_rule_proxy::get_set in rules_admin/
rules_admin.rule_proxy.inc - Gets the set of this rule, which contains only active rules.
- rules_admin_rule_proxy::get_set_info in rules_admin/
rules_admin.rule_proxy.inc - Gets the info about the set of this rule
- rules_admin_rule_proxy::save_changes in rules_admin/
rules_admin.rule_proxy.inc - Saves the changes in the rule and clears the cache if necessary.
File
- rules_admin/
rules_admin.rule_proxy.inc, line 45 - 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_rule() {
return $this
->get_element(0);
}