get_subcategories($userId, api_get_course_id(), api_get_session_id()); $alleval = $cats[0]->get_evaluations($userId); $alllink = $cats[0]->get_links($userId); $gradebooktable = new GradebookTable( $cat, $allcat, $alleval, $alllink, array(), false ); $gradebooktable->userId = $userId; $table = $gradebooktable->return_table(); echo $gradebooktable->getGraph();