Skip to content

Commit

Permalink
phpdoc compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Mar 4, 2024
1 parent e4d1ac4 commit 570bcdc
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 12 deletions.
5 changes: 3 additions & 2 deletions backup/moodle2/backup_qtype_aitext_plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* @package moodlecore
* @subpackage backup-moodle2
* Aitext backup
*
* @package qtype_aitext
* @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
9 changes: 8 additions & 1 deletion backup/moodle2/restore_qtype_aitext_plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,18 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* @package moodlecore
* Aitext question type backup
*
* @package qtype_aitext
* @subpackage backup-moodle2
* @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/


/**
* Provide the necessary information needed to restore one aitext instance
*
* restore plugin class that provides the necessary information
* needed to restore one aitext qtype plugin
*
Expand All @@ -42,6 +46,9 @@ protected function define_question_plugin_structure() {

/**
* Process the qtype/aitext element
*
* @param array $data
* @return void
*/
public function process_aitext($data) {
global $DB;
Expand Down
2 changes: 1 addition & 1 deletion db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Essay question type upgrade code.
*
* @package qtype
* @package qtype_aitext
* @subpackage essay
* @copyright 2011 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
2 changes: 1 addition & 1 deletion db/upgradelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Upgrade library code for the essay question type.
*
* @package qtype
* @package qtype_aitext
* @subpackage essay
* @copyright 2010 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
2 changes: 1 addition & 1 deletion edit_aitext_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Defines the editing form for the aitext question type.
*
* @package qtype
* @package qtype_aitext
* @subpackage aitext
* @author 2023 Marcus Green
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
2 changes: 1 addition & 1 deletion lang/en/qtype_aitext.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Strings for component 'qtype_aitext', language 'en'
*
* @package qtype
* @package qtype_aitext
* @subpackage aitext
* @copyright 2024 Marcus Green
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
9 changes: 7 additions & 2 deletions question.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* aitext question definition class.
*
* @package qtype
* @package qtype_aitext
* @subpackage aitext
* @copyright 2024 Marcus Green
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down Expand Up @@ -75,9 +75,14 @@ public function compute_final_grade($responses, $totaltries) {

return true;
}
/**
* Re-initialise the state during a quiz (or question use)
*
* @param question_attempt_step $step
* @return void
*/
public function apply_attempt_state(question_attempt_step $step) {
$this->step = $step;

}

/**
Expand Down
2 changes: 1 addition & 1 deletion questiontype.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Question type class for the aitext question type.
*
* @package qtype
* @package qtype_aitext
* @subpackage aitext
* @author Marcus Green
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down
10 changes: 9 additions & 1 deletion renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* aitext question renderer class. Based on core Moodle qtype_essay
* which has its origins at the UK Open University
*
* @package qtype
* @package qtype_aitext
* @subpackage aitext
* @author 2023 Marcus Green
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand All @@ -33,6 +33,14 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class qtype_aitext_renderer extends qtype_renderer {
/**
* Generate the display of the formulation part of the question shown at runtime
* in a quiz
*
* @param question_attempt $qa
* @param question_display_options $options
* @return string
*/
public function formulation_and_controls(question_attempt $qa,
question_display_options $options) {
global $CFG;
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
/**
* Version information for the essay question type.
*
* @package qtype
* @package qtype_aitext
* @subpackage essay
* @copyright 2005 Mark Nielsen
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down

0 comments on commit 570bcdc

Please sign in to comment.