ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
HTML export class for pages. More...
Public Member Functions | |
__construct ($a_exp_dir) | |
Initialisation. More... | |
setContentStyleId ($a_val) | |
Set content style id. More... | |
getContentStyleId () | |
Get content style id. More... | |
createDirectories () | |
Create directories. More... | |
exportStyles () | |
Export content style. More... | |
exportSupportScripts () | |
Export support scripts. More... | |
getPreparedMainTemplate ($a_tpl="") | |
Get prepared main template. More... | |
collectPageElements ($a_type, $a_id) | |
Collect page elements (that need to be exported separately) More... | |
exportPageElements ($a_update_callback=null) | |
Export page elements. More... | |
exportHTMLMOB ($a_mob_id, &$a_linked_mobs) | |
Export media object to html. More... | |
exportHTMLFile ($a_file_id) | |
Export file object. More... | |
exportHTMLFileDirect ($a_file_id, $a_source_file, $a_file_name) | |
Export file from path. More... | |
Protected Attributes | |
$log | |
Private Attributes | |
$mobs = array() | |
$files = array() | |
$files_direct = array() | |
$exp_dir = "" | |
$content_style_id = 0 | |
ilCOPageHTMLExport::__construct | ( | $a_exp_dir | ) |
Initialisation.
Definition at line 27 of file class.ilCOPageHTMLExport.php.
References $GLOBALS, ilPlayerUtil\getFlashVideoPlayerDirectory(), and ilLoggerFactory\getLogger().
ilCOPageHTMLExport::collectPageElements | ( | $a_type, | |
$a_id | |||
) |
Collect page elements (that need to be exported separately)
string | $a_pg_type | page type |
int | $a_pg_id | page id |
Definition at line 318 of file class.ilCOPageHTMLExport.php.
References $a_type, $files, ilObjFile\_getFilesOfObject(), ilObjMediaObject\_getMobsOfObject(), ilSkillTemplateReference\_lookupTemplateId(), ilSkillTreeNode\_lookupType(), ilObject\_lookupType(), array, ilPersonalSkill\getAssignedMaterial(), ilSkillTreeNodeFactory\getInstance(), and ilPageContentUsage\getUsagesOfPage().
ilCOPageHTMLExport::createDirectories | ( | ) |
Create directories.
Definition at line 78 of file class.ilCOPageHTMLExport.php.
References ilUtil\makeDir().
ilCOPageHTMLExport::exportHTMLFile | ( | $a_file_id | ) |
Export file object.
Definition at line 579 of file class.ilCOPageHTMLExport.php.
References ilUtil\makeDir().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportHTMLFileDirect | ( | $a_file_id, | |
$a_source_file, | |||
$a_file_name | |||
) |
Export file from path.
Definition at line 600 of file class.ilCOPageHTMLExport.php.
References ilUtil\getASCIIFilename(), and ilUtil\makeDir().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportHTMLMOB | ( | $a_mob_id, | |
& | $a_linked_mobs | ||
) |
Export media object to html.
Definition at line 513 of file class.ilCOPageHTMLExport.php.
References $file, $output, $tpl, array, getPreparedMainTemplate(), ilUtil\getWebspaceDir(), IL_MODE_ALIAS, IL_MODE_OUTPUT, ilUtil\makeDir(), ilUtil\rCopy(), xslt_create(), and xslt_free().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportPageElements | ( | $a_update_callback = null | ) |
Export page elements.
Definition at line 457 of file class.ilCOPageHTMLExport.php.
References $file, $total, ilObject\_exists(), ilObject\_lookupType(), array, exportHTMLFile(), exportHTMLFileDirect(), and exportHTMLMOB().
ilCOPageHTMLExport::exportStyles | ( | ) |
Export content style.
Definition at line 101 of file class.ilCOPageHTMLExport.php.
References $files, $style, getContentStyleId(), and ilObjStyleSheet\getSyntaxStylePath().
ilCOPageHTMLExport::exportSupportScripts | ( | ) |
Export support scripts.
Definition at line 145 of file class.ilCOPageHTMLExport.php.
References ilPlayerUtil\copyPlayerFilesToTargetDirectory(), ilAccordionGUI\getLocalCssFiles(), ilAccordionGUI\getLocalJavascriptFiles(), iljQueryUtil\getLocaljQueryPath(), iljQueryUtil\getLocaljQueryUIPath(), ilLinkifyUtil\getLocalJsPaths(), iljQueryUtil\getLocalMaphilightPath(), ilYuiUtil\getLocalPath(), and ilUtil\makeDirParents().
ilCOPageHTMLExport::getContentStyleId | ( | ) |
Get content style id.
Definition at line 67 of file class.ilCOPageHTMLExport.php.
References $content_style_id.
Referenced by exportStyles().
ilCOPageHTMLExport::getPreparedMainTemplate | ( | $a_tpl = "" | ) |
Get prepared main template.
Definition at line 240 of file class.ilCOPageHTMLExport.php.
References $ilUser, $mathJaxSetting, $tpl, array, ilPlayerUtil\getCssFilePaths(), ilPlayerUtil\getJsFilePaths(), ilAccordionGUI\getLocalCssFiles(), and ilAccordionGUI\getLocalJavascriptFiles().
Referenced by exportHTMLMOB().
ilCOPageHTMLExport::setContentStyleId | ( | $a_val | ) |
Set content style id.
int | $a_val | content style id |
Definition at line 57 of file class.ilCOPageHTMLExport.php.
|
private |
Definition at line 17 of file class.ilCOPageHTMLExport.php.
Referenced by getContentStyleId().
|
private |
Definition at line 16 of file class.ilCOPageHTMLExport.php.
|
private |
Definition at line 14 of file class.ilCOPageHTMLExport.php.
Referenced by collectPageElements(), and exportStyles().
|
private |
Definition at line 15 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 22 of file class.ilCOPageHTMLExport.php.
|
private |
Definition at line 13 of file class.ilCOPageHTMLExport.php.