private function viewResume() { /* Bail out if we don't have a valid candidate ID. */ if (!$this->isRequiredIDValid('attachmentID', $_GET)) { CommonErrors::fatal(COMMONERROR_BADINDEX, $this, 'Invalid attachment ID.'); } $attachmentID = $_GET['attachmentID']; /* Get the search string. */ $query = $this->getTrimmedInput('wildCardString', $_GET); /* Get resume text. */ $candidates = new Candidates($this->_siteID); $data = $candidates->getResume($attachmentID); if (!empty($data)) { /* Keyword highlighting. */ $data['text'] = SearchUtility::makePreview($query, $data['text']); } if (!eval(Hooks::get('CANDIDATE_VIEW_RESUME'))) { return; } $this->_template->assign('active', $this); $this->_template->assign('data', $data); $this->_template->display('./modules/candidates/ResumeView.tpl'); }