Incorrect PHPDocs for render_form_elements and co (#271)
This commit is contained in:
parent
322abdbba3
commit
92e0029623
13 changed files with 26 additions and 26 deletions
|
@ -230,7 +230,7 @@ abstract class element {
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
* Can be overridden if more functionality is needed.
|
* Can be overridden if more functionality is needed.
|
||||||
*
|
*
|
||||||
* @param edit_element_form $mform the edit_form instance.
|
* @param \MoodleQuickForm $mform the edit_form instance.
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
// Render the common elements.
|
// Render the common elements.
|
||||||
|
|
|
@ -134,7 +134,7 @@ class element_helper {
|
||||||
/**
|
/**
|
||||||
* Helper function to render the font elements.
|
* Helper function to render the font elements.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance.
|
* @param \MoodleQuickForm $mform the edit_form instance.
|
||||||
*/
|
*/
|
||||||
public static function render_form_element_font($mform) {
|
public static function render_form_element_font($mform) {
|
||||||
$mform->addElement('select', 'font', get_string('font', 'customcert'), \mod_customcert\certificate::get_fonts());
|
$mform->addElement('select', 'font', get_string('font', 'customcert'), \mod_customcert\certificate::get_fonts());
|
||||||
|
@ -151,7 +151,7 @@ class element_helper {
|
||||||
/**
|
/**
|
||||||
* Helper function to render the colour elements.
|
* Helper function to render the colour elements.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance.
|
* @param \MoodleQuickForm $mform the edit_form instance.
|
||||||
*/
|
*/
|
||||||
public static function render_form_element_colour($mform) {
|
public static function render_form_element_colour($mform) {
|
||||||
$mform->addElement('customcert_colourpicker', 'colour', get_string('fontcolour', 'customcert'));
|
$mform->addElement('customcert_colourpicker', 'colour', get_string('fontcolour', 'customcert'));
|
||||||
|
@ -163,7 +163,7 @@ class element_helper {
|
||||||
/**
|
/**
|
||||||
* Helper function to render the position elements.
|
* Helper function to render the position elements.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance.
|
* @param \MoodleQuickForm $mform the edit_form instance.
|
||||||
*/
|
*/
|
||||||
public static function render_form_element_position($mform) {
|
public static function render_form_element_position($mform) {
|
||||||
$mform->addElement('text', 'posx', get_string('posx', 'customcert'), array('size' => 10));
|
$mform->addElement('text', 'posx', get_string('posx', 'customcert'), array('size' => 10));
|
||||||
|
@ -179,7 +179,7 @@ class element_helper {
|
||||||
/**
|
/**
|
||||||
* Helper function to render the width element.
|
* Helper function to render the width element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance.
|
* @param \MoodleQuickForm $mform the edit_form instance.
|
||||||
*/
|
*/
|
||||||
public static function render_form_element_width($mform) {
|
public static function render_form_element_width($mform) {
|
||||||
$mform->addElement('text', 'width', get_string('elementwidth', 'customcert'), array('size' => 10));
|
$mform->addElement('text', 'width', get_string('elementwidth', 'customcert'), array('size' => 10));
|
||||||
|
|
|
@ -38,7 +38,7 @@ class element extends \customcertelement_image\element {
|
||||||
/**
|
/**
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
$mform->addElement('select', 'fileid', get_string('image', 'customcertelement_image'), self::get_images());
|
$mform->addElement('select', 'fileid', get_string('image', 'customcertelement_image'), self::get_images());
|
||||||
|
|
|
@ -38,7 +38,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
// We want to define the width of the border.
|
// We want to define the width of the border.
|
||||||
|
@ -103,7 +103,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* Sets the data on the form when editing an element.
|
* Sets the data on the form when editing an element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function definition_after_data($mform) {
|
public function definition_after_data($mform) {
|
||||||
if (!empty($this->get_data())) {
|
if (!empty($this->get_data())) {
|
||||||
|
|
|
@ -65,7 +65,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
global $CFG, $COURSE;
|
global $CFG, $COURSE;
|
||||||
|
@ -223,7 +223,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* Sets the data on the form when editing an element.
|
* Sets the data on the form when editing an element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function definition_after_data($mform) {
|
public function definition_after_data($mform) {
|
||||||
// Set the item and format for this element.
|
// Set the item and format for this element.
|
||||||
|
|
|
@ -60,7 +60,7 @@ class element extends \customcertelement_image\element {
|
||||||
/**
|
/**
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
$mform->addElement('select', 'fileid', get_string('image', 'customcertelement_image'), self::get_images());
|
$mform->addElement('select', 'fileid', get_string('image', 'customcertelement_image'), self::get_images());
|
||||||
|
@ -240,7 +240,7 @@ class element extends \customcertelement_image\element {
|
||||||
/**
|
/**
|
||||||
* Sets the data on the form when editing an element.
|
* Sets the data on the form when editing an element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function definition_after_data($mform) {
|
public function definition_after_data($mform) {
|
||||||
global $COURSE, $SITE;
|
global $COURSE, $SITE;
|
||||||
|
|
|
@ -43,7 +43,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
global $COURSE;
|
global $COURSE;
|
||||||
|
@ -168,7 +168,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* Sets the data on the form when editing an element.
|
* Sets the data on the form when editing an element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function definition_after_data($mform) {
|
public function definition_after_data($mform) {
|
||||||
// Set the item and format for this element.
|
// Set the item and format for this element.
|
||||||
|
|
|
@ -38,7 +38,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
global $COURSE;
|
global $COURSE;
|
||||||
|
@ -99,7 +99,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* Sets the data on the form when editing an element.
|
* Sets the data on the form when editing an element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function definition_after_data($mform) {
|
public function definition_after_data($mform) {
|
||||||
if (!empty($this->get_data())) {
|
if (!empty($this->get_data())) {
|
||||||
|
|
|
@ -60,7 +60,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
$mform->addElement('select', 'fileid', get_string('image', 'customcertelement_image'), self::get_images());
|
$mform->addElement('select', 'fileid', get_string('image', 'customcertelement_image'), self::get_images());
|
||||||
|
@ -282,7 +282,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* Sets the data on the form when editing an element.
|
* Sets the data on the form when editing an element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function definition_after_data($mform) {
|
public function definition_after_data($mform) {
|
||||||
global $COURSE, $SITE;
|
global $COURSE, $SITE;
|
||||||
|
|
|
@ -38,7 +38,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
$mform->addElement('select', 'teacher', get_string('teacher', 'customcertelement_teachername'),
|
$mform->addElement('select', 'teacher', get_string('teacher', 'customcertelement_teachername'),
|
||||||
|
@ -123,7 +123,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* Sets the data on the form when editing an element.
|
* Sets the data on the form when editing an element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function definition_after_data($mform) {
|
public function definition_after_data($mform) {
|
||||||
if (!empty($this->get_data())) {
|
if (!empty($this->get_data())) {
|
||||||
|
|
|
@ -38,7 +38,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
$mform->addElement('textarea', 'text', get_string('text', 'customcertelement_text'));
|
$mform->addElement('textarea', 'text', get_string('text', 'customcertelement_text'));
|
||||||
|
@ -85,7 +85,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* Sets the data on the form when editing an element.
|
* Sets the data on the form when editing an element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function definition_after_data($mform) {
|
public function definition_after_data($mform) {
|
||||||
if (!empty($this->get_data())) {
|
if (!empty($this->get_data())) {
|
||||||
|
|
|
@ -38,7 +38,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
// Get the user profile fields.
|
// Get the user profile fields.
|
||||||
|
@ -116,7 +116,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* Sets the data on the form when editing an element.
|
* Sets the data on the form when editing an element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function definition_after_data($mform) {
|
public function definition_after_data($mform) {
|
||||||
if (!empty($this->get_data())) {
|
if (!empty($this->get_data())) {
|
||||||
|
|
|
@ -38,7 +38,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* This function renders the form elements when adding a customcert element.
|
* This function renders the form elements when adding a customcert element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function render_form_elements($mform) {
|
public function render_form_elements($mform) {
|
||||||
$mform->addElement('text', 'width', get_string('width', 'customcertelement_userpicture'), array('size' => 10));
|
$mform->addElement('text', 'width', get_string('width', 'customcertelement_userpicture'), array('size' => 10));
|
||||||
|
@ -190,7 +190,7 @@ class element extends \mod_customcert\element {
|
||||||
/**
|
/**
|
||||||
* Sets the data on the form when editing an element.
|
* Sets the data on the form when editing an element.
|
||||||
*
|
*
|
||||||
* @param \mod_customcert\edit_element_form $mform the edit_form instance
|
* @param \MoodleQuickForm $mform the edit_form instance
|
||||||
*/
|
*/
|
||||||
public function definition_after_data($mform) {
|
public function definition_after_data($mform) {
|
||||||
// Set the image, width and height for this element.
|
// Set the image, width and height for this element.
|
||||||
|
|
Loading…
Reference in a new issue