Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/cohort/index.php File Reference

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 ($contextid) if ($search) $baseurl = new moodle_url('/cohort/index.php', $params)

Definition at line 94 of file index.php.

$canassign = has_capability('moodle/cohort:assign', $context)

Definition at line 53 of file index.php.

$cohorts = cohort_get_cohorts($context->id, $page, 25, $searchquery)

Definition at line 84 of file index.php.

Definition at line 31 of file index.php.

$data = array()

Definition at line 97 of file index.php.

if ($context->contextlevel==CONTEXT_COURSECAT) $manager = has_capability('moodle/cohort:manage', $context)

Definition at line 52 of file index.php.

Definition at line 32 of file index.php.

$params = array('page' => $page)

Definition at line 87 of file index.php.

$search = html_writer::start_tag('form', array('id'=>'searchcohortquery', 'method'=>'get'))

Definition at line 75 of file index.php.

$searchquery = optional_param('search', '', PARAM_RAW)

Definition at line 33 of file index.php.

if (!$manager) $strcohorts = get_string('cohorts', 'cohort')

Definition at line 58 of file index.php.

foreach ($cohorts['cohorts'] as $cohort) $table = new html_table()

Definition at line 126 of file index.php.

$table align = array('left', 'left', 'left', 'left','center', 'center')

Definition at line 130 of file index.php.

Definition at line 132 of file index.php.

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.

if($manager)

Definition at line 136 of file index.php.

$table size = array('20%', '10%', '40%', '10%', '10%', '10%')

Definition at line 129 of file index.php.

$table width = '80%'

Definition at line 131 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations