public function getRolesByCompany($request) { try { $roleObj = new Application_Model_Role(); $roleObj->setCompanyId($request->companyid); $roleObj->setStatus('TRUE'); $mapper = new Application_Model_RoleDataMapper(); $status = $mapper->getRolesByCompany($roleObj); return $status; } catch (Exception $ex) { Rdine_Logger_FileLogger::info($ex->getMessage()); throw new Exception($ex->getMessage()); } }