Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/data/edit.php File Reference

Go to the source code of this file.

Namespaces

namespace  mod
 

Local Library of functions for module scorm.


Variables

 $id = optional_param('id', 0, PARAM_INT)
 $d = optional_param('d', 0, PARAM_INT)
 $rid = optional_param('rid', 0, PARAM_INT)
 $cancel = optional_param('cancel', '', PARAM_RAW)
 $mode = 'addtemplate'
 $url = new moodle_url('/mod/data/edit.php')
if(isguestuser()) $context = get_context_instance(CONTEXT_MODULE, $cm->id)
if(empty($cm->visible)
and!has_capability('moodle/course:viewhiddenactivities',
$context)) if(has_capability('mod/data:managetemplates',
$context)) if($rid) if($cancel)
if(!empty($CFG->enablerssfeeds)&&!empty($CFG->
data_enablerssfeeds)&&$data->
rssarticles > 0) if($data->
csstemplate) if($data->
jstemplate) 
$possiblefields = $DB->get_records('data_fields', array('dataid'=>$data->id), 'id')
 If it's hidden then it doesn't show anything. :)
foreach($possiblefields as $field) $strdata = get_string('modulenameplural','data')
 Define page variables.
 $currentgroup = groups_get_activity_group($cm)
 Check to see if groups are being used here.
 $groupmode = groups_get_activity_groupmode($cm)
 $currenttab = 'add'
 Print the tabs.
 if ($rid)
 $patterns = array()
 Print the browsing interface.
 $replacement = array()
if(!$fields=$DB->get_records('data_fields',
array('dataid'=> $data->id))) 
foreach ($fields as $eachfield)
 Finish the page.

Variable Documentation

Definition at line 33 of file edit.php.

Definition at line 77 of file edit.php.

$currentgroup = groups_get_activity_group($cm)

Check to see if groups are being used here.

Definition at line 140 of file edit.php.

$currenttab = 'add'

Print the tabs.

Definition at line 269 of file edit.php.

$d = optional_param('d', 0, PARAM_INT)

Definition at line 31 of file edit.php.

Definition at line 141 of file edit.php.

Definition at line 30 of file edit.php.

$mode = 'addtemplate'

Definition at line 34 of file edit.php.

$patterns = array()

Print the browsing interface.

Definition at line 278 of file edit.php.

if (empty($cm->visible) and!has_capability('moodle/course:viewhiddenactivities', $context)) if (has_capability('mod/data:managetemplates', $context)) if ($rid) if ($cancel) if (!empty($CFG->enablerssfeeds)&&!empty($CFG->data_enablerssfeeds)&&$data->rssarticles > 0) if ($data->csstemplate) if ($data->jstemplate) $possiblefields = $DB->get_records('data_fields', array('dataid'=>$data->id), 'id')

If it's hidden then it doesn't show anything. :)

Can't use this if there are no fields RSS and CSS and JS meta

Definition at line 120 of file edit.php.

$replacement = array()

Definition at line 279 of file edit.php.

$rid = optional_param('rid', 0, PARAM_INT)

Definition at line 32 of file edit.php.

foreach ($possiblefields as $field) $strdata = get_string('modulenameplural','data')

Define page variables.

Definition at line 130 of file edit.php.

$url = new moodle_url('/mod/data/edit.php')

Definition at line 36 of file edit.php.

if (!$fields=$DB->get_records('data_fields', array('dataid'=> $data->id))) foreach($fields as $eachfield)

Finish the page.

Definition at line 335 of file edit.php.

if($rid)

Definition at line 270 of file edit.php.

 All Data Structures Namespaces Files Functions Variables Enumerations