本文整理汇总了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'];
}
示例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);
}
示例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();
}
示例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();
}
示例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);
}
示例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');
}
示例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');
}
示例8:
function quiz_report_statistics_table(){
parent::__construct('mod-quiz-report-statistics-report');
}
示例9: __construct
/**
* Constructor.
*/
public function __construct()
{
parent::__construct('mod-offlinequiz-report-statistics-report');
$this->defaultdownloadformat = 'excel';
}
示例10: __construct
/**
* Constructor.
*/
public function __construct()
{
parent::__construct('mod-quiz-report-statistics-report');
}
示例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);
}
示例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');
}
示例13:
function quiz_report_statistics_question_table($qid){
parent::__construct('mod-quiz-report-statistics-question-table'.$qid);
}
示例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';
}
示例15: __construct
public function __construct($uniqueid, $reportscript, $params)
{
parent::__construct($uniqueid);
$this->reportscript = $reportscript;
$this->params = $params;
}