Go to the source code of this file.
Namespaces |
| namespace | core |
Variables |
| | $contextid = optional_param('contextid', 0, PARAM_INT) |
| | $page = optional_param('page', 0, PARAM_INT) |
| | $searchquery = optional_param('search', '', PARAM_RAW) |
| if($context->contextlevel==CONTEXT_COURSECAT) | $manager = has_capability('moodle/cohort:manage', $context) |
| | $canassign = has_capability('moodle/cohort:assign', $context) |
| if(!$manager) | $strcohorts = get_string('cohorts', 'cohort') |
| | $search = html_writer::start_tag('form', array('id'=>'searchcohortquery', 'method'=>'get')) |
| | $cohorts = cohort_get_cohorts($context->id, $page, 25, $searchquery) |
| | $params = array('page' => $page) |
| if($contextid) if($search) | $baseurl = new moodle_url('/cohort/index.php', $params) |
| | $data = array() |
foreach($cohorts['cohorts'] as
$cohort) | $table = new html_table() |
| $table | head |
| $table | size = array('20%', '10%', '40%', '10%', '10%', '10%') |
| $table | align = array('left', 'left', 'left', 'left','center', 'center') |
| $table | width = '80%' |
| $table | data = $data |
| | if ($manager) |
Variable Documentation
| if (!$manager) $strcohorts = get_string('cohorts', 'cohort') |
Initial value: array(get_string('name', 'cohort'), get_string('idnumber', 'cohort'), get_string('description', 'cohort'),
get_string('memberscount', 'cohort'), get_string('component', 'cohort'), get_string('edit'))
Definition at line 127 of file index.php.