ILIAS
release_7 Revision v7.30-3-g800a261c036
|
HTML export class for pages. More...
Public Member Functions | |
__construct ($a_exp_dir, \ILIAS\COPage\PageLinker $linker=null, $ref_id=0) | |
ilCOPageHTMLExport constructor. 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, $lang="") | |
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... | |
exportHTMLGlossaryTerms () | |
Export glossary terms. More... | |
Protected Member Functions | |
exportResourceFile (string $target_dir, string $file) | |
Export resource file. More... | |
initResourceTemplate ($tempalate_file) | |
Get resource template. More... | |
renderMob (\ilObjMediaObject $mob_obj, string $link_xml, array $params) | |
Render Mob. More... | |
exportQuestionFiles () | |
Export question images. More... | |
Protected Attributes | |
$mobs = [] | |
$glossary_terms = [] | |
$files = [] | |
$files_direct = [] | |
$int_links = [] | |
$q_ids = [] | |
$exp_dir = "" | |
$content_style_id = 0 | |
$user | |
$log | |
$global_screen | |
$page_linker | |
$ref_id | |
ilCOPageHTMLExport::__construct | ( | $a_exp_dir, | |
\ILIAS\COPage\PageLinker | $linker = null , |
||
$ref_id = 0 |
|||
) |
ilCOPageHTMLExport constructor.
$a_exp_dir |
Definition at line 82 of file class.ilCOPageHTMLExport.php.
References $DIC, $ref_id, ilPlayerUtil\getFlashVideoPlayerDirectory(), ilLoggerFactory\getLogger(), and user().
ilCOPageHTMLExport::collectPageElements | ( | $a_type, | |
$a_id, | |||
$lang = "" |
|||
) |
Collect page elements (that need to be exported separately)
string | $a_pg_type | page type |
int | $a_pg_id | page id |
Definition at line 320 of file class.ilCOPageHTMLExport.php.
References Vendor\Package\$f, $files, $lang, $q_ids, ilObjMediaObject\_getMobsOfObject(), ilPCQuestion\_getQuestionIdsForPage(), ilInternalLink\_getTargetsOfSource(), ilSkillTemplateReference\_lookupTemplateId(), ilObject\_lookupTitle(), ilSkillTreeNode\_lookupType(), ilObject\_lookupType(), ilPersonalSkill\getAssignedMaterial(), ilGlossaryDefinition\getDefinitionList(), ilSkillTreeNodeFactory\getInstance(), and ilPageContentUsage\getUsagesOfPage().
ilCOPageHTMLExport::createDirectories | ( | ) |
Create directories.
Definition at line 138 of file class.ilCOPageHTMLExport.php.
References ilUtil\makeDir().
ilCOPageHTMLExport::exportHTMLFile | ( | $a_file_id | ) |
Export file object.
Definition at line 655 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 674 of file class.ilCOPageHTMLExport.php.
References ilUtil\getASCIIFilename(), and ilUtil\makeDir().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportHTMLGlossaryTerms | ( | ) |
Export glossary terms.
Definition at line 708 of file class.ilCOPageHTMLExport.php.
References $tpl, and initResourceTemplate().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportHTMLMOB | ( | $a_mob_id, | |
& | $a_linked_mobs | ||
) |
Export media object to html.
Definition at line 569 of file class.ilCOPageHTMLExport.php.
References $ref_id, $tpl, ilMediaItem\_getMapAreasIntLinks(), ilUtil\getImagePath(), ilUtil\getWebspaceDir(), initResourceTemplate(), ilUtil\makeDir(), ilUtil\rCopy(), and renderMob().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportPageElements | ( | $a_update_callback = null | ) |
Export page elements.
Definition at line 500 of file class.ilCOPageHTMLExport.php.
References $total, ilObject\_exists(), ilObject\_lookupType(), exportHTMLFile(), exportHTMLFileDirect(), exportHTMLGlossaryTerms(), exportHTMLMOB(), and exportQuestionFiles().
|
protected |
Export question images.
Definition at line 690 of file class.ilCOPageHTMLExport.php.
References ilUtil\getWebspaceDir(), ilUtil\makeDirParents(), and ilUtil\rCopy().
Referenced by exportPageElements().
|
protected |
Export resource file.
string | $target_dir | |
string | $file |
Definition at line 251 of file class.ilCOPageHTMLExport.php.
References ilUtil\makeDirParents().
Referenced by exportStyles(), and exportSupportScripts().
ilCOPageHTMLExport::exportStyles | ( | ) |
Export content style.
Definition at line 163 of file class.ilCOPageHTMLExport.php.
References exportResourceFile(), ilObjStyleSheet\getBasicImageDir(), getContentStyleId(), ilObjStyleSheet\getContentStylePath(), ilObjStyleSheet\getSyntaxStylePath(), ilUtil\makeDirParents(), and ilUtil\rCopy().
ilCOPageHTMLExport::exportSupportScripts | ( | ) |
Export support scripts.
Definition at line 194 of file class.ilCOPageHTMLExport.php.
References ilPlayerUtil\copyPlayerFilesToTargetDirectory(), exportResourceFile(), and ilPageObjectGUI\OFFLINE.
ilCOPageHTMLExport::getContentStyleId | ( | ) |
Get content style id.
Definition at line 127 of file class.ilCOPageHTMLExport.php.
References $content_style_id.
Referenced by exportStyles(), getPreparedMainTemplate(), and initResourceTemplate().
ilCOPageHTMLExport::getPreparedMainTemplate | ( | $a_tpl = "" | ) |
Get prepared main template.
Definition at line 272 of file class.ilCOPageHTMLExport.php.
References $DIC, $mathJaxSetting, $tpl, getContentStyleId(), ilObjStyleSheet\getContentStylePath(), ilPlayerUtil\getJsFilePaths(), ilUtil\getStyleSheetLocation(), ilObjStyleSheet\getSyntaxStylePath(), and ilPageObjectGUI\OFFLINE.
Referenced by initResourceTemplate().
|
protected |
Get resource template.
Definition at line 555 of file class.ilCOPageHTMLExport.php.
References $tpl, getContentStyleId(), ilObjStyleSheet\getContentStylePath(), getPreparedMainTemplate(), ilUtil\getStyleSheetLocation(), and ilObjStyleSheet\getSyntaxStylePath().
Referenced by exportHTMLGlossaryTerms(), and exportHTMLMOB().
|
protected |
Render Mob.
ilObjMediaObject | $mob_obj | |
string | $link_xml | |
array | $params |
Definition at line 626 of file class.ilCOPageHTMLExport.php.
References ilObjMediaObject\getXML(), IL_MODE_ALIAS, IL_MODE_OUTPUT, xslt_create(), and xslt_free().
Referenced by exportHTMLMOB().
ilCOPageHTMLExport::setContentStyleId | ( | $a_val | ) |
Set content style id.
int | $a_val | content style id |
Definition at line 117 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 51 of file class.ilCOPageHTMLExport.php.
Referenced by getContentStyleId().
|
protected |
Definition at line 46 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 26 of file class.ilCOPageHTMLExport.php.
Referenced by collectPageElements().
|
protected |
Definition at line 31 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 66 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 21 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 36 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 61 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 16 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 71 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 41 of file class.ilCOPageHTMLExport.php.
Referenced by collectPageElements().
|
protected |
Definition at line 76 of file class.ilCOPageHTMLExport.php.
Referenced by __construct(), and exportHTMLMOB().
|
protected |
Definition at line 56 of file class.ilCOPageHTMLExport.php.