public function __construct($uniqueid, $params) { parent::__construct($uniqueid); $this->offlinequiz = $params['offlinequiz']; $this->noresults = $params['noresults']; $this->psize = $params['pagesize']; }
/** * Contstruct this table class * * @param string $uniqueid The unique id for the table * @param \mod_activequiz\activequiz $rtq * @param \mod_activequiz\activequiz_session $session * @param \moodle_url $pageurl */ public function __construct($uniqueid, $rtq, $session, $pageurl) { $this->rtq = $rtq; $this->session = $session; $this->baseurl = $pageurl; parent::__construct($uniqueid); }
/** * Construct the table for the specified tour ID. * * @param int $tourid The id of the tour. */ public function __construct($tourid) { parent::__construct('steps'); $this->tourid = $tourid; $baseurl = new \moodle_url('/tool/usertours/configure.php', array('id' => $tourid)); $this->define_baseurl($baseurl); // Column definition. $this->define_columns(array('title', 'content', 'target', 'actions')); $this->define_headers(array(get_string('title', 'tool_usertours'), get_string('content', 'tool_usertours'), get_string('target', 'tool_usertours'), get_string('actions', 'tool_usertours'))); $this->set_attribute('class', 'admintable generaltable steptable'); $this->setup(); }
/** * Construct the tour table. */ public function __construct() { parent::__construct('tours'); $baseurl = new \moodle_url('/tool/usertours/configure.php'); $this->define_baseurl($baseurl); // Column definition. $this->define_columns(array('name', 'description', 'appliesto', 'enabled', 'actions')); $this->define_headers(array(get_string('name', 'tool_usertours'), get_string('description', 'tool_usertours'), get_string('appliesto', 'tool_usertours'), get_string('enabled', 'tool_usertours'), get_string('actions', 'tool_usertours'))); $this->set_attribute('class', 'admintable generaltable'); $this->setup(); $this->tourcount = helper::count_tours(); }
/** * Constructor * @param int $uniqueid all tables have to have a unique id, this is used * as a key when storing table properties like sort order in the session. * @param moodle_url $baseurl */ public function __construct($uniqueid, $baseurl) { parent::__construct($uniqueid); $tablecolumns = array('template', 'action'); $tableheaders = array(get_string('template', 'feedback'), ''); $this->set_attribute('class', 'templateslist'); $this->define_columns($tablecolumns); $this->define_headers($tableheaders); $this->define_baseurl($baseurl); $this->column_class('template', 'template'); $this->column_class('action', 'action'); $this->sortable(false); }
public function __construct($cmid, $course, $oublog, $userid, $userfullname, $groupname, $groupid, $start, $end) { $this->cmid = $cmid; $this->course = $course; $this->oublog = $oublog; $this->userid = $userid; $this->userfullname = $userfullname; $this->groupname = $groupname; $this->groupid = $groupid; $this->start = $start; $this->end = $end; parent::__construct('mod-oublog-user-participation'); }
/** * @param string $uniqueid a string identifying this table.Used as a key in * session vars. */ function __construct($uniqueid) { parent::__construct($uniqueid); // some sensible defaults $this->set_attribute('cellspacing', '0'); $this->set_attribute('class', 'generaltable generalbox'); }
function quiz_report_statistics_table(){ parent::__construct('mod-quiz-report-statistics-report'); }
/** * Constructor. */ public function __construct() { parent::__construct('mod-offlinequiz-report-statistics-report'); $this->defaultdownloadformat = 'excel'; }
/** * Constructor. */ public function __construct() { parent::__construct('mod-quiz-report-statistics-report'); }
/** * Constructor. * * @param int $qid the id of the particular question whose statistics are being * displayed. */ public function __construct($qid) { parent::__construct('mod-quiz-report-statistics-question-table' . $qid); }
public function __construct($cm, $course, $ouwiki, $pagename, $groupname, $user, $userfullname) { $this->cm = $cm; $this->course = $course; $this->ouwiki = $ouwiki; $this->pagename = $pagename; $this->groupname = $groupname; $this->user = $user; $this->userfullname = $userfullname; parent::__construct('mod-ouwiki-user-participation'); }
function quiz_report_statistics_question_table($qid){ parent::__construct('mod-quiz-report-statistics-question-table'.$qid); }
/** * Constructor. * @param $qid the id of the particular question whose statistics are being * displayed. */ public function __construct($qid) { parent::__construct('mod-offlinequiz-report-statistics-question-table' . $qid); $this->defaultdownloadformat = 'excel'; }
public function __construct($uniqueid, $reportscript, $params) { parent::__construct($uniqueid); $this->reportscript = $reportscript; $this->params = $params; }