Esempio n. 1
0
 public function __construct()
 {
     $conf = Cnf::get();
     $this->set_params($conf);
     if (!isset($conf['sources']) or !is_array($conf['sources'])) {
         Log::instance()->error("Parameter: 'sources' is not set or is not array.");
     } else {
         $this->sources = $conf['sources'];
     }
 }
Esempio n. 2
0
 public function __construct(array $conf)
 {
     if (empty($conf)) {
         return FALSE;
     }
     $this->skip_zero_dur = Cnf::get('skip_zero_dur');
     $this->raw_delimiter = $conf['delimiter'];
     $this->val_indexes = $conf['indexes'];
     $this->setCountRaw($conf['raw_count']);
     $this->setConverter($conf['obj_converter']);
 }