Beispiel #1
0
 public function __construct($pConfig = array())
 {
     // set default config values
     $this->mConfig = array('cache_method' => 'cache_in_memory', 'auto_name_doc' => TRUE, 'auto_sanitize_doc_name' => TRUE);
     // override default config
     if (!empty($pConfig)) {
         extract_to($pConfig, $this->mConfig, EXTR_IF_EXISTS);
     }
 }
Beispiel #2
0
 public function __construct($pPidId = NULL, $pConfig = array())
 {
     if (!empty($pPidId)) {
         // set id
         $this->mPid = $pPidId;
         // log file path
         $this->mLogFile = PHPASYNC_TEMP_DIR . '/' . $this->mPid;
     }
     // set default config values
     $this->mConfig = array('append_log' => FALSE, 'max_execution_time' => "1200", 'memory_limit' => '128M', 'no-gzip' => 1, 'zlib.output_compression' => 0, 'ignore_user_abort' => FALSE);
     // override default config
     if (!empty($pConfig)) {
         extract_to($pConfig, $this->mConfig, EXTR_IF_EXISTS);
     }
     parent::__construct();
 }