ILIAS
release_8 Revision v8.19
|
HTML export class for pages. More...
Public Member Functions | |
__construct (string $a_exp_dir, \ILIAS\COPage\PageLinker $linker=null, int $ref_id=0) | |
setContentStyleId (int $a_val) | |
getContentStyleId () | |
createDirectories () | |
exportStyles () | |
Export content style. More... | |
exportSupportScripts () | |
Export support scripts. More... | |
getPreparedMainTemplate (ilGlobalTemplateInterface $a_tpl=null) | |
collectPageElements (string $a_type, int $a_id, string $lang="") | |
Collect page elements (that need to be exported separately) More... | |
exportPageElements (callable $a_update_callback=null) | |
Export page elements. More... | |
exportHTMLMOB (int $a_mob_id, array &$a_linked_mobs) | |
Export media object to html. More... | |
exportHTMLFile (string $a_file_id) | |
Export file object. More... | |
exportHTMLFileDirect (string $a_file_id, string $a_source_file, string $a_file_name) | |
Export file from path. More... | |
exportHTMLGlossaryTerms () | |
Protected Member Functions | |
exportResourceFile (string $target_dir, string $file) | |
initResourceTemplate (string $template_file) | |
Get resource template. More... | |
renderMob (\ilObjMediaObject $mob_obj, string $link_xml, array $params) | |
Render Mob. More... | |
exportQuestionFiles () | |
Export question images. More... | |
Protected Attributes | |
string | $mp3_dir = "" |
string | $flv_dir = "" |
string | $css_dir = "" |
string | $js_yahoo_dir = "" |
string | $js_dir = "" |
string | $media_service_dir = "" |
string | $services_dir = "" |
string | $content_style_img_dir = "" |
string | $content_style_dir = "" |
string | $tex_dir = "" |
string | $files_dir = "" |
string | $mobs_dir = "" |
array | $mobs = [] |
array | $glossary_terms = [] |
array | $files = [] |
array | $files_direct = [] |
array | $int_links = [] |
array | $q_ids = [] |
string | $exp_dir = "" |
int | $content_style_id = 0 |
ilObjUser | $user |
ilLogger | $log |
ILIAS GlobalScreen Services | $global_screen |
SkillTreeService | $skill_tree_service |
ILIAS COPage PageLinker | $page_linker |
int | $ref_id |
HTML export class for pages.
Definition at line 26 of file class.ilCOPageHTMLExport.php.
ilCOPageHTMLExport::__construct | ( | string | $a_exp_dir, |
\ILIAS\COPage\PageLinker | $linker = null , |
||
int | $ref_id = 0 |
||
) |
Definition at line 55 of file class.ilCOPageHTMLExport.php.
References $DIC, $ref_id, ilPlayerUtil\getFlashVideoPlayerDirectory(), ilLoggerFactory\getLogger(), and ILIAS\Repository\user().
ilCOPageHTMLExport::collectPageElements | ( | string | $a_type, |
int | $a_id, | ||
string | $lang = "" |
||
) |
Collect page elements (that need to be exported separately)
Definition at line 231 of file class.ilCOPageHTMLExport.php.
References Vendor\Package\$f, $lang, ilObjMediaObject\_getMobsOfObject(), ilPCQuestion\_getQuestionIdsForPage(), ilInternalLink\_getTargetsOfSource(), ilSkillTemplateReference\_lookupTemplateId(), ilObject\_lookupTitle(), ilSkillTreeNode\_lookupType(), ilObject\_lookupType(), ilPersonalSkill\getAssignedMaterial(), ilGlossaryDefinition\getDefinitionList(), ilSkillTreeNodeFactory\getInstance(), ilPageContentUsage\getUsagesOfPage(), and ILIAS\Repository\int().
Referenced by ILIAS\Blog\Export\BlogHtmlExport\collectAllPagesPageElements().
ilCOPageHTMLExport::createDirectories | ( | ) |
Definition at line 98 of file class.ilCOPageHTMLExport.php.
References ilFileUtils\makeDir(), and ilFileUtils\makeDirParents().
ilCOPageHTMLExport::exportHTMLFile | ( | string | $a_file_id | ) |
Export file object.
Definition at line 561 of file class.ilCOPageHTMLExport.php.
References ilFileUtils\makeDir().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportHTMLFileDirect | ( | string | $a_file_id, |
string | $a_source_file, | ||
string | $a_file_name | ||
) |
Export file from path.
Definition at line 579 of file class.ilCOPageHTMLExport.php.
References ilFileUtils\getASCIIFilename(), and ilFileUtils\makeDir().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportHTMLGlossaryTerms | ( | ) |
Definition at line 612 of file class.ilCOPageHTMLExport.php.
References $tpl, and initResourceTemplate().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportHTMLMOB | ( | int | $a_mob_id, |
array & | $a_linked_mobs | ||
) |
Export media object to html.
Definition at line 473 of file class.ilCOPageHTMLExport.php.
References $params, $ref_id, $tpl, ilMediaItem\_getMapAreasIntLinks(), ilUtil\getImagePath(), ilFileUtils\getWebspaceDir(), initResourceTemplate(), ilObjMediaObject\isTypeAllowed(), ilFileUtils\makeDir(), ilFileUtils\rCopy(), and renderMob().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportPageElements | ( | callable | $a_update_callback = null | ) |
Export page elements.
Definition at line 406 of file class.ilCOPageHTMLExport.php.
References ilObject\_exists(), ilObject\_lookupType(), exportHTMLFile(), exportHTMLFileDirect(), exportHTMLGlossaryTerms(), exportHTMLMOB(), and exportQuestionFiles().
|
protected |
Export question images.
Definition at line 598 of file class.ilCOPageHTMLExport.php.
References ilFileUtils\getWebspaceDir(), ilFileUtils\makeDirParents(), and ilFileUtils\rCopy().
Referenced by exportPageElements().
|
protected |
Definition at line 174 of file class.ilCOPageHTMLExport.php.
References ilFileUtils\makeDirParents().
Referenced by exportStyles(), and exportSupportScripts().
ilCOPageHTMLExport::exportStyles | ( | ) |
Export content style.
Definition at line 122 of file class.ilCOPageHTMLExport.php.
References exportResourceFile(), ilObjStyleSheet\getBasicImageDir(), ilObjStyleSheet\getContentPrintStyle(), getContentStyleId(), ilObjStyleSheet\getContentStylePath(), ilObjStyleSheet\getSyntaxStylePath(), ilFileUtils\makeDirParents(), and ilFileUtils\rCopy().
ilCOPageHTMLExport::exportSupportScripts | ( | ) |
Export support scripts.
Definition at line 157 of file class.ilCOPageHTMLExport.php.
References ilPlayerUtil\copyPlayerFilesToTargetDirectory(), exportResourceFile(), and ilPageObjectGUI\OFFLINE.
ilCOPageHTMLExport::getContentStyleId | ( | ) |
Definition at line 93 of file class.ilCOPageHTMLExport.php.
References $content_style_id.
Referenced by exportStyles(), getPreparedMainTemplate(), and initResourceTemplate().
ilCOPageHTMLExport::getPreparedMainTemplate | ( | ilGlobalTemplateInterface | $a_tpl = null | ) |
Definition at line 190 of file class.ilCOPageHTMLExport.php.
References $DIC, $tpl, getContentStyleId(), ilObjStyleSheet\getContentStylePath(), ilUtil\getStyleSheetLocation(), ilObjStyleSheet\getSyntaxStylePath(), and ilPageObjectGUI\OFFLINE.
Referenced by initResourceTemplate().
|
protected |
Get resource template.
Definition at line 458 of file class.ilCOPageHTMLExport.php.
References $tpl, getContentStyleId(), ilObjStyleSheet\getContentStylePath(), getPreparedMainTemplate(), ilUtil\getStyleSheetLocation(), and ilObjStyleSheet\getSyntaxStylePath().
Referenced by exportHTMLGlossaryTerms(), and exportHTMLMOB().
|
protected |
Render Mob.
Definition at line 529 of file class.ilCOPageHTMLExport.php.
References ilObjMediaObject\getXML(), IL_MODE_ALIAS, IL_MODE_OUTPUT, xslt_create(), and xslt_free().
Referenced by exportHTMLMOB().
ilCOPageHTMLExport::setContentStyleId | ( | int | $a_val | ) |
Definition at line 88 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 36 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 47 of file class.ilCOPageHTMLExport.php.
Referenced by getContentStyleId().
|
protected |
Definition at line 35 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 30 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 46 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 42 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 38 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 43 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 29 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 50 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 41 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 44 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 32 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 31 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 49 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 33 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 40 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 39 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 28 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 52 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 45 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 53 of file class.ilCOPageHTMLExport.php.
Referenced by __construct(), and exportHTMLMOB().
|
protected |
Definition at line 34 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 51 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 37 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 48 of file class.ilCOPageHTMLExport.php.