Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 and 403]

(no description)

File Size: 2651 lines (94 kb)
Included or required: 3 times
Referenced: 0 times
Includes or requires: 2 files
 backup/cc/cc_lib/cc_utils.php
 backup/cc/cc_lib/cc_general.php

Defines 53 classes

cc_xml_namespace:: (0 methods):

cc_qti_metadata:: (0 methods):

cc_qti_profiletype:: (1 method):
  valid()

cc_qti_values:: (0 methods):

cc_qti_tags:: (0 methods):

cc_question_metadata_base:: (6 methods):
  set_setting()
  get_setting()
  set_setting_wns()
  enable_setting_yesno()
  generate_attributes()
  generate()

cc_question_metadata:: (5 methods):
  set_category()
  set_weighting()
  enable_scoringpermitted()
  enable_computerscored()
  __construct()

cc_assesment_metadata:: (7 methods):
  enable_hints()
  enable_solutions()
  enable_latesubmissions()
  enable_feedback()
  set_timelimit()
  set_maxattempts()
  __construct()

cc_assesment_mattext:: (8 methods):
  __construct()
  set_label()
  set_uri()
  set_width_height()
  set_coor()
  set_lang()
  set_content()
  generate()

cc_assesment_matref:: (2 methods):
  __construct()
  generate()

cc_assesment_response_matref:: (1 method):
  generate()

cc_assesment_matbreak:: (1 method):
  generate()

cc_assesment_material_base:: (6 methods):
  set_tag_value()
  set_mattext()
  set_matref()
  set_matbreak()
  set_lang()
  generate()

cc_assesment_altmaterial:: (1 method):
  __construct()

cc_assesment_material:: (4 methods):
  __construct()
  set_label()
  set_altmaterial()
  generate()

cc_assesment_rubric_base:: (2 methods):
  set_material()
  generate()

cc_assesment_presentation_material_base:: (2 methods):
  add_flow_mat()
  generate()

cc_assesment_flow_mat_base:: (7 methods):
  set_tag_value()
  set_flow_mat()
  set_material()
  set_material_ref()
  __construct()
  set_class()
  generate()

cc_assesment_section:: (6 methods):
  __construct()
  set_ident()
  set_title()
  set_lang()
  add_item()
  generate()

cc_assesment_itemmetadata:: (2 methods):
  add_metadata()
  generate()

cc_assesment_decvartype:: (4 methods):
  __construct()
  set_vartype()
  set_limits()
  generate()

cc_assignment_conditionvar_othertype:: (1 method):
  generate()

cc_assignment_conditionvar_varequaltype:: (4 methods):
  __construct()
  set_respident()
  enable_case()
  generate()

cc_assignment_conditionvar_varsubstringtype:: (1 method):
  __construct()

cc_assignment_conditionvar_andtype:: (3 methods):
  set_not()
  set_varequal()
  generate()

cc_assignment_conditionvar:: (5 methods):
  set_and()
  set_other()
  set_varequal()
  set_varsubstring()
  generate()

cc_assignment_displayfeedbacktype:: (4 methods):
  __construct()
  set_feedbacktype()
  set_linkrefid()
  generate()

cc_assignment_setvartype:: (3 methods):
  __construct()
  set_varname()
  generate()

cc_assesment_respconditiontype:: (7 methods):
  __construct()
  set_title()
  enable_continue()
  set_conditionvar()
  add_setvar()
  add_displayfeedback()
  generate()

cc_assesment_resprocessingtype:: (3 methods):
  set_decvar()
  add_respcondition()
  generate()

cc_assesment_itemfeedback_shintmaterial_base:: (3 methods):
  add_flow_mat()
  add_material()
  generate()

cc_assesment_itemfeedback_hintmaterial:: (1 method):
  __construct()

cc_assesment_itemfeedback_solutionmaterial:: (1 method):
  __construct()

cc_assesment_itemfeedback_shintype_base:: (2 methods):
  __construct()
  generate()

cc_assesment_itemfeedback_solutiontype:: (2 methods):
  __construct()
  add_solutionmaterial()

cc_assesment_itemfeedbac_hinttype:: (2 methods):
  __construct()
  add_hintmaterial()

cc_assesment_itemfeedbacktype:: (8 methods):
  __construct()
  set_ident()
  set_title()
  set_flow_mat()
  set_material()
  set_solution()
  set_hint()
  generate()

cc_assesment_section_item:: (5 methods):
  set_itemmetadata()
  set_presentation()
  add_resprocessing()
  add_itemfeedback()
  generate()

cc_assesment_render_choicetype:: (8 methods):
  __construct()
  add_material()
  add_material_ref()
  add_response_label()
  add_flow_label()
  enable_shuffle()
  set_limits()
  generate()

cc_assesment_flow_mattype:: (6 methods):
  __construct()
  set_class()
  set_material()
  set_material_ref()
  set_flow_mat()
  generate()

cc_assesment_response_labeltype:: (11 methods):
  __construct()
  set_ident()
  get_ident()
  set_labelrefid()
  enable_rshuffle()
  set_match_group()
  set_match_max()
  set_material()
  set_material_ref()
  set_flow_mat()
  generate()

cc_assesment_flow_labeltype:: (5 methods):
  __construct()
  set_class()
  set_flow_label()
  set_response_label()
  generate()

cc_assesment_render_fibtype:: (14 methods):
  __construct()
  set_encoding()
  set_charset()
  set_rows()
  set_columns()
  set_maxchars()
  set_limits()
  set_prompt()
  set_fibtype()
  set_material()
  set_material_ref()
  set_response_label()
  set_flow_label()
  generate()

cc_response_lidtype:: (10 methods):
  __construct()
  set_rcardinality()
  enable_rtiming()
  set_ident()
  get_ident()
  set_material_ref()
  set_material()
  set_render_choice()
  set_render_fib()
  generate()

cc_assesment_response_strtype:: (1 method):
  __construct()

cc_assesment_flowtype:: (8 methods):
  __construct()
  set_class()
  set_flow()
  set_material()
  set_material_ref()
  set_response_lid()
  set_response_str()
  generate()

cc_assesment_presentation:: (10 methods):
  __construct()
  set_label()
  set_lang()
  set_coor()
  set_size()
  set_flow()
  set_material()
  set_response_lid()
  set_response_str()
  generate()

assesment1_resurce_file:: (6 methods):
  set_metadata()
  set_rubric()
  set_presentation_material()
  set_section()
  set_title()
  on_save()

assesment11_resurce_file:: (0 methods):

cc_assesment_helper:: (7 methods):
  add_feedback()
  add_answer()
  add_response_condition()
  add_assesment_description()
  add_respcondition()
  process_questions()
  has_matching_element()

cc_assesment_question_proc_base:: (7 methods):
  __construct()
  on_generate_metadata()
  on_generate_presentation()
  on_generate_answers()
  on_generate_feedbacks()
  on_generate_response_processing()
  generate()

cc_assesment_question_multichoice:: (4 methods):
  __construct()
  on_generate_answers()
  on_generate_feedbacks()
  on_generate_response_processing()

cc_assesment_question_multichoice_multiresponse:: (4 methods):
  __construct()
  on_generate_answers()
  on_generate_feedbacks()
  on_generate_response_processing()


Class: cc_xml_namespace  - X-Ref


Class: cc_qti_metadata  - X-Ref

Class: cc_qti_profiletype  - X-Ref

valid($value)   X-Ref
validates a profile value

param: string $value
return: boolean

Class: cc_qti_values  - X-Ref

Class: cc_qti_tags  - X-Ref

Class: cc_question_metadata_base  - X-Ref

set_setting($setting, $value = null)   X-Ref

param: string $setting
param: mixed $value

get_setting($setting)   X-Ref

param: string $setting
return: mixed

set_setting_wns($setting, $namespace, $value = null)   X-Ref

param: string $setting
param: string $namespace
param: string $value

enable_setting_yesno($setting, $value = true)   X-Ref

param: string $setting
param: boolean $value

generate_attributes(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref

param: XMLGenericDocument $doc
param: DOMNode $item
param: string $namespace

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref

param: XMLGenericDocument $doc
param: DOMNode $item
param: string $namespace

Class: cc_question_metadata  - X-Ref

set_category($value)   X-Ref
No description

set_weighting($value)   X-Ref
No description

enable_scoringpermitted($value = true)   X-Ref
No description

enable_computerscored($value = true)   X-Ref
No description

__construct($profile)   X-Ref
Constructs metadata

param: string $profile

Class: cc_assesment_metadata  - X-Ref

enable_hints($value = true)   X-Ref
No description

enable_solutions($value = true)   X-Ref
No description

enable_latesubmissions($value = true)   X-Ref
No description

enable_feedback($value = true)   X-Ref
No description

set_timelimit($value)   X-Ref
No description

set_maxattempts($value)   X-Ref
No description

__construct()   X-Ref
No description

Class: cc_assesment_mattext  - X-Ref

__construct($value = null)   X-Ref
No description

set_label($value)   X-Ref
No description

set_uri($value)   X-Ref
No description

set_width_height($width = null, $height = null)   X-Ref
No description

set_coor($x = null, $y = null)   X-Ref
No description

set_lang($lang = null)   X-Ref
No description

set_content($content, $type = cc_qti_values::texttype, $charset = null)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_matref  - X-Ref

__construct($linkref)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_response_matref  - X-Ref

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_matbreak  - X-Ref

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_material_base  - X-Ref

set_tag_value($object)   X-Ref


set_mattext(cc_assesment_mattext $object)   X-Ref
No description

set_matref(cc_assesment_matref $object)   X-Ref
No description

set_matbreak(cc_assesment_matbreak $object)   X-Ref
No description

set_lang($value)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_altmaterial  - X-Ref

__construct($value = null)   X-Ref
No description

Class: cc_assesment_material  - X-Ref

__construct($value = null)   X-Ref
No description

set_label($value)   X-Ref
No description

set_altmaterial(cc_assesment_altmaterial $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_rubric_base  - X-Ref

set_material($object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_presentation_material_base  - X-Ref

add_flow_mat($object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_flow_mat_base  - X-Ref

set_tag_value($object)   X-Ref
No description

set_flow_mat(cc_assesment_flow_mat_base $object)   X-Ref
No description

set_material(cc_assesment_material $object)   X-Ref
No description

set_material_ref(cc_assesment_matref $object)   X-Ref
No description

__construct($value = null)   X-Ref
No description

set_class($value)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_section  - X-Ref

__construct()   X-Ref


set_ident($value)   X-Ref
No description

set_title($value)   X-Ref
No description

set_lang($value)   X-Ref
No description

add_item(cc_assesment_section_item $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_itemmetadata  - X-Ref

add_metadata($object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_decvartype  - X-Ref

__construct()   X-Ref
No description

set_vartype($value)   X-Ref
No description

set_limits($min = null, $max = null)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assignment_conditionvar_othertype  - X-Ref

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assignment_conditionvar_varequaltype  - X-Ref

__construct($value = null)   X-Ref
No description

set_respident($value)   X-Ref
No description

enable_case($value = true)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assignment_conditionvar_andtype  - X-Ref

set_not(cc_assignment_conditionvar_varequaltype $object)   X-Ref
No description

set_varequal(cc_assignment_conditionvar_varequaltype $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assignment_conditionvar  - X-Ref

set_and(cc_assignment_conditionvar_andtype $object)   X-Ref


set_other(cc_assignment_conditionvar_othertype $object)   X-Ref
No description

set_varequal(cc_assignment_conditionvar_varequaltype $object)   X-Ref
No description

set_varsubstring(cc_assignment_conditionvar_varsubstringtype $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assignment_displayfeedbacktype  - X-Ref

__construct()   X-Ref
No description

set_feedbacktype($value)   X-Ref
No description

set_linkrefid($value)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assignment_setvartype  - X-Ref

__construct($tagvalue = 100)   X-Ref


set_varname($value)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_respconditiontype  - X-Ref

__construct()   X-Ref


set_title($value)   X-Ref
No description

enable_continue($value = true)   X-Ref
No description

set_conditionvar(cc_assignment_conditionvar $object)   X-Ref
No description

add_setvar(cc_assignment_setvartype $object)   X-Ref
No description

add_displayfeedback(cc_assignment_displayfeedbacktype $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_resprocessingtype  - X-Ref

set_decvar(cc_assesment_decvartype $object)   X-Ref


add_respcondition(cc_assesment_respconditiontype $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_itemfeedback_shintmaterial_base  - X-Ref

add_flow_mat(cc_assesment_flow_mattype $object)   X-Ref

param: cc_assesment_flow_mattype $object

add_material(cc_assesment_material $object)   X-Ref

param: cc_assesment_material $object

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_itemfeedback_shintype_base  - X-Ref

__construct()   X-Ref


generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_itemfeedback_solutiontype  - X-Ref

__construct()   X-Ref
No description

add_solutionmaterial(cc_assesment_itemfeedback_solutionmaterial $object)   X-Ref

param: cc_assesment_itemfeedback_solutionmaterial $object

Class: cc_assesment_itemfeedbac_hinttype  - X-Ref

__construct()   X-Ref
No description

add_hintmaterial(cc_assesment_itemfeedback_hintmaterial $object)   X-Ref

param: cc_assesment_itemfeedback_hintmaterial $object

Class: cc_assesment_itemfeedbacktype  - X-Ref

__construct()   X-Ref


set_ident($value)   X-Ref

param: string $value

set_title($value)   X-Ref

param: string $value

set_flow_mat(cc_assesment_flow_mattype $object)   X-Ref

param: cc_assesment_flow_mattype $object

set_material(cc_assesment_material $object)   X-Ref

param: cc_assesment_material $object

set_solution(cc_assesment_itemfeedback_solutiontype $object)   X-Ref

param: cc_assesment_itemfeedback_solutiontype $object

set_hint($object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_section_item  - X-Ref

set_itemmetadata(cc_assesment_itemmetadata $object)   X-Ref


set_presentation(cc_assesment_presentation $object)   X-Ref
No description

add_resprocessing(cc_assesment_resprocessingtype $object)   X-Ref
No description

add_itemfeedback(cc_assesment_itemfeedbacktype $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_render_choicetype  - X-Ref

__construct()   X-Ref


add_material(cc_assesment_material $object)   X-Ref
No description

add_material_ref(cc_assesment_response_matref $object)   X-Ref
No description

add_response_label(cc_assesment_response_labeltype $object)   X-Ref
No description

add_flow_label($object)   X-Ref
No description

enable_shuffle($value = true)   X-Ref
No description

set_limits($min = null, $max = null)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_flow_mattype  - X-Ref

__construct()   X-Ref


set_class($value)   X-Ref
No description

set_material(cc_assesment_material $object)   X-Ref
No description

set_material_ref(cc_assesment_response_matref $object)   X-Ref
No description

set_flow_mat(cc_assesment_flow_mattype $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_response_labeltype  - X-Ref

__construct()   X-Ref


set_ident($value)   X-Ref
No description

get_ident()   X-Ref
No description

set_labelrefid($value)   X-Ref
No description

enable_rshuffle($value = true)   X-Ref
No description

set_match_group($value)   X-Ref
No description

set_match_max($value)   X-Ref
No description

set_material(cc_assesment_material $object)   X-Ref
No description

set_material_ref(cc_assesment_response_matref $object)   X-Ref
No description

set_flow_mat(cc_assesment_flow_mattype $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_flow_labeltype  - X-Ref

__construct()   X-Ref


set_class($value)   X-Ref
No description

set_flow_label(cc_assesment_flow_labeltype $object)   X-Ref
No description

set_response_label(cc_assesment_response_labeltype $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_render_fibtype  - X-Ref

__construct()   X-Ref
No description

set_encoding($value)   X-Ref
No description

set_charset($value)   X-Ref
No description

set_rows($value)   X-Ref
No description

set_columns($value)   X-Ref
No description

set_maxchars($value)   X-Ref
No description

set_limits($min = null, $max = null)   X-Ref
No description

set_prompt($value)   X-Ref
No description

set_fibtype($value)   X-Ref
No description

set_material(cc_assesment_material $object)   X-Ref
No description

set_material_ref(cc_assesment_response_matref $object)   X-Ref
No description

set_response_label(cc_assesment_response_labeltype $object)   X-Ref
No description

set_flow_label($object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_response_lidtype  - X-Ref

__construct()   X-Ref


set_rcardinality($value)   X-Ref
No description

enable_rtiming($value = true)   X-Ref
No description

set_ident($value)   X-Ref
No description

get_ident()   X-Ref
No description

set_material_ref(cc_assesment_response_matref $object)   X-Ref
No description

set_material(cc_assesment_material $object)   X-Ref
No description

set_render_choice(cc_assesment_render_choicetype $object)   X-Ref
No description

set_render_fib(cc_assesment_render_fibtype $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_response_strtype  - X-Ref

__construct()   X-Ref
No description

Class: cc_assesment_flowtype  - X-Ref

__construct()   X-Ref


set_class($value)   X-Ref
No description

set_flow(cc_assesment_flowtype $object)   X-Ref
No description

set_material(cc_assesment_material $object)   X-Ref
No description

set_material_ref(cc_assesment_response_matref $object)   X-Ref
No description

set_response_lid(cc_response_lidtype $object)   X-Ref
No description

set_response_str(cc_assesment_response_strtype $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: cc_assesment_presentation  - X-Ref

__construct()   X-Ref


set_label($value)   X-Ref
No description

set_lang($value)   X-Ref
No description

set_coor($x = null, $y = null)   X-Ref
No description

set_size($width = null, $height = null)   X-Ref
No description

set_flow(cc_assesment_flowtype $object)   X-Ref
No description

set_material(cc_assesment_material $object)   X-Ref
No description

set_response_lid(cc_response_lidtype $object)   X-Ref
No description

set_response_str(cc_assesment_response_strtype $object)   X-Ref
No description

generate(XMLGenericDocument &$doc, DOMNode &$item, $namespace)   X-Ref
No description

Class: assesment1_resurce_file  - X-Ref

set_metadata(cc_assesment_metadata $object)   X-Ref


set_rubric(cc_assesment_rubric_base $object)   X-Ref
No description

set_presentation_material(cc_assesment_presentation_material_base $object)   X-Ref
No description

set_section(cc_assesment_section $object)   X-Ref
No description

set_title($value)   X-Ref
No description

on_save()   X-Ref
No description

Class: cc_assesment_helper  - X-Ref

add_feedback($qitem, $content, $content_type, $ident)   X-Ref
No description

add_answer($qresponse_choice, $content, $content_type)   X-Ref
No description

add_response_condition($node, $title, $ident, $feedback_refid, $respident)   X-Ref
No description

add_assesment_description($rt, $content, $contenttype)   X-Ref
No description

add_respcondition($node, $title, $feedback_refid, $grade_value = null, $continue = false )   X-Ref
No description

process_questions(&$qdoc, &$manifest, cc_assesment_section &$section, $rootpath, $contextid, $outdir)   X-Ref
Enter description here ...

param: XMLGenericDocument $qdoc
param: unknown_type $manifest
param: cc_assesment_section $section
param: unknown_type $rootpath
param: unknown_type $contextid
param: unknown_type $outdir

has_matching_element(XMLGenericDocument $questions, $question_node)   X-Ref
Checks if question has matching element

param: XMLGenericDocument $questions
param: object $question_node
return: bool

Class: cc_assesment_question_proc_base  - X-Ref

__construct(XMLGenericDocument &$quiz, XMLGenericDocument &$questions, cc_manifest &$manifest, cc_assesment_section &$section, &$question_node, $rootpath, $contextid, $outdir)   X-Ref

param: XMLGenericDocument $questions
param: cc_manifest $manifest
param: cc_assesment_section $section
param: DOMElement $question_node
param: string $rootpath
param: string $contextid
param: string $outdir

on_generate_metadata()   X-Ref
No description

on_generate_presentation()   X-Ref
No description

on_generate_answers()   X-Ref
No description

on_generate_feedbacks()   X-Ref
No description

on_generate_response_processing()   X-Ref
No description

generate()   X-Ref
No description