Moodle  2.2.1
http://www.collinsharper.com
cc2moodle Class Reference
Inheritance diagram for cc2moodle:

Public Member Functions

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

Static Public Member Functions

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

Data Fields

const CC_TYPE_FORUM = 'imsdt_xmlv1p0'
const CC_TYPE_QUIZ = 'imsqti_xmlv1p2/imscc_xmlv1p0/assessment'
const CC_TYPE_QUESTION_BANK = 'imsqti_xmlv1p2/imscc_xmlv1p0/question-bank'
const CC_TYPE_WEBLINK = 'imswl_xmlv1p0'
const CC_TYPE_WEBCONTENT = 'webcontent'
const CC_TYPE_ASSOCIATED_CONTENT = 'associatedcontent/imscc_xmlv1p0/learning-application-resource'
const CC_TYPE_EMPTY = ''

Static Public Attributes

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

Protected Member Functions

 get_metadata ($section, $key)
 get_sections_numbers ($instances)
 create_node_course_header ()
 create_node_question_categories ()
 create_node_course_modules_mod ()
 create_node_course_sections_section ()
 create_node_course_blocks_block ()
 get_module_visible ($identifier)
 create_node_course_sections_section_mods_mod ($root_parent)
 create_code_info_details_mod ()
 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_instances ($items, $level=0, &$array_index=0, $index_root=0)
 critical_error ($text)
 create_course_code ($title)

Detailed Description

Definition at line 31 of file cc2moodle.php.


Constructor & Destructor Documentation

__construct ( path_to_manifest)

Reimplemented in cc112moodle.

Definition at line 100 of file cc2moodle.php.


Member Function Documentation

convert_to_moodle_type ( cc_type)

Reimplemented in cc112moodle.

Definition at line 692 of file cc2moodle.php.

count_instances ( type)

Definition at line 671 of file cc2moodle.php.

Reimplemented in cc112moodle.

Definition at line 526 of file cc2moodle.php.

create_course_code ( title) [protected]

Definition at line 809 of file cc2moodle.php.

create_instances ( items,
level = 0,
&$  array_index = 0,
index_root = 0 
) [protected]

Definition at line 604 of file cc2moodle.php.

create_mod_info_details_mod ( mod_type,
node_info_details_mod_instances_instance 
) [protected]

Definition at line 566 of file cc2moodle.php.

create_mod_info_details_mod_instances_instance ( sheet,
instances_quantity,
instances 
) [protected]

Definition at line 576 of file cc2moodle.php.

Here is the call graph for this function:

Definition at line 361 of file cc2moodle.php.

create_node_course_header ( ) [protected]

Definition at line 234 of file cc2moodle.php.

Here is the call graph for this function:

Reimplemented in cc112moodle.

Definition at line 282 of file cc2moodle.php.

Definition at line 309 of file cc2moodle.php.

create_node_course_sections_section_mods_mod ( root_parent) [protected]

Definition at line 453 of file cc2moodle.php.

Reimplemented in cc112moodle.

Definition at line 271 of file cc2moodle.php.

critical_error ( text) [protected]

Definition at line 784 of file cc2moodle.php.

Reimplemented in cc112moodle.

Definition at line 140 of file cc2moodle.php.

Here is the call graph for this function:

get_item_cc_type ( identifier)

Definition at line 726 of file cc2moodle.php.

static get_manifest ( folder) [static]

Definition at line 69 of file cc2moodle.php.

Here is the caller graph for this function:

get_metadata ( section,
key 
) [protected]

Definition at line 130 of file cc2moodle.php.

get_module_visible ( identifier) [protected]

Is activity visible or not

Parameters:
string$identifier
Returns:
number

Reimplemented in cc112moodle.

Definition at line 435 of file cc2moodle.php.

get_nodes_by_criteria ( key,
value 
)

Definition at line 510 of file cc2moodle.php.

get_sections_numbers ( instances) [protected]

Definition at line 219 of file cc2moodle.php.

static getforumns ( ) [static]
Returns:
array

Definition at line 57 of file cc2moodle.php.

Here is the caller graph for this function:

static getquizns ( ) [static]
Returns:
array

Definition at line 49 of file cc2moodle.php.

static getresourcens ( ) [static]
Returns:
array

Definition at line 65 of file cc2moodle.php.

is_auth ( )

Definition at line 115 of file cc2moodle.php.

static loadsheet ( file) [static]

Definition at line 754 of file cc2moodle.php.

Here is the caller graph for this function:

static log_action ( text,
critical_error = false 
) [static]

Definition at line 773 of file cc2moodle.php.

Here is the caller graph for this function:

static log_file ( ) [static]

Definition at line 769 of file cc2moodle.php.

static newx_path ( DOMDocument $  manifest,
namespaces = '' 
) [static]

Definition at line 739 of file cc2moodle.php.

Here is the caller graph for this function:


Field Documentation

$forumns = array('dt' => 'http://www.imsglobal.org/xsd/imsdt_v1p0') [static]

Reimplemented in cc112moodle.

Definition at line 42 of file cc2moodle.php.

$instances = array() [static]

Definition at line 89 of file cc2moodle.php.

$manifest [static]

Definition at line 90 of file cc2moodle.php.

$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')

Reimplemented in cc112moodle.

Definition at line 93 of file cc2moodle.php.

$path_to_manifest_folder [static]

Definition at line 91 of file cc2moodle.php.

$quizns = array('xmlns' => 'http://www.imsglobal.org/xsd/ims_qtiasiv1p2') [static]

Reimplemented in cc112moodle.

Definition at line 43 of file cc2moodle.php.

$resourcens = array('wl' => 'http://www.imsglobal.org/xsd/imswl_v1p0') [static]

Reimplemented in cc112moodle.

Definition at line 44 of file cc2moodle.php.

$restypes = array('associatedcontent/imscc_xmlv1p0/learning-application-resource', 'webcontent') [static]

Reimplemented in cc112moodle.

Definition at line 41 of file cc2moodle.php.

const CC_TYPE_ASSOCIATED_CONTENT = 'associatedcontent/imscc_xmlv1p0/learning-application-resource'

Reimplemented in cc112moodle.

Definition at line 38 of file cc2moodle.php.

const CC_TYPE_EMPTY = ''

Definition at line 39 of file cc2moodle.php.

const CC_TYPE_FORUM = 'imsdt_xmlv1p0'

Reimplemented in cc112moodle.

Definition at line 33 of file cc2moodle.php.

const CC_TYPE_QUESTION_BANK = 'imsqti_xmlv1p2/imscc_xmlv1p0/question-bank'

Reimplemented in cc112moodle.

Definition at line 35 of file cc2moodle.php.

const CC_TYPE_QUIZ = 'imsqti_xmlv1p2/imscc_xmlv1p0/assessment'

Reimplemented in cc112moodle.

Definition at line 34 of file cc2moodle.php.

const CC_TYPE_WEBCONTENT = 'webcontent'

Definition at line 37 of file cc2moodle.php.

const CC_TYPE_WEBLINK = 'imswl_xmlv1p0'

Reimplemented in cc112moodle.

Definition at line 36 of file cc2moodle.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations