|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($manifest, $file, $folder='', $throwonerror=true) | |
| add_resource ($fname, $location='') | |
| import_resource (DOMElement &$node, cc_i_manifest &$doc) | |
| get_attr_value (&$nod, $name, $ns=null) | |
| process_resource ($manifestroot, &$fname, $folder) | |
| adjust_path ($mroot, $fname) | |
| init_clean () | |
| init_empty_new () | |
| get_manifestroot () | |
| generate_node () | |
Data Fields | |
| $identifier = null | |
| $type = null | |
| $dependency = array() | |
| $identifierref = null | |
| $href = null | |
| $base = null | |
| $persiststate = null | |
| $filename = null | |
| $files = array() | |
| $isempty = null | |
| $manifestroot = null | |
| $folder = null | |
Resource Class
Definition at line 83 of file cc_resources.php.
| __construct | ( | $ | manifest, |
| $ | file, | ||
| $ | folder = '', |
||
| $ | throwonerror = true |
||
| ) |
| add_resource | ( | $ | fname, |
| $ | location = '' |
||
| ) |
Add resource
| string | $fname | |
| string | $location |
Implements cc_i_resource.
Definition at line 117 of file cc_resources.php.

| adjust_path | ( | $ | mroot, |
| $ | fname | ||
| ) |
| generate_node | ( | ) |
| get_attr_value | ( | &$ | nod, |
| $ | name, | ||
| $ | ns = null |
||
| ) |
Get a attribute value
| DOMElement | $nod | |
| string | $name | |
| string | $ns |
Implements cc_i_resource.
Definition at line 166 of file cc_resources.php.

| get_manifestroot | ( | ) |
Definition at line 234 of file cc_resources.php.
| import_resource | ( | DOMElement &$ | node, |
| cc_i_manifest &$ | doc | ||
| ) |
Import a resource
| DOMElement | $node | |
| cc_i_manifest | $doc |
Implements cc_i_resource.
Definition at line 129 of file cc_resources.php.


| init_clean | ( | ) |
Definition at line 209 of file cc_resources.php.
| init_empty_new | ( | ) |
Definition at line 224 of file cc_resources.php.


| process_resource | ( | $ | manifestroot, |
| &$ | fname, | ||
| $ | folder | ||
| ) |
Process a resource
| string | $manifestroot | |
| string | $fname | |
| string | $folder |
Implements cc_i_resource.
Definition at line 180 of file cc_resources.php.


| $base = null |
Definition at line 90 of file cc_resources.php.
| $dependency = array() |
Definition at line 87 of file cc_resources.php.
| $filename = null |
Definition at line 92 of file cc_resources.php.
| $files = array() |
Definition at line 93 of file cc_resources.php.
| $folder = null |
Definition at line 96 of file cc_resources.php.
| $href = null |
Definition at line 89 of file cc_resources.php.
| $identifier = null |
Definition at line 85 of file cc_resources.php.
| $identifierref = null |
Definition at line 88 of file cc_resources.php.
| $isempty = null |
Definition at line 94 of file cc_resources.php.
| $manifestroot = null |
Definition at line 95 of file cc_resources.php.
| $persiststate = null |
Definition at line 91 of file cc_resources.php.
| $type = null |
Definition at line 86 of file cc_resources.php.