Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

(no description)

Copyright: 2011 Darko Miletic <dmiletic@moodlerooms.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 521 lines (21 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 3 files
 backup/cc/cc_lib/cc_organization.php
 backup/cc/cc_lib/cc_version_base.php
 backup/cc/cc_lib/cc_utils.php

Defines 1 class


Class: cc_version1  - X-Ref

Version 1 class of Common Cartridge

valid($type)   X-Ref
Validate if the type are valid or not

param: string $type
return: bool

__construct()   X-Ref
No description

on_create(DOMDocument &$doc, $rootmanifestnode = null, $nmanifestID = null)   X-Ref
No description

update_attribute(DOMDocument &$doc, $attrname, $attrvalue, DOMElement &$node)   X-Ref
No description

update_attribute_ns(DOMDocument &$doc, $attrname, $attrnamespace,$attrvalue, DOMElement &$node)   X-Ref
No description

get_child_node(DOMDocument &$doc, $itemname, DOMElement &$node)   X-Ref
No description

update_child_item(DOMDocument &$doc, $itemname, $itemvalue, DOMElement &$node, $attrtostore=null)   X-Ref
No description

update_items($items, DOMDocument &$doc, DOMElement &$xmlnode)   X-Ref
No description

create_resource(cc_i_resource &$res, DOMDocument &$doc, $xmlnode=null)   X-Ref
Create a Resource (How to)

param: cc_i_resource $res
param: DOMDocument $doc
param: object $xmlnode
return: DOMNode

create_item_folder(cc_i_organization &$org, DOMDocument &$doc, DOMElement &$xmlnode = null)   X-Ref
Create an Item Folder (How To)

param: cc_i_organization $org
param: DOMDocument $doc
param: DOMElement $xmlnode

create_organization(cc_i_organization &$org, DOMDocument &$doc, $xmlnode = null)   X-Ref
Create an Organization (How To)

param: cc_i_organization $org
param: DOMDocument $doc
param: object $xmlnode
return: DOMNode

create_metadata_manifest(cc_i_metadata_manifest $met, DOMDocument &$doc, $xmlnode = null)   X-Ref
Create Metadata For Manifest (How To)

param: cc_i_metadata_manifest $met
param: DOMDocument $doc
param: object $xmlnode
return: DOMNode

create_metadata_resource(cc_i_metadata_resource $met, DOMDocument &$doc, $xmlnode = null)   X-Ref
Create Metadata For Resource (How To)

param: cc_i_metadata_resource $met
param: DOMDocument $doc
param: object $xmlnode
return: DOMNode

create_metadata_file(cc_i_metadata_file $met, DOMDocument &$doc, $xmlnode = null)   X-Ref
Create Metadata For File (How To)

param: cc_i_metadata_file $met
param: DOMDocument $doc
param: Object $xmlnode
return: DOMNode

create_metadata_general($met, DOMDocument &$doc, $xmlnode)   X-Ref
Create General Metadata (How To)

param: object $met
param: DOMDocument $doc
param: object $xmlnode
return: DOMNode

create_metadata_technical($met, DOMDocument &$doc, $xmlnode)   X-Ref
Create Technical Metadata (How To)

param: object $met
param: DOMDocument $doc
param: object $xmlnode
return: DOMNode

create_metadata_rights($met, DOMDocument &$doc, $xmlnode)   X-Ref
Create Rights Metadata (How To)

param: object $met
param: DOMDocument $doc
param: object $xmlnode
return: DOMNode

create_metadata_lifecycle($met, DOMDocument &$doc, $xmlnode)   X-Ref
Create Lifecycle Metadata (How To)

param: object $met
param: DOMDocument $doc
param: object $xmlnode
return: DOMNode

create_metadata_educational($met, DOMDocument &$doc, $xmlnode)   X-Ref
Create Education Metadata (How To)

param: object $met
param: DOMDocument $doc
param: object $xmlnode
return: DOMNode