Added missing scope to functions
This commit is contained in:
parent
323abd6da4
commit
8df94fd093
5 changed files with 7 additions and 7 deletions
|
@ -39,7 +39,7 @@ class mod_customcert_edit_element_form extends moodleform {
|
||||||
/**
|
/**
|
||||||
* Form definition.
|
* Form definition.
|
||||||
*/
|
*/
|
||||||
function definition() {
|
public function definition() {
|
||||||
$mform =& $this->_form;
|
$mform =& $this->_form;
|
||||||
|
|
||||||
$element = $this->_customdata['element'];
|
$element = $this->_customdata['element'];
|
||||||
|
@ -60,7 +60,7 @@ class mod_customcert_edit_element_form extends moodleform {
|
||||||
/**
|
/**
|
||||||
* Fill in the current page data for this customcert.
|
* Fill in the current page data for this customcert.
|
||||||
*/
|
*/
|
||||||
function definition_after_data() {
|
public function definition_after_data() {
|
||||||
$this->element->definition_after_data($this->_form);
|
$this->element->definition_after_data($this->_form);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ class mod_customcert_edit_form extends moodleform {
|
||||||
/**
|
/**
|
||||||
* Form definition.
|
* Form definition.
|
||||||
*/
|
*/
|
||||||
function definition() {
|
public function definition() {
|
||||||
global $DB;
|
global $DB;
|
||||||
|
|
||||||
$this->id = $this->_customdata['customcertid'];
|
$this->id = $this->_customdata['customcertid'];
|
||||||
|
@ -94,7 +94,7 @@ class mod_customcert_edit_form extends moodleform {
|
||||||
/**
|
/**
|
||||||
* Fill in the current page data for this customcert.
|
* Fill in the current page data for this customcert.
|
||||||
*/
|
*/
|
||||||
function definition_after_data() {
|
public function definition_after_data() {
|
||||||
global $DB;
|
global $DB;
|
||||||
|
|
||||||
$mform = $this->_form;
|
$mform = $this->_form;
|
||||||
|
|
|
@ -30,7 +30,7 @@ class mod_customcert_load_template_form extends moodleform {
|
||||||
/**
|
/**
|
||||||
* Form definition.
|
* Form definition.
|
||||||
*/
|
*/
|
||||||
function definition() {
|
public function definition() {
|
||||||
$mform =& $this->_form;
|
$mform =& $this->_form;
|
||||||
|
|
||||||
$mform->addElement('header', 'loadtemplateheader', get_string('loadtemplate', 'customcert'));
|
$mform->addElement('header', 'loadtemplateheader', get_string('loadtemplate', 'customcert'));
|
||||||
|
|
|
@ -31,7 +31,7 @@ class mod_customcert_mod_form extends moodleform_mod {
|
||||||
/**
|
/**
|
||||||
* Form definition.
|
* Form definition.
|
||||||
*/
|
*/
|
||||||
function definition() {
|
public function definition() {
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
$mform =& $this->_form;
|
$mform =& $this->_form;
|
||||||
|
|
|
@ -30,7 +30,7 @@ class mod_customcert_save_template_form extends moodleform {
|
||||||
/**
|
/**
|
||||||
* Form definition.
|
* Form definition.
|
||||||
*/
|
*/
|
||||||
function definition() {
|
public function definition() {
|
||||||
$mform =& $this->_form;
|
$mform =& $this->_form;
|
||||||
|
|
||||||
$mform->addElement('header', 'savetemplateheader', get_string('savetemplate', 'customcert'));
|
$mform->addElement('header', 'savetemplateheader', get_string('savetemplate', 'customcert'));
|
||||||
|
|
Loading…
Reference in a new issue