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'])); } }
public function testGetTempDirectory() { $this->object->getTempDirectory(); }
public static function setup(PWECore $pwe, array &$registerData) { if (!$registerData['!c']['cacheDir']) { $registerData['!c']['cacheDir'][0]['!v'] = $pwe->getTempDirectory(); } }