|
Moodle
2.2.1
http://www.collinsharper.com
|
Static Public Member Functions | |
| static | is_html ($filename) |
| static | uuidgen ($prefix= '', $suffix= '', $uppercase=true) |
| static | randomdir ($where, $prefix= '', $suffix= '') |
| static | build_query ($attributes, $search) |
| static | process_embedded_files (&$doc, $attributes, $search, $customslash=null) |
| static | embedded_files ($html) |
| static | embedded_mapping ($packageroot, $contextid=null) |
| static | add_files (cc_i_manifest &$manifest, $packageroot, $outdir, $allinone=true) |
| static | handle_static_content (cc_i_manifest &$manifest, $packageroot, $contextid, $outdir, $allinone=true) |
| static | handle_resource_content (cc_i_manifest &$manifest, $packageroot, $contextid, $outdir, $allinone=true) |
| static | process_linked_files ($content, cc_i_manifest &$manifest, $packageroot, $contextid, $outdir, $webcontent=false) |
| static | relative_location ($originpath, $linkingpath) |
Various helper utils
Definition at line 32 of file cc_utils.php.
| static add_files | ( | cc_i_manifest &$ | manifest, |
| $ | packageroot, | ||
| $ | outdir, | ||
| $ | allinone = true |
||
| ) | [static] |
Definition at line 157 of file cc_utils.php.


| static build_query | ( | $ | attributes, |
| $ | search | ||
| ) | [static] |
| static embedded_files | ( | $ | html | ) | [static] |
Get list of embedded files
| string | $html |
Definition at line 107 of file cc_utils.php.


| static embedded_mapping | ( | $ | packageroot, |
| $ | contextid = null |
||
| ) | [static] |
| static handle_resource_content | ( | cc_i_manifest &$ | manifest, |
| $ | packageroot, | ||
| $ | contextid, | ||
| $ | outdir, | ||
| $ | allinone = true |
||
| ) | [static] |
Definition at line 214 of file cc_utils.php.


| static handle_static_content | ( | cc_i_manifest &$ | manifest, |
| $ | packageroot, | ||
| $ | contextid, | ||
| $ | outdir, | ||
| $ | allinone = true |
||
| ) | [static] |
Excerpt from IMS CC 1.1 overview : No spaces in filenames, directory and file references should employ all lowercase or all uppercase - no mixed case
| cc_i_manifest | $manifest | |
| string | $packageroot | |
| integer | $contextid | |
| string | $outdir | |
| boolean | $allinone |
| RuntimeException |
Definition at line 209 of file cc_utils.php.


| static is_html | ( | $ | filename | ) | [static] |
Checks extension of the supplied filename
| string | $filename |
Definition at line 39 of file cc_utils.php.

| static process_embedded_files | ( | &$ | doc, |
| $ | attributes, | ||
| $ | search, | ||
| $ | customslash = null |
||
| ) | [static] |
Definition at line 87 of file cc_utils.php.


| static process_linked_files | ( | $ | content, |
| cc_i_manifest &$ | manifest, | ||
| $ | packageroot, | ||
| $ | contextid, | ||
| $ | outdir, | ||
| $ | webcontent = false |
||
| ) | [static] |
Definition at line 249 of file cc_utils.php.


| static randomdir | ( | $ | where, |
| $ | prefix = '', |
||
| $ | suffix = '' |
||
| ) | [static] |
Creates new folder with random name
| string | $where | |
| string | $prefix | |
| string | $suffix |
Definition at line 65 of file cc_utils.php.


| static relative_location | ( | $ | originpath, |
| $ | linkingpath | ||
| ) | [static] |
Definition at line 287 of file cc_utils.php.
Generates unique identifier
| string | $prefix | |
| string | $suffix |
Definition at line 51 of file cc_utils.php.
