Example #1
0
 function __construct($csvFilePath)
 {
     $this->csvFilePath = $csvFilePath;
     // initialize the logger
     $this->log = SotaLogger::getLogger();
     $this->initialize();
 }
Example #2
0
 public static function getLogger()
 {
     if (SotaLogger::$log == null) {
         // initialize the logger
         Logger::configure('logConfig.xml');
         SotaLogger::$log = Logger::getLogger('importLogger');
     }
     return SotaLogger::$log;
 }
Example #3
0
 function __construct()
 {
     // read initialization file
     $this->config = parse_ini_file('config.ini', true);
     // reads the cvs remote path from config file
     $this->csvFilePath = $this->config['cvs_remote_path'];
     // initialize the logger
     $this->log = SotaLogger::getLogger();
 }
Example #4
0
 public function __construct($config)
 {
     $this->log = SotaLogger::getLogger();
     $this->config = $config;
     $this->output["new_assoc"] = array();
     $this->output["new_region"] = array();
     $this->output["new_summit"] = array();
     $this->output["upd_assoc"] = array();
     $this->output["upd_region"] = array();
     $this->output["upd_summit"] = array();
 }