Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.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