Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
cc_version1 Class Reference

Version 1 class of Common Cartridge. More...

Inheritance diagram for cc_version1:
cc_version_base cc_version11

Public Member Functions

 create_manifest (DOMDocument &$doc, $rootmanifestnode=null)
 
 create_metadata_educational ($met, DOMDocument &$doc, $xmlnode)
 Create Education Metadata (How To) More...
 
 create_metadata_file_node (&$met, DOMDocument &$doc, $xmlnode=null)
 
 create_metadata_node (&$met, DOMDocument &$doc, $xmlnode=null)
 
 create_metadata_resource_node (&$met, DOMDocument &$doc, $xmlnode=null)
 
 create_organization_node (cc_i_organization &$org, DOMDocument &$doc, $xmlnode=null)
 
 create_resource_node (cc_i_resource &$res, DOMDocument &$doc, $xmlnode=null)
 
 get_base ()
 
 get_cc_namespaces ()
 
 import_organization_items (DOMElement &$node, cc_i_manifest &$doc)
 
 import_resources (DOMElement &$node, cc_i_manifest &$doc)
 
 manifestID ()
 
 set_base ($baseval)
 
 set_generator ($value)
 
 set_manifestID ($id)
 
 valid ($type)
 Validate if the type are valid or not. More...
 

Public Attributes

 $camversion = null
 
 $ccversion = null
 
 $organizations = null
 
 $resources = null
 
 $resources_ind = null
 
const assessment = 'imsqti_xmlv1p2/imscc_xmlv1p0/assessment'
 
const associatedcontent = 'associatedcontent/imscc_xmlv1p0/learning-application-resource'
 
const discussiontopic = 'imsdt_xmlv1p0'
 
const questionbank = 'imsqti_xmlv1p2/imscc_xmlv1p0/question-bank'
 
const webcontent = 'webcontent'
 
const weblink = 'imswl_xmlv1p0'
 

Static Public Attributes

static $checker
 

Protected Member Functions

 create_item_folder (cc_i_organization &$org, DOMDocument &$doc, DOMElement &$xmlnode=null)
 Create an Item Folder (How To) More...
 
 create_metadata_file (cc_i_metadata_file $met, DOMDocument &$doc, $xmlnode=null)
 Create Metadata For File (How To) More...
 
 create_metadata_general ($met, DOMDocument &$doc, $xmlnode)
 Create General Metadata (How To) More...
 
 create_metadata_lifecycle ($met, DOMDocument &$doc, $xmlnode)
 Create Lifecycle Metadata (How To) More...
 
 create_metadata_manifest (cc_i_metadata_manifest $met, DOMDocument &$doc, $xmlnode=null)
 Create Metadata For Manifest (How To) More...
 
 create_metadata_resource (cc_i_metadata_resource $met, DOMDocument &$doc, $xmlnode=null)
 Create Metadata For Resource (How To) More...
 
 create_metadata_rights ($met, DOMDocument &$doc, $xmlnode)
 Create Rights Metadata (How To) More...
 
 create_metadata_technical ($met, DOMDocument &$doc, $xmlnode)
 Create Technical Metadata (How To) More...
 
 create_organization (cc_i_organization &$org, DOMDocument &$doc, $xmlnode=null)
 Create an Organization (How To) More...
 
 create_resource (cc_i_resource &$res, DOMDocument &$doc, $xmlnode=null)
 Create a Resource (How to) More...
 
 get_child_node (DOMDocument &$doc, $itemname, DOMElement &$node)
 
 on_create (DOMDocument &$doc, $rootmanifestnode=null, $nmanifestID=null)
 
 update_attribute (DOMDocument &$doc, $attrname, $attrvalue, DOMElement &$node)
 
 update_attribute_ns (DOMDocument &$doc, $attrname, $attrnamespace, $attrvalue, DOMElement &$node)
 
 update_child_item (DOMDocument &$doc, $itemname, $itemvalue, DOMElement &$node, $attrtostore=null)
 
 update_items ($items, DOMDocument &$doc, DOMElement &$xmlnode)
 

Protected Attributes

 $_generator = null
 
 $base = null
 
 $ccnamespaces = array()
 
 $isrootmanifest = false
 
 $manifestID = null
 
 $metadata = null
 
 $organizationid = null
 

Detailed Description

Version 1 class of Common Cartridge.

Member Function Documentation

◆ create_item_folder()

cc_version1::create_item_folder ( cc_i_organization $org,
DOMDocument &  $doc,
DOMElement &  $xmlnode = null 
)
protected

Create an Item Folder (How To)

Parameters
cc_i_organization$org
DOMDocument$doc
DOMElement$xmlnode

◆ create_metadata_educational()

cc_version1::create_metadata_educational (   $met,
DOMDocument &  $doc,
  $xmlnode 
)

Create Education Metadata (How To)

Parameters
object$met
DOMDocument$doc
object$xmlnode
Return values
DOMNode

Reimplemented in cc_version11.

◆ create_metadata_file()

cc_version1::create_metadata_file ( cc_i_metadata_file  $met,
DOMDocument &  $doc,
  $xmlnode = null 
)
protected

Create Metadata For File (How To)

Parameters
cc_i_metadata_file$met
DOMDocument$doc
Object$xmlnode
Return values
DOMNode

Reimplemented from cc_version_base.

◆ create_metadata_general()

cc_version1::create_metadata_general (   $met,
DOMDocument &  $doc,
  $xmlnode 
)
protected

Create General Metadata (How To)

Parameters
object$met
DOMDocument$doc
object$xmlnode
Return values
DOMNode

◆ create_metadata_lifecycle()

cc_version1::create_metadata_lifecycle (   $met,
DOMDocument &  $doc,
  $xmlnode 
)
protected

Create Lifecycle Metadata (How To)

Parameters
object$met
DOMDocument$doc
object$xmlnode
Return values
DOMNode

◆ create_metadata_manifest()

cc_version1::create_metadata_manifest ( cc_i_metadata_manifest  $met,
DOMDocument &  $doc,
  $xmlnode = null 
)
protected

Create Metadata For Manifest (How To)

Parameters
cc_i_metadata_manifest$met
DOMDocument$doc
object$xmlnode
Return values
DOMNode

Reimplemented from cc_version_base.

◆ create_metadata_resource()

cc_version1::create_metadata_resource ( cc_i_metadata_resource  $met,
DOMDocument &  $doc,
  $xmlnode = null 
)
protected

Create Metadata For Resource (How To)

Parameters
cc_i_metadata_resource$met
DOMDocument$doc
object$xmlnode
Return values
DOMNode

Reimplemented from cc_version_base.

◆ create_metadata_rights()

cc_version1::create_metadata_rights (   $met,
DOMDocument &  $doc,
  $xmlnode 
)
protected

Create Rights Metadata (How To)

Parameters
object$met
DOMDocument$doc
object$xmlnode
Return values
DOMNode

◆ create_metadata_technical()

cc_version1::create_metadata_technical (   $met,
DOMDocument &  $doc,
  $xmlnode 
)
protected

Create Technical Metadata (How To)

Parameters
object$met
DOMDocument$doc
object$xmlnode
Return values
DOMNode

◆ create_organization()

cc_version1::create_organization ( cc_i_organization $org,
DOMDocument &  $doc,
  $xmlnode = null 
)
protected

Create an Organization (How To)

Parameters
cc_i_organization$org
DOMDocument$doc
object$xmlnode
Return values
DOMNode

Reimplemented from cc_version_base.

◆ create_resource()

cc_version1::create_resource ( cc_i_resource $res,
DOMDocument &  $doc,
  $xmlnode = null 
)
protected

Create a Resource (How to)

Parameters
cc_i_resource$res
DOMDocument$doc
object$xmlnode
Return values
DOMNode

Reimplemented from cc_version_base.

◆ valid()

cc_version1::valid (   $type)

Validate if the type are valid or not.

Parameters
string$type
Return values
bool

Reimplemented in cc_version11.

Member Data Documentation

◆ $checker

cc_version1::$checker
static
Initial value:
= array(self::webcontent,
self::assessment,
self::associatedcontent,
self::discussiontopic,
self::questionbank,
self::weblink)

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