assignOutputURLs(); } /** * Build the form object. */ public function buildQuickForm() { $this->addButtons(array( array( 'type' => 'next', 'name' => ts('Done'), 'isDefault' => TRUE, ), )); } /** * Return a descriptive name for the page, used in wizard header. * * @return string */ public function getTitle() { return ts('Summary'); } protected function assignOutputURLs(): void { $this->assign('totalRowCount', $this->getRowCount()); $this->assign('validRowCount', $this->getRowCount(CRM_Import_Parser::VALID) + $this->getRowCount(CRM_Import_Parser::UNPARSED_ADDRESS_WARNING)); $this->assign('invalidRowCount', $this->getRowCount(CRM_Import_Parser::ERROR)); $this->assign('duplicateRowCount', $this->getRowCount(CRM_Import_Parser::DUPLICATE)); $this->assign('unMatchCount', $this->getRowCount(CRM_Import_Parser::NO_MATCH)); $this->assign('unparsedAddressCount', $this->getRowCount(CRM_Import_Parser::UNPARSED_ADDRESS_WARNING)); $this->assign('downloadDuplicateRecordsUrl', $this->getDownloadURL(CRM_Import_Parser::DUPLICATE)); $this->assign('downloadErrorRecordsUrl', $this->getDownloadURL(CRM_Import_Parser::ERROR)); $this->assign('downloadMismatchRecordsUrl', $this->getDownloadURL(CRM_Import_Parser::NO_MATCH)); $this->assign('downloadAddressRecordsUrl', $this->getDownloadURL(CRM_Import_Parser::UNPARSED_ADDRESS_WARNING)); } }