public function __construct($options) { parent::__construct($options); $this->setFilename(); $this->buildHeader(); $this->file_path = $this->export_directory . DIRECTORY_SEPARATOR . $this->filename; $this->resetFile(); }
public function __construct($options) { parent::__construct($options); $this->reportType = isset($options['report_type']) ? $options['report_type'] : $this->reportType; $this->reportBasePath = Billrun_Factory::config()->getConfigValue($this->reportType . '.reports.path', './'); $this->types = Billrun_Factory::config()->getConfigValue($this->reportType . '.reports.types', array('I' => 'International', 'M' => 'Mobile', 'N' => 'National', '4' => 'National', 'P' => 'National', 'Un' => 'Other')); $this->startDate = isset($options['start_date']) ? strtotime($options['start_date']) : (strlen($this->stamp) > 8 ? strtotime($this->stamp) : Billrun_Util::getLastChargeTime(true)); $this->endDate = isset($options['end_date']) ? strtotime($options['end_date']) : strtotime(date('Ymt', $this->startDate)); }
public function __construct($options) { parent::__construct($options); if (isset($options['csv_filename'])) { $this->csvPath = $this->export_directory . '/' . $options['csv_filename'] . '.csv'; } else { $this->csvPath = $this->export_directory . '/' . $this->getStamp() . '.csv'; } $this->loadCsv(); }