public function getEmployeeActiveProjects($req) { $project = new EmployeeProject(); $projects = $project->Find("employee = ? and status =?", array($this->getCurrentProfileId(), 'Current')); return new IceResponse(IceResponse::SUCCESS, count($projects)); }