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

Public Member Functions

 __construct ($path_to_manifest)
 
 convert_to_moodle_type ($cc_type)
 
 count_instances ($type)
 
 generate_moodle_xml ()
 
 get_item_cc_type ($identifier)
 
 get_nodes_by_criteria ($key, $value)
 
 is_auth ()
 

Static Public Member Functions

static get_manifest ($folder)
 
static getforumns ()
 
static getquizns ()
 
static getresourcens ()
 
static loadsheet ($file)
 
static log_action ($text, $critical_error=false)
 
static log_file ()
 
static newx_path (DOMDocument $manifest, $namespaces='')
 

Public Attributes

const CC_TYPE_ASSOCIATED_CONTENT = 'associatedcontent/imscc_xmlv1p1/learning-application-resource'
 
const CC_TYPE_BASICLTI = 'imsbasiclti_xmlv1p0'
 
const CC_TYPE_EMPTY = ''
 
const CC_TYPE_FORUM = 'imsdt_xmlv1p1'
 
const CC_TYPE_QUESTION_BANK = 'imsqti_xmlv1p2/imscc_xmlv1p1/question-bank'
 
const CC_TYPE_QUIZ = 'imsqti_xmlv1p2/imscc_xmlv1p1/assessment'
 
const CC_TYPE_WEBCONTENT = 'webcontent'
 
const CC_TYPE_WEBLINK = 'imswl_xmlv1p1'
 

Static Public Attributes

static $basicltins
 
static $forumns = array('dt' => 'http://www.imsglobal.org/xsd/imsccv1p1/imsdt_v1p1')
 
static $instances = array()
 
static $manifest
 
static $namespaces
 
static $path_to_manifest_folder
 
static $quizns = array('xmlns' => 'http://www.imsglobal.org/xsd/ims_qtiasiv1p2')
 
static $resourcens = array('wl' => 'http://www.imsglobal.org/xsd/imsccv1p1/imswl_v1p1')
 
static $restypes = array('associatedcontent/imscc_xmlv1p1/learning-application-resource', 'webcontent')
 

Protected Member Functions

 create_code_info_details_mod ()
 
 create_course_code ($title)
 
 create_instances ($items, $level=0, &$array_index=0, $index_root=0)
 
 create_mod_info_details_mod ($mod_type, $node_info_details_mod_instances_instance)
 
 create_mod_info_details_mod_instances_instance ($sheet, $instances_quantity, $instances)
 
 create_node_course_blocks_block ()
 
 create_node_course_header ()
 
 create_node_course_modules_mod ()
 
 create_node_course_sections_section ()
 
 create_node_course_sections_section_mods_mod ($root_parent)
 
 create_node_question_categories ()
 
 get_metadata ($section, $key)
 
 get_module_visible ($identifier)
 (non-PHPdoc)
 
 get_sections_numbers ($instances)
 

Static Protected Member Functions

static critical_error ($text)
 

Constructor & Destructor Documentation

◆ __construct()

cc112moodle::__construct ( $path_to_manifest)

Reimplemented from cc2moodle.

Member Function Documentation

◆ convert_to_moodle_type()

cc112moodle::convert_to_moodle_type ( $cc_type)

Reimplemented from cc2moodle.

◆ create_code_info_details_mod()

cc112moodle::create_code_info_details_mod ( )
protected

Reimplemented from cc2moodle.

◆ create_node_course_modules_mod()

cc112moodle::create_node_course_modules_mod ( )
protected

Reimplemented from cc2moodle.

◆ create_node_question_categories()

cc112moodle::create_node_question_categories ( )
protected

Reimplemented from cc2moodle.

◆ generate_moodle_xml()

cc112moodle::generate_moodle_xml ( )

Reimplemented from cc2moodle.

◆ get_module_visible()

cc112moodle::get_module_visible ( $identifier)
protected

(non-PHPdoc)

See also
cc2moodle\get_module_visible()

Reimplemented from cc2moodle.

◆ getforumns()

static cc2moodle::getforumns ( )
staticinherited
Return values
array

◆ getquizns()

static cc2moodle::getquizns ( )
staticinherited
Return values
array

◆ getresourcens()

static cc2moodle::getresourcens ( )
staticinherited
Return values
array

Member Data Documentation

◆ $basicltins

cc112moodle::$basicltins
static
Initial value:
= array(
'xmlns' => 'http://www.imsglobal.org/xsd/imslticc_v1p0',
'blti' => 'http://www.imsglobal.org/xsd/imsbasiclti_v1p0',
'lticm' => 'http://www.imsglobal.org/xsd/imslticm_v1p0',
'lticp' => 'http://www.imsglobal.org/xsd/imslticp_v1p0'
)

◆ $namespaces

cc112moodle::$namespaces
static
Initial value:
= array('imscc' => 'http://www.imsglobal.org/xsd/imsccv1p1/imscp_v1p1',
'lomimscc' => 'http://ltsc.ieee.org/xsd/imsccv1p1/LOM/manifest',
'lom' => 'http://ltsc.ieee.org/xsd/imsccv1p1/LOM/resource',
'xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
'cc' => 'http://www.imsglobal.org/xsd/imsccv1p1/imsccauth_v1p1')

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