Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Class: cc_manifest  - X-Ref

Manifest Class

__construct($ccver = cc_version::v1, $activemanifest=null,$parentmanifest=null, $parentparentmanifest=null)   X-Ref
No description

register_namespaces_for_xpath()   X-Ref
Register Namespace for use XPATH


fill_manifest()   X-Ref
TODO - implement this method - critical
Enter description here ...


add_metadata_manifest(cc_i_metadata_manifest $met)   X-Ref
Add Metadata For Manifest

param: cc_i_metadata_manifest $met

add_metadata_resource(cc_i_metadata_resource $met, $identifier)   X-Ref
Add Metadata For Resource

param: cc_i_metadata_resource $met
param: string $identifier

add_metadata_file(cc_i_metadata_file $met, $identifier, $filename)   X-Ref
Add Metadata For File

param: cc_i_metadata_file $met
param: string $identifier
param: string $filename

on_create()   X-Ref
No description

get_relative_base_path()   X-Ref
No description

parent_manifest()   X-Ref
No description

root_manifest()   X-Ref
No description

manifestID()   X-Ref
No description

get_manifest_namespaces()   X-Ref
No description

add_new_organization(cc_i_organization &$org)   X-Ref
Add a new organization

param: cc_i_organization $org

get_resources($searchspecific='')   X-Ref
No description

get_cc_namespace_path($nsname)   X-Ref
No description

get_resource_list($searchspecific = '')   X-Ref
No description

on_load()   X-Ref
No description

on_save()   X-Ref
No description

add_resource(cc_i_resource $res, $identifier = null, $type = 'webcontent')   X-Ref
Add a resource to the manifest

param: cc_i_resource $res
param: string $identifier
param: string $type
return: array

check_if_exist_in_other($name, $identifier)   X-Ref
No description

replace_file_x_dependency($depen, $name)   X-Ref
No description

get_identifier_by_filename($name)   X-Ref
No description

array_remove_by_value($arr, $value)   X-Ref
No description

array_remove_by_key($arr, $key)   X-Ref
No description

update_instructoronly($identifier, $value = false)   X-Ref
No description

put_nodes()   X-Ref
Append the resources nodes in the Manifest

return: DOMNode