function __construct($csvFilePath) { $this->csvFilePath = $csvFilePath; // initialize the logger $this->log = SotaLogger::getLogger(); $this->initialize(); }
public static function getLogger() { if (SotaLogger::$log == null) { // initialize the logger Logger::configure('logConfig.xml'); SotaLogger::$log = Logger::getLogger('importLogger'); } return SotaLogger::$log; }
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(); }
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(); }