function RulesExtendable::setUp

6 calls to RulesExtendable::setUp()
RulesAbstractPlugin::setUp in includes/rules.core.inc
RulesContainerPlugin::__construct in includes/rules.core.inc
RulesEventSet::__construct in includes/rules.plugins.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

... See full list

1 method overrides RulesExtendable::setUp()
RulesAbstractPlugin::setUp in includes/rules.core.inc

File

includes/rules.core.inc, line 351

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'];
    }
}