Exemple #1
0
 protected function loadRegistry($force = false)
 {
     if (!$force && $this->registryArray) {
         return;
     }
     PWELogger::debug("Loading registry file: %s", $this->registryFile);
     // read site structure
     $XML = new PWEXML($this->PWE->getTempDirectory());
     $this->registryArray = array();
     $XML->FileToArray($this->registryFile, $this->registryArray);
     $logger = $this->getModuleSettings('PWE\\Core\\PWELogger');
     if ($logger['!a']) {
         PWELogger::setLevel(PWELogger::getLevelByName($logger['!a']['level']));
     }
 }
Exemple #2
0
 public function testGetTempDirectory()
 {
     $this->object->getTempDirectory();
 }
Exemple #3
0
 public static function setup(PWECore $pwe, array &$registerData)
 {
     if (!$registerData['!c']['cacheDir']) {
         $registerData['!c']['cacheDir'][0]['!v'] = $pwe->getTempDirectory();
     }
 }