function __construct($uniqueid, $displayperpage = true, $wrapid = '')
 {
     $this->wrapid = $wrapid;
     $this->wrap_start_extra = '';
     $this->wrap_finish_extra = '';
     parent::__construct($uniqueid, $displayperpage);
 }
// Meta includes
require_once $CFG->dirroot . '/blocks/ilp/actions_includes.php';
//include the default class
require_once $CFG->dirroot . '/blocks/ilp/classes/tables/ilp_ajax_table.class.php';
//get the id of the course that is currently being used if set
$course_id = $PARSER->optional_param('course_id', 0, PARAM_INT);
//get the tutor flag
$tutor = $PARSER->optional_param('tutor', 0, PARAM_INT);
//get the status_id if set
$status_id = $PARSER->optional_param('status_id', 0, PARAM_INT);
//get the group_id if set
$group_id = $PARSER->optional_param('group_id', 0, PARAM_INT);
// instantiate the db
$dbc = new ilp_db();
// set up the flexible table for displaying the portfolios
$flextable = new ilp_ajax_table("student_listcourse_id{$course_id}tutor{$tutor}status_id{$status_id}");
$flextable->define_baseurl($CFG->wwwroot . "/blocks/ilp/actions/view_studentlist.php?course_id={$course_id}&tutor={$tutor}&status_id={$status_id}&group_id={$group_id}");
$flextable->define_ajaxurl($CFG->wwwroot . "/blocks/ilp/actions/view_studentlist.ajax.php?course_id={$course_id}&tutor={$tutor}&status_id={$status_id}&group_id={$group_id}");
// set the basic details to dispaly in the table
$headers = array(get_string('userpicture', 'block_ilp'), get_string('name', 'block_ilp'), get_string('status', 'block_ilp'));
$columns = array('picture', 'fullname', 'u_status');
$headers[] = '';
$columns[] = 'view';
$nosorting = array('picture', 'u_status', 'view');
//we need to check if the mis plugin has been setup if it has we will get the attendance and punctuality figures
$attendanceclass = get_config('block_ilp', 'attendplugin');
$misavailable = false;
$misattendavailable = false;
$mispunctualityavailable = false;
if (!empty($attendanceclass)) {
    $misclassfile = $CFG->dirroot . "/blocks/ilp/classes/dashboard/mis/{$attendanceclass}.php";