public function __construct(array $params = array()) { parent::__construct($params); self::$type = '013'; $this->data_structure = array('record_type' => '%1s', 'operator_code' => '%3s', 'call_type' => '%1s', 'caller_phone_no' => '%010s', 'call_start_dt' => '%14s', 'call_end_dt' => '%14s', 'called_no' => '%-16s', 'chrgbl_call_dur' => '%06s', 'call_charge' => '%011s', 'correction_code' => '%02s'); $this->header_structure = array('filename' => '%11s', 'record_type' => '%1s', 'file_creation_date' => '%8s', 'file_received_time' => '%6s'); $this->trailer_structure = array('filename' => '%11s', 'record_type' => '%1s', 'file_creation_date' => '%8s', 'file_received_time' => '%6s', 'file_size' => '%9s', 'line_count' => '%9s', 'total_charge' => '%17s'); }
protected function updateTrailer($logLine) { $logLine['total_charge'] = $this->totalChargeAmount; $logLine['total_rec_no'] = $this->linesCount; $logLine['total_err_rec_no'] = $this->linesErrors; $line = parent::updateTrailer($logLine); return $line; }
protected function updateTrailer($logLine) { $logLine['file_received_date'] = date('Ymd'); $logLine['file_received_time'] = date('His'); $logLine['total_rec_no'] = $this->linesCount; $logLine['total_valid_rec_no'] = $this->linesCount - $this->linesErrors; $logLine['total_err_rec_no'] = $this->linesErrors; $line = parent::updateTrailer($logLine); return $line; }
protected function updateTrailer($logLine) { $logLine['file_type'] = "MABAL_R"; $logLine['total_charge'] = $this->totalChargeAmount; $logLine['total_rec_no'] = $this->linesCount; $logLine['total_err_rec_no'] = $this->linesErrors; $line = parent::updateTrailer($logLine); // $line.= sprintf("%015s", $this->totalChargeAmount); // $line.= sprintf("%6s", $this->linesCount); // $line.= sprintf("%6s", $this->linesErrors); return $line; }
protected function processFileForResponse($filePath, $logLine) { $this->phoneNumbersSum = 0; return parent::processFileForResponse($filePath, $logLine); }
protected function updateTrailer($logLine) { $line = parent::updateTrailer($logLine); $line .= sprintf("%06s", $this->linesErrors); return $line; }