Edited PHPDocs and comments
This commit is contained in:
parent
819349dfc0
commit
87b1e9d7f0
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ require_once($CFG->dirroot . '/mod/customcert/colourpicker.php');
|
||||||
MoodleQuickForm::registerElementType('customcert_colourpicker', $CFG->dirroot . '/mod/customcert/colourpicker.php', 'MoodleQuickForm_customcert_colourpicker');
|
MoodleQuickForm::registerElementType('customcert_colourpicker', $CFG->dirroot . '/mod/customcert/colourpicker.php', 'MoodleQuickForm_customcert_colourpicker');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instance add/edit form.
|
* The form for handling the layout of the customcert instance.
|
||||||
*
|
*
|
||||||
* @package mod
|
* @package mod
|
||||||
* @subpackage customcert
|
* @subpackage customcert
|
||||||
|
@ -102,7 +102,7 @@ class mod_customcert_edit_form extends moodleform {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fill in the current page data for this certificate.
|
* Fill in the current page data for this customcert.
|
||||||
*/
|
*/
|
||||||
function definition_after_data() {
|
function definition_after_data() {
|
||||||
global $DB;
|
global $DB;
|
||||||
|
@ -117,7 +117,7 @@ class mod_customcert_edit_form extends moodleform {
|
||||||
|
|
||||||
// Check that we are updating a current customcert.
|
// Check that we are updating a current customcert.
|
||||||
if ($this->id) {
|
if ($this->id) {
|
||||||
// Get the pages for this certificate.
|
// Get the pages for this customcert.
|
||||||
if ($pages = $DB->get_records('customcert_pages', array('customcertid' => $this->id))) {
|
if ($pages = $DB->get_records('customcert_pages', array('customcertid' => $this->id))) {
|
||||||
// Loop through the pages.
|
// Loop through the pages.
|
||||||
foreach ($pages as $p) {
|
foreach ($pages as $p) {
|
||||||
|
|
Loading…
Reference in a new issue