public function getAllowedCandidateHistoryList($candidateId) { $accessFlowStateMachineService = new AccessFlowStateMachineService(); $allowedCandidateHistoryIdList = $accessFlowStateMachineService->getAllowedCandidateHistoryList(AdminUserRoleDecorator::ADMIN_USER, null, $candidateId); $existingIdList = $this->user->getAllowedCandidateHistoryList($candidateId); if (is_null($allowedCandidateHistoryIdList)) { return $existingIdList; } else { $allowedCandidateHistoryIdList = array_unique(array_merge($allowedCandidateHistoryIdList, $existingIdList)); return $allowedCandidateHistoryIdList; } }
public function getAllowedCandidateHistoryList($candidateId) { $accessFlowStateMachineService = new AccessFlowStateMachineService(); $allowedCandidateHistoryIdList = $accessFlowStateMachineService->getAllowedCandidateHistoryList(InterviewerUserRoleDecorator::INTERVIEWER, $this->getEmployeeNumber(), $candidateId); $existingIdList = $this->user->getAllowedCandidateHistoryList($candidateId); if (is_null($allowedCandidateHistoryIdList)) { return $existingIdList; } else { $allowedCandidateHistoryIdList = array_unique(array_merge($allowedCandidateHistoryIdList, $existingIdList)); return $allowedCandidateHistoryIdList; } }