|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | user |
Variables | |
| $id = required_param('id', PARAM_INT) | |
| $users = optional_param_array('userid', array(), PARAM_INT) | |
| $contents = optional_param_array('contents', array(), PARAM_RAW) | |
| $states = optional_param_array('states', array(), PARAM_ALPHA) | |
| if(!$course=$DB->get_record('course', array('id'=> $id))) | $context = get_context_instance(CONTEXT_COURSE, $id) |
| if(empty($CFG->enablenotes)) if(!empty($users)&&confirm_sesskey()) | $straddnote = get_string('addnewnote', 'notes') |
| Print headers. | |
| $table = new html_table() | |
| $table | head |
| $table | align = array ('left', 'center', 'center') |
| $state_names = note_get_state_names() | |
| if(empty($users) and $post=data_submitted()) | foreach ($users as $k=> $v) |
| $contents = optional_param_array('contents', array(), PARAM_RAW) |
Definition at line 31 of file addnote.php.
| if (!$course=$DB->get_record('course', array('id'=> $id))) $context = get_context_instance(CONTEXT_COURSE, $id) |
Definition at line 40 of file addnote.php.
| $id = required_param('id', PARAM_INT) |
Definition at line 29 of file addnote.php.
| $state_names = note_get_state_names() |
Definition at line 97 of file addnote.php.
| $states = optional_param_array('states', array(), PARAM_ALPHA) |
Definition at line 32 of file addnote.php.
| if (empty($CFG->enablenotes)) if (!empty($users)&&confirm_sesskey()) $straddnote = get_string('addnewnote', 'notes') |
Print headers.
Definition at line 75 of file addnote.php.
| $table = new html_table() |
Definition at line 91 of file addnote.php.
| $users = optional_param_array('userid', array(), PARAM_INT) |
Definition at line 30 of file addnote.php.
| if (empty($users) and $post=data_submitted()) foreach($users as $k=> $v) |
Definition at line 108 of file addnote.php.
array (get_string('fullnameuser'), get_string('content', 'notes'), get_string('publishstate', 'notes') . $OUTPUT->help_icon('publishstate', 'notes'), )
Definition at line 92 of file addnote.php.