当前位置: 首页>>代码示例>>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;未经允许,请勿转载。