Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
cc_converter Class Reference
Inheritance diagram for cc_converter:
cc_converter_basiclti cc_converter_folder cc_converter_forum cc_converter_label cc_converter_lti cc_converter_page cc_converter_quiz cc_converter_resource cc_converter_url

Public Member Functions

 __construct (cc_i_item &$item, cc_i_manifest &$manifest, $rootpath, $path)
 ctor
 
 convert ($outdir)
 performs conversion
 

Protected Member Functions

 is_visible ()
 Is the element visible in the course?
 
 store (general_cc_file $doc, $outdir, $title, $deps=null)
 Stores any files that need to be stored.
 

Protected Attributes

string $cc_type = null
 Enter description here ...
 
string $defaultfile = null
 Enter description here ...
 
string $defaultname = null
 Enter description here ...
 
XMLGenericDocument $doc = null
 Document.
 
cc_item $item = null
 Enter description here ...
 
cc_manifest $manifest = null
 Enter description here ...
 
string $path = null
 Enter description here ...
 
string $rootpath = null
 Enter description here ...
 

Constructor & Destructor Documentation

◆ __construct()

cc_converter::__construct ( cc_i_item & $item,
cc_i_manifest & $manifest,
$rootpath,
$path )

ctor

Parameters
cc_i_item$item
cc_i_manifest$manifest
string$rootpath
string$path
Exceptions
InvalidArgumentException

Reimplemented in cc_converter_basiclti, cc_converter_folder, cc_converter_forum, cc_converter_label, cc_converter_lti, cc_converter_page, cc_converter_quiz, cc_converter_resource, and cc_converter_url.

Member Function Documentation

◆ convert()

cc_converter::convert ( $outdir)
abstract

performs conversion

Parameters
string$outdir- root directory of common cartridge
Return values
boolean

Reimplemented in cc_converter_basiclti, cc_converter_folder, cc_converter_forum, cc_converter_label, cc_converter_lti, cc_converter_page, cc_converter_quiz, cc_converter_resource, and cc_converter_url.

◆ is_visible()

cc_converter::is_visible ( )
protected

Is the element visible in the course?

Exceptions
RuntimeException
Return values
bool

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