Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
cc_resource Class Reference

Resource Class. More...

Inheritance diagram for cc_resource:
cc_i_resource

Public Member Functions

 __construct ($manifest, $file, $folder='', $throwonerror=true)
 
 add_resource ($fname, $location='')
 Add resource. More...
 
 adjust_path ($mroot, $fname)
 
 generate_node ()
 
 get_attr_value (&$nod, $name, $ns=null)
 Get a attribute value. More...
 
 get_manifestroot ()
 
 import_resource (DOMElement &$node, cc_i_manifest &$doc)
 Import a resource. More...
 
 init_clean ()
 
 init_empty_new ()
 
 process_resource ($manifestroot, &$fname, $folder)
 Process a resource. More...
 

Public Attributes

 $base = null
 
 $dependency = array()
 
 $filename = null
 
 $files = array()
 
 $folder = null
 
 $href = null
 
 $identifier = null
 
 $identifierref = null
 
 $instructoronly = false
 
 $isempty = null
 
 $manifestroot = null
 
 $metadata = array()
 
 $persiststate = null
 
 $type = null
 

Detailed Description

Resource Class.

Member Function Documentation

◆ add_resource()

cc_resource::add_resource (   $fname,
  $location = '' 
)

Add resource.

Parameters
string$fname
string$location

Implements cc_i_resource.

◆ get_attr_value()

cc_resource::get_attr_value ( $nod,
  $name,
  $ns = null 
)

Get a attribute value.

Parameters
DOMElement$nod
string$name
string$ns
Return values
string

Implements cc_i_resource.

◆ import_resource()

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

Import a resource.

Parameters
DOMElement$node
cc_i_manifest$doc

Implements cc_i_resource.

◆ process_resource()

cc_resource::process_resource (   $manifestroot,
$fname,
  $folder 
)

Process a resource.

Parameters
string$manifestroot
string$fname
string$folder

Implements cc_i_resource.


The documentation for this class was generated from the following files: