Ejemplo n.º 1
0
 /**
  * Extend the bootstrap code to add some define's used by the ZIP format engine
  *
  * @return  void
  */
 protected function __bootstrap_code()
 {
     if (!defined('_AKEEBA_COMPRESSION_THRESHOLD')) {
         $config = Factory::getConfiguration();
         define("_AKEEBA_COMPRESSION_THRESHOLD", $config->get('engine.archiver.common.big_file_threshold'));
         // Don't compress files over this size
         define("_AKEEBA_DIRECTORY_READ_CHUNK", $config->get('engine.archiver.zip.cd_glue_chunk_size'));
         // How much data to read at once when finalizing ZIP archives
     }
     $this->crcCalculator = Factory::getCRC32Calculator();
     parent::__bootstrap_code();
 }