protected function loadFiles($billrun_key, $account_id) { $source_pattern = $this->source->getInvoicePathPattern($billrun_key, $account_id); $source_filename = $this->getFilePathByPattern($this->source->xmls_path, $source_pattern); $this->source->current_account_id = $account_id; $this->source->loadFile($source_filename); $target_pattern = $this->target->getInvoicePathPattern($billrun_key, $account_id); $target_filename = $this->getFilePathByPattern($this->target->xmls_path, $target_pattern); $this->target->current_account_id = $account_id; $this->target->loadFile($target_filename); }