Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | List of all members
cc_manifest Class Reference

Manifest Class. More...

Inheritance diagram for cc_manifest:
cc_i_manifest

Public Member Functions

 __construct ($ccver=cc_version::v1, $activemanifest=null, $parentmanifest=null, $parentparentmanifest=null)
 
 add_metadata_file (cc_i_metadata_file $met, $identifier, $filename)
 Add Metadata For File. More...
 
 add_metadata_manifest (cc_i_metadata_manifest $met)
 Add Metadata For Manifest. More...
 
 add_metadata_resource (cc_i_metadata_resource $met, $identifier)
 Add Metadata For Resource. More...
 
 add_new_organization (cc_i_organization &$org)
 Add a new organization. More...
 
 add_resource (cc_i_resource $res, $identifier=null, $type='webcontent')
 Add a resource to the manifest. More...
 
 get_cc_namespace_path ($nsname)
 
 get_manifest_namespaces ()
 
 get_relative_base_path ()
 
 get_resource_list ($searchspecific='')
 
 get_resource_list ()
 
 get_resources ($searchspecific='')
 
 get_resources ()
 
 manifestID ()
 
 on_create ()
 
 on_load ()
 
 on_save ()
 
 parent_manifest ()
 
 put_nodes ()
 Append the resources nodes in the Manifest. More...
 
 register_namespaces_for_xpath ()
 Register Namespace for use XPATH.
 
 root_manifest ()
 
 update_instructoronly ($identifier, $value=false)
 

Detailed Description

Manifest Class.

Member Function Documentation

◆ add_metadata_file()

cc_manifest::add_metadata_file ( cc_i_metadata_file  $met,
  $identifier,
  $filename 
)

Add Metadata For File.

Parameters
cc_i_metadata_file$met
string$identifier
string$filename

Implements cc_i_manifest.

◆ add_metadata_manifest()

cc_manifest::add_metadata_manifest ( cc_i_metadata_manifest  $met)

Add Metadata For Manifest.

Parameters
cc_i_metadata_manifest$met

Implements cc_i_manifest.

◆ add_metadata_resource()

cc_manifest::add_metadata_resource ( cc_i_metadata_resource  $met,
  $identifier 
)

Add Metadata For Resource.

Parameters
cc_i_metadata_resource$met
string$identifier

Implements cc_i_manifest.

◆ add_new_organization()

cc_manifest::add_new_organization ( cc_i_organization $org)

Add a new organization.

Parameters
cc_i_organization$org

Implements cc_i_manifest.

◆ add_resource()

cc_manifest::add_resource ( cc_i_resource  $res,
  $identifier = null,
  $type = 'webcontent' 
)

Add a resource to the manifest.

Parameters
cc_i_resource$res
string$identifier
string$type
Return values
array

Implements cc_i_manifest.

◆ put_nodes()

cc_manifest::put_nodes ( )

Append the resources nodes in the Manifest.

Return values
DOMNode

Implements cc_i_manifest.


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