/** * Gets the singleton * @return door43Cache */ static function getInstance() { if (empty(self::$instance)) { self::$instance = new door43Cache(); } return self::$instance; }
public function getCache() { require_once 'cache.php'; if (empty(self::$cache)) { self::$cache = door43Cache::getInstance(); } return self::$cache; }