addRadio('onDuplicate', ts('On Duplicate Entries'), [ CRM_Import_Parser::DUPLICATE_SKIP => ts('Skip'), CRM_Import_Parser::DUPLICATE_UPDATE => ts('Update'), CRM_Import_Parser::DUPLICATE_NOCHECK => ts('No Duplicate Checking'), ]); $this->setDefaults(['onDuplicate' => CRM_Import_Parser::DUPLICATE_SKIP]); $this->addContactTypeSelector(); } /** * @return CRM_Event_Import_Parser_Participant */ protected function getParser(): CRM_Event_Import_Parser_Participant { if (!$this->parser) { $this->parser = new CRM_Event_Import_Parser_Participant(); $this->parser->setUserJobID($this->getUserJobID()); $this->parser->init(); } return $this->parser; } }