Example #1
0
 /**
  * Constructor of the combined backend
  *
  * @access public
  */
 public function BackendCombined()
 {
     parent::Backend();
     $this->config = BackendCombinedConfig::GetBackendCombinedConfig();
     foreach ($this->config['backends'] as $i => $b) {
         // load and instatiate backend
         ZPush::IncludeBackend($b['name']);
         $this->backends[$i] = new $b['name']($b['config']);
     }
     ZLog::Write(LOGLEVEL_INFO, sprintf("Combined %d backends loaded.", count($this->backends)));
 }
Example #2
0
 /**
  * Constructor of the combined backend
  *
  * @access public
  */
 public function BackendCombined()
 {
     parent::Backend();
     $this->config = BackendCombinedConfig::GetBackendCombinedConfig();
     $backend_values = array_unique(array_values($this->config['folderbackend']));
     foreach ($backend_values as $i) {
         ZPush::IncludeBackend($this->config['backends'][$i]['name']);
         $this->backends[$i] = new $this->config['backends'][$i]['name']();
     }
     ZLog::Write(LOGLEVEL_DEBUG, sprintf("Combined %d backends loaded.", count($this->backends)));
 }