當前位置: 首頁>>代碼示例>>PHP>>正文


PHP flexible_table::__construct方法代碼示例

本文整理匯總了PHP中flexible_table::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP flexible_table::__construct方法的具體用法?PHP flexible_table::__construct怎麽用?PHP flexible_table::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在flexible_table的用法示例。


在下文中一共展示了flexible_table::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($uniqueid, $params)
 {
     parent::__construct($uniqueid);
     $this->offlinequiz = $params['offlinequiz'];
     $this->noresults = $params['noresults'];
     $this->psize = $params['pagesize'];
 }
開發者ID:frankkoch,項目名稱:moodle-mod_offlinequiz,代碼行數:7,代碼來源:results_table.php

示例2: __construct

 /**
  * 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);
 }
開發者ID:agarnav,項目名稱:moodle-mod_activequiz,代碼行數:15,代碼來源:sessionattempts.php

示例3: __construct

 /**
  * 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();
 }
開發者ID:dg711,項目名稱:moodle,代碼行數:17,代碼來源:step_list.php

示例4: __construct

 /**
  * 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();
 }
開發者ID:dg711,項目名稱:moodle,代碼行數:15,代碼來源:tour_list.php

示例5: __construct

 /**
  * 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);
 }
開發者ID:evltuma,項目名稱:moodle,代碼行數:19,代碼來源:templates_table.php

示例6: __construct

 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');
 }
開發者ID:nadavkav,項目名稱:moodle-mod_oublog,代碼行數:13,代碼來源:participation_table.php

示例7:

 /**
  * @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');
 }
開發者ID:eamador,項目名稱:moodle-course-custom-fields,代碼行數:11,代碼來源:tablelib.php

示例8:

 function quiz_report_statistics_table(){
     parent::__construct('mod-quiz-report-statistics-report');
 }
開發者ID:nfreear,項目名稱:moodle,代碼行數:3,代碼來源:statistics_table.php

示例9: __construct

 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct('mod-offlinequiz-report-statistics-report');
     $this->defaultdownloadformat = 'excel';
 }
開發者ID:frankkoch,項目名稱:moodle-mod_offlinequiz,代碼行數:8,代碼來源:statistics_question_answer_table.php

示例10: __construct

 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct('mod-quiz-report-statistics-report');
 }
開發者ID:EmmanuelYupit,項目名稱:educursos,代碼行數:7,代碼來源:statistics_table.php

示例11: __construct

 /**
  * 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);
 }
開發者ID:janaece,項目名稱:globalclassroom4_clean,代碼行數:10,代碼來源:statistics_question_table.php

示例12: __construct

 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');
 }
開發者ID:ndunand,項目名稱:moodle-mod_ouwiki,代碼行數:11,代碼來源:participation_table.php

示例13:

 function quiz_report_statistics_question_table($qid){
     parent::__construct('mod-quiz-report-statistics-question-table'.$qid);
 }
開發者ID:nfreear,項目名稱:moodle,代碼行數:3,代碼來源:statistics_question_table.php

示例14: __construct

 /**
  * 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';
 }
開發者ID:frankkoch,項目名稱:moodle-mod_offlinequiz,代碼行數:10,代碼來源:statistics_question_table.php

示例15: __construct

 public function __construct($uniqueid, $reportscript, $params)
 {
     parent::__construct($uniqueid);
     $this->reportscript = $reportscript;
     $this->params = $params;
 }
開發者ID:frankkoch,項目名稱:moodle-mod_offlinequiz,代碼行數:6,代碼來源:errorpages_table.php


注:本文中的flexible_table::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。