You are here

protected function RulesExtendable::setUp in Rules 7.2

5 calls to RulesExtendable::setUp()
RulesAbstractPlugin::setUp in includes/rules.core.inc
RulesContainerPlugin::__construct in includes/rules.core.inc
RulesExtendable::forceSetUp in includes/rules.core.inc
Forces the object to be setUp, this executes setUp() if not done yet.
RulesExtendable::__construct in includes/rules.core.inc
RulesLoop::__construct in includes/rules.plugins.inc
1 method overrides RulesExtendable::setUp()
RulesAbstractPlugin::setUp in includes/rules.core.inc

File

includes/rules.core.inc, line 351
Rules base classes and interfaces needed for any rule evaluation.

Class

RulesExtendable
Base class for RulesExtendables.

Code

protected function setUp() {

  // Keep a reference on the cache, so elements created during cache
  // rebuilding end up with a complete cache in the end too.
  $this->cache =& rules_get_cache();
  if (isset($this->cache[$this->hook][$this->itemName])) {
    $this->itemInfo =& $this->cache[$this->hook][$this->itemName];
  }

  // Set up the Faces Extenders.
  if (!empty($this->itemInfo['faces_cache'])) {
    list($this->facesMethods, $this->facesIncludes, $this->faces) = $this->itemInfo['faces_cache'];
  }
}