You are here

public function NodeRegistrationNodeSettings::_cache in Node registration 7

Internal (per object) cache helper.

3 calls to NodeRegistrationNodeSettings::_cache()
NodeRegistrationNodeSettings::capacity in includes/node_registration.node_settings.inc
The capacity for this event.
NodeRegistrationNodeSettings::date in includes/node_registration.node_settings.inc
The event's start date + time.
NodeRegistrationNodeSettings::site_utc in includes/node_registration.node_settings.inc
Helper to get the node date's UTC via the site timezone.

File

includes/node_registration.node_settings.inc, line 360
Node settings class.

Class

NodeRegistrationNodeSettings
Node settings class.

Code

public function _cache($name, $callback) {
  if (!isset($this->cache[$name])) {
    $this->cache[$name] = $callback($this);
  }
  return $this->cache[$name];
}