public function getCategoryListForStudent(Student $student) { // Send the request, final URL is relative to API URL that's set in the constructor above $json = $this->sendRequest($student->getUsername()); // TODO error checking? // Log the request $this->logRequest('getCategoryListForStudent', 'success', array($student->getUsername())); return $json; }