Moodle  2.2.1
http://www.collinsharper.com
cc_resource Class Reference
Inheritance diagram for cc_resource:
Collaboration diagram for cc_resource:

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

Detailed Description

Resource Class

Definition at line 83 of file cc_resources.php.


Constructor & Destructor Documentation

__construct ( manifest,
file,
folder = '',
throwonerror = true 
)

Definition at line 100 of file cc_resources.php.

Here is the call graph for this function:


Member Function Documentation

add_resource ( fname,
location = '' 
)

Add resource

Parameters:
string$fname
string$location

Implements cc_i_resource.

Definition at line 117 of file cc_resources.php.

Here is the call graph for this function:

adjust_path ( mroot,
fname 
)

Definition at line 196 of file cc_resources.php.

Here is the call graph for this function:

Definition at line 28 of file entity.resource.class.php.

Here is the call graph for this function:

get_attr_value ( &$  nod,
name,
ns = null 
)

Get a attribute value

Parameters:
DOMElement$nod
string$name
string$ns
Returns:
string

Implements cc_i_resource.

Definition at line 166 of file cc_resources.php.

Here is the caller graph for this function:

Definition at line 234 of file cc_resources.php.

import_resource ( DOMElement &$  node,
cc_i_manifest &$  doc 
)

Import a resource

Parameters:
DOMElement$node
cc_i_manifest$doc

Implements cc_i_resource.

Definition at line 129 of file cc_resources.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 209 of file cc_resources.php.

Definition at line 224 of file cc_resources.php.

Here is the call graph for this function:

Here is the caller graph for this function:

process_resource ( manifestroot,
&$  fname,
folder 
)

Process a resource

Parameters:
string$manifestroot
string$fname
string$folder

Implements cc_i_resource.

Definition at line 180 of file cc_resources.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$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.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Enumerations