Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | List of all members
cc2moodle Class Reference
Inheritance diagram for cc2moodle:
cc112moodle

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_xmlv1p0/learning-application-resource'
 
const CC_TYPE_EMPTY = ''
 
const CC_TYPE_FORUM = 'imsdt_xmlv1p0'
 
const CC_TYPE_QUESTION_BANK = 'imsqti_xmlv1p2/imscc_xmlv1p0/question-bank'
 
const CC_TYPE_QUIZ = 'imsqti_xmlv1p2/imscc_xmlv1p0/assessment'
 
const CC_TYPE_WEBCONTENT = 'webcontent'
 
const CC_TYPE_WEBLINK = 'imswl_xmlv1p0'
 

Static Public Attributes

static $forumns = array('dt' => 'http://www.imsglobal.org/xsd/imsdt_v1p0')
 
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/imswl_v1p0')
 
static $restypes = array('associatedcontent/imscc_xmlv1p0/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)
 Is activity visible or not. More...
 
 get_sections_numbers ($instances)
 

Static Protected Member Functions

static critical_error ($text)
 

Member Function Documentation

◆ get_module_visible()

cc2moodle::get_module_visible (   $identifier)
protected

Is activity visible or not.

Parameters
string$identifier
Return values
number

Reimplemented in cc112moodle.

◆ getforumns()

static cc2moodle::getforumns ( )
static
Return values
array

◆ getquizns()

static cc2moodle::getquizns ( )
static
Return values
array

◆ getresourcens()

static cc2moodle::getresourcens ( )
static
Return values
array

Member Data Documentation

◆ $namespaces

cc2moodle::$namespaces
static
Initial value:
= array('imscc' => 'http://www.imsglobal.org/xsd/imscc/imscp_v1p1',
'lomimscc' => 'http://ltsc.ieee.org/xsd/imscc/LOM',
'lom' => 'http://ltsc.ieee.org/xsd/LOM',
'voc' => 'http://ltsc.ieee.org/xsd/LOM/vocab',
'xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
'cc' => 'http://www.imsglobal.org/xsd/imsccauth_v1p0')

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