Get a value from cache.
Parameters
$typestringrequired
Source
private static function getFromCache($type)
{
if (!isset(self::$cache[$type])) {
return;
}
$candidate = self::$cache[$type];
if (isset($candidate['condition'])) {
if (!self::evaluateCondition($candidate['condition'])) {
return;
}
}
return $candidate['class'];
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.