protected function _prepare() { // Intialize the timer class $timer = AEFactory::getTimer(); // Do we have a tag? if (!empty($this->_parametersArray['tag'])) { $this->tag = $this->_parametersArray['tag']; } // Make sure a tag exists (or create a new one) $this->tag = $this->getTag(); // Reset the log AEUtilLogger::openLog($this->tag); AEUtilLogger::ResetLog($this->tag); set_error_handler('akeebaBackupErrorHandler'); // Reset the storage AEUtilTempvars::reset($this->tag); // Get the domain chain $this->domain_chain = AEUtilScripting::getDomainChain(); $this->total_steps = count($this->domain_chain) - 1; // Init shouldn't count in the progress bar // Mark this engine for Nesting Logging $this->nest_logging = true; // Preparation is over $this->array_cache = null; $this->setState('prepared'); //restore_error_handler(); }
protected function _prepare() { // Intialize the timer class $timer = AEFactory::getTimer(); // Do we have a tag? if (!empty($this->_parametersArray['tag'])) { $this->tag = $this->_parametersArray['tag']; } // Make sure a tag exists (or create a new one) $this->tag = $this->getTag(); // Reset the log AEUtilLogger::openLog($this->tag); AEUtilLogger::ResetLog($this->tag); set_error_handler('akeebaBackupErrorHandler'); // Reset the storage AEUtilTempvars::reset($this->tag); // Apply the configuration overrides $overrides = AEPlatform::getInstance()->configOverrides; if (is_array($overrides) && @count($overrides)) { $registry = AEFactory::getConfiguration(); $protected_keys = $registry->getProtectedKeys(); $registry->resetProtectedKeys(); foreach ($overrides as $k => $v) { $registry->set($k, $v); } $registry->setProtectedKeys($protected_keys); } // Get the domain chain $this->domain_chain = AEUtilScripting::getDomainChain(); $this->total_steps = count($this->domain_chain) - 1; // Init shouldn't count in the progress bar // Mark this engine for Nesting Logging $this->nest_logging = true; // Preparation is over $this->array_cache = null; $this->setState('prepared'); //restore_error_handler(); }