コード例 #1
0
 public function __construct($uniqueid, $params)
 {
     parent::__construct($uniqueid);
     $this->offlinequiz = $params['offlinequiz'];
     $this->noresults = $params['noresults'];
     $this->psize = $params['pagesize'];
 }
コード例 #2
0
 /**
  * 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);
 }
コード例 #3
0
ファイル: step_list.php プロジェクト: dg711/moodle
 /**
  * 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();
 }
コード例 #4
0
ファイル: tour_list.php プロジェクト: dg711/moodle
 /**
  * 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();
 }
コード例 #5
0
ファイル: templates_table.php プロジェクト: evltuma/moodle
 /**
  * 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);
 }
コード例 #6
0
 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');
 }
コード例 #7
0
 /**
  * @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');
 }
コード例 #8
0
ファイル: statistics_table.php プロジェクト: nfreear/moodle
 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';
 }
コード例 #10
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct('mod-quiz-report-statistics-report');
 }
コード例 #11
0
 /**
  * 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);
 }
コード例 #12
0
 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');
 }
コード例 #13
0
 function quiz_report_statistics_question_table($qid){
     parent::__construct('mod-quiz-report-statistics-question-table'.$qid);
 }
コード例 #14
0
 /**
  * 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';
 }
コード例 #15
0
 public function __construct($uniqueid, $reportscript, $params)
 {
     parent::__construct($uniqueid);
     $this->reportscript = $reportscript;
     $this->params = $params;
 }