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

Go to the source code of this file.

Namespaces

namespace  feedback

Variables

 $id = required_param('id', PARAM_INT)
 $templateid = optional_param('templateid', false, PARAM_INT)
 $deleteolditems = optional_param('deleteolditems', 0, PARAM_INT)
if(!$templateid) $url = new moodle_url('/mod/feedback/use_templ.php', array('id'=>$id, 'templateid'=>$templateid))
 $mform = new mod_feedback_use_templ_form()
 $newformdata
 $formdata = $mform->get_data()
if($mform->is_cancelled()) if(isset($formdata->
confirmadd) AND $formdata->
confirmadd==1) 
$strfeedbacks = get_string("modulenameplural", "feedback")
 Print the page header.
 $strfeedback = get_string("modulename", "feedback")
 $templateitems = $DB->get_records('feedback_item', array('template'=>$templateid), 'position')

Variable Documentation

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

Definition at line 31 of file use_templ.php.

$formdata = $mform->get_data()

Definition at line 70 of file use_templ.php.

Definition at line 29 of file use_templ.php.

Definition at line 63 of file use_templ.php.

$newformdata
Initial value:
 array('id'=>$id,
                    'templateid'=>$templateid,
                    'confirmadd'=>'1',
                    'deleteolditems'=>'1',
                    'do_show'=>'edit')

Definition at line 64 of file use_templ.php.

$strfeedback = get_string("modulename", "feedback")

Definition at line 83 of file use_templ.php.

if ($mform->is_cancelled()) if (isset($formdata->confirmadd) AND $formdata->confirmadd==1) $strfeedbacks = get_string("modulenameplural", "feedback")

Print the page header.

Definition at line 82 of file use_templ.php.

$templateid = optional_param('templateid', false, PARAM_INT)

Definition at line 30 of file use_templ.php.

$templateitems = $DB->get_records('feedback_item', array('template'=>$templateid), 'position')

Definition at line 104 of file use_templ.php.

if (!$templateid) $url = new moodle_url('/mod/feedback/use_templ.php', array('id'=>$id, 'templateid'=>$templateid))

Definition at line 37 of file use_templ.php.

 All Data Structures Namespaces Files Functions Variables Enumerations