/**
* Debug this class loader? (true = yes, false = no)
*/
- private $debug = false;
+ private $debug = FALSE;
/**
* Whether the file list is cached
*/
- private $listCached = false;
+ private $listCached = FALSE;
/**
* Wethe class content has been cached
*/
- private $classesCached = false;
+ private $classesCached = FALSE;
/**
* Filename for the list cache
} // END - if
// Skip here if already cached
- if ($this->listCached === false) {
+ if ($this->listCached === FALSE) {
// Writes the cache file of our list away
$cacheContent = serialize($this->classes);
file_put_contents($this->listCacheFQFN, $cacheContent);
} // END - if
// Skip here if already cached
- if ($this->classesCached === false) {
+ if ($this->classesCached === FALSE) {
// Generate a full-cache of all classes
$cacheContent = '';
foreach ($this->loadedClasses as $fqfn) {
$this->classes = unserialize($cacheContent);
// List has been restored from cache!
- $this->listCached = true;
+ $this->listCached = TRUE;
} // END - if
// Does the class cache exist?
require($this->classCacheFQFN);
// Mark the class cache as loaded
- $this->classesCached = true;
+ $this->classesCached = TRUE;
} // END - if
}
*/
public function scanClassPath ($basePath, array $ignoreList = array() ) {
// Is a list has been restored from cache, don't read it again
- if ($this->listCached === true) {
+ if ($this->listCached === TRUE) {
// Abort here
return;
} // END - if
$basePath2 = realpath($basePath);
// If the basePath is false it is invalid
- if ($basePath2 === false) {
+ if ($basePath2 === FALSE) {
/* @todo: Do not die here. */
exit(__METHOD__ . ':Cannot read ' . $basePath . ' !');
} else {
// Developer mode excludes caching (better debugging)
if (!defined('DEVELOPER')) {
// Reset cache
- $this->classesCached = false;
+ $this->classesCached = FALSE;
} // END - if
} // END - if
}