You are here

class RulesConditionalElse in Conditional Rules 8

Same name and namespace in other branches
  1. 7 includes/rules_conditional.plugin.inc \RulesConditionalElse

The "else" clause.

Hierarchy

Expanded class hierarchy of RulesConditionalElse

1 string reference to 'RulesConditionalElse'
rules_conditional_rules_plugin_info in ./rules_conditional.rules.inc
Implements hook_rules_plugin_info().

File

includes/rules_conditional.plugin.inc, line 129
Rules plugin implementation.

View source
class RulesConditionalElse extends RulesConditionalElement {
  protected $itemName = 'else';
  public function __construct() {
    parent::__construct();
  }
  public function isDefault() {
    return TRUE;
  }
  protected function importChildren($export, $key = NULL) {
    RulesContainerPlugin::importChildren($export);
  }
  protected function exportChildren($key = NULL) {
    return RulesContainerPlugin::exportChildren();
  }
  protected function exportFlat() {
    return TRUE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RulesConditionalElement::$parent protected property The parent conditional.
RulesConditionalElement::canEvaluate public function Determines whether this branch can be evaluated. 4
RulesConditionalElement::checkSiblings protected function Checks basic conditional element integrity.
RulesConditionalElement::delete public function Deletes the element and its children. 1
RulesConditionalElement::dependencies public function 1
RulesConditionalElement::exportSettings protected function
RulesConditionalElement::getAllSibling public function Gets sibling elements.
RulesConditionalElement::getNextSibling public function Gets the next sibling element.
RulesConditionalElement::getPreviousSibling public function Gets the previous sibling element.
RulesConditionalElement::integrityCheck public function 1
RulesConditionalElement::label public function 1
RulesConditionalElement::providesVariables public function 1
RulesConditionalElement::setParent public function @todo Remove once http://drupal.org/node/1671344 is resolved.
RulesConditionalElse::$itemName protected property
RulesConditionalElse::exportChildren protected function Overrides RulesConditionalElement::exportChildren
RulesConditionalElse::exportFlat protected function
RulesConditionalElse::importChildren protected function Overrides RulesConditionalElement::importChildren
RulesConditionalElse::isDefault public function Determines whether this branch is default, i.e. covers the remainder of conditions outside of all non-default branches inside the conditional. Overrides RulesConditionalElement::isDefault
RulesConditionalElse::__construct public function