Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
cc_question_metadata Class Reference
Inheritance diagram for cc_question_metadata:
cc_question_metadata_base

Public Member Functions

 __construct ($profile)
 Constructs metadata.
 
 enable_computerscored ($value=true)
 
 enable_scoringpermitted ($value=true)
 
 generate (XMLGenericDocument &$doc, DOMNode &$item, $namespace)
 
 generate_attributes (XMLGenericDocument &$doc, DOMNode &$item, $namespace)
 
 set_category ($value)
 
 set_weighting ($value)
 

Protected Member Functions

 enable_setting_yesno ($setting, $value=true)
 
 get_setting ($setting)
 
 set_setting ($setting, $value=null)
 
 set_setting_wns ($setting, $namespace, $value=null)
 

Protected Attributes

array $metadata = array()
 

Constructor & Destructor Documentation

◆ __construct()

cc_question_metadata::__construct ( $profile)

Constructs metadata.

Parameters
string$profile
Exceptions
InvalidArgumentException

Member Function Documentation

◆ enable_setting_yesno()

cc_question_metadata_base::enable_setting_yesno ( $setting,
$value = true )
protectedinherited
Parameters
string$setting
boolean$value

◆ generate()

◆ generate_attributes()

cc_question_metadata_base::generate_attributes ( XMLGenericDocument & $doc,
DOMNode & $item,
$namespace )
inherited
Parameters
XMLGenericDocument$doc
DOMNode$item
string$namespace

◆ get_setting()

cc_question_metadata_base::get_setting ( $setting)
protectedinherited
Parameters
string$setting
Return values
mixed

◆ set_setting()

cc_question_metadata_base::set_setting ( $setting,
$value = null )
protectedinherited
Parameters
string$setting
mixed$value

◆ set_setting_wns()

cc_question_metadata_base::set_setting_wns ( $setting,
$namespace,
$value = null )
protectedinherited
Parameters
string$setting
string$namespace
string$value

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