/** * Searches for supervisors with name matching the search string and * returns a comma separated list of employee numbers of their * subordinates. * * @param searchStr The search string to match supervisor name with * @return comma separated list of employee numbers or null if no match. */ private function _getEmpIdsWithMatchingSupervisor($searchStr) { $employeeNumbers = null; $empRepTo = new EmpRepTo(); $empNumberArray = $empRepTo->getSubordinatesOfSupervisorWithName($searchStr); if (isset($empNumberArray) && count($empNumberArray) > 0) { $employeeNumbers = implode(',', $empNumberArray); } return $employeeNumbers; }