Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
moodle1_scales_handler Class Reference

Handles the conversion of the scales included in the moodle.xml file. More...

Inheritance diagram for moodle1_scales_handler:
moodle1_handler loggable

Public Member Functions

 get_converter ()
 
 get_paths ()
 Registers paths.
 
 log ($message, $level, $a=null, $depth=null, $display=false)
 This function will be responsible for handling the params, and to call to the corresponding logger->process() once all modifications in params have been performed.
 
 on_scales_start ()
 Prepare the file manager for the files embedded in the scale description field.
 
 process_scale (array $data, array $raw)
 This is executed every time we have one <SCALE> data available.
 

Protected Attributes

moodle1_converter $converter
 
moodle1_file_manager $fileman = null
 instance used to convert question images
 

Detailed Description

Handles the conversion of the scales included in the moodle.xml file.

Member Function Documentation

◆ get_converter()

moodle1_handler::get_converter ( )
inherited
Return values
moodle1_converterthe converter that required this handler

◆ log()

moodle1_handler::log ( $message,
$level,
$a = null,
$depth = null,
$display = false )
inherited

This function will be responsible for handling the params, and to call to the corresponding logger->process() once all modifications in params have been performed.

Implements loggable.

◆ process_scale()

moodle1_scales_handler::process_scale ( array $data,
array $raw )

This is executed every time we have one <SCALE> data available.

Parameters
array$data
array$raw
Return values
array

The documentation for this class was generated from the following file: