/** * Check whether the user is a Director * * @return boolean True if a director, false otherwise */ private function _checkIsDirector() { $isDirector = false; $id = $this->getEmployeeId(); if (!empty($id)) { $empInfo = new EmpInfo(); $isDirector = $empInfo->isDirector($id); } return $isDirector; }