maths / moodle-qtype_stack

Stack question type for Moodle
GNU General Public License v3.0
141 stars 150 forks source link

Fold API code back into the main code base #1105

Closed EJMFarrow closed 5 months ago

EJMFarrow commented 8 months ago

Update API code from University of Aachen for merge back into the main code base with minimal changes to existing STACK code.

To allow the API to return appropriate data describing input configuration, the abstract stack_input class has been extended with the following methods:

The get_api_solution and get_api_solution_render functions have sensible default implementations, which are only overwritten for more complex input types. The render_api_data function on the other hand is abstract, and needs to be implemented by each concrete input type individually.

Escalated visibilities

To be accessible directly, the following property/method visibilities have been promoted to public:

Minor changes

Not done