ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
HTML export class for pages. More...
Public Member Functions | |
__construct (string $a_exp_dir, ?\ILIAS\COPage\PageLinker $linker=null, int $ref_id=0, protected ?ExportCollector $export_collector=null) | |
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 | |
ILIAS MediaObjects MediaObjectManager | $media_manager |
ILIAS Style Content InternalDomainService | $content_style |
ILIAS COPage Xsl XslManager | $xsl |
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 |
ILIAS Skill Service SkillTreeService | $skill_tree_service |
ILIAS Skill Service SkillPersonalService | $skill_personal_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 , |
||
protected ?ExportCollector | $export_collector = null |
||
) |
Definition at line 57 of file class.ilCOPageHTMLExport.php.
References $DIC, $ref_id, 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 261 of file class.ilCOPageHTMLExport.php.
References Vendor\Package\$f, $lang, $user_id, ilObjMediaObject\_getMobsOfObject(), ilPCQuestion\_getQuestionIdsForPage(), ilInternalLink\_getTargetsOfSource(), ilSkillTemplateReference\_lookupTemplateId(), ilObject\_lookupTitle(), ilSkillTreeNode\_lookupType(), ilObject\_lookupType(), ilSkillTreeNodeFactory\getInstance(), ilPageContentUsage\getUsagesOfPage(), ILIAS\Repository\int(), and null.
Referenced by ILIAS\Wiki\Export\BlogHtmlExport\collectAllPagesPageElements().
ilCOPageHTMLExport::createDirectories | ( | ) |
Definition at line 102 of file class.ilCOPageHTMLExport.php.
References ilFileUtils\makeDir(), and ilFileUtils\makeDirParents().
ilCOPageHTMLExport::exportHTMLFile | ( | string | $a_file_id | ) |
Export file object.
Definition at line 593 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 611 of file class.ilCOPageHTMLExport.php.
References ilFileUtils\getASCIIFilename(), and ilFileUtils\makeDir().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportHTMLGlossaryTerms | ( | ) |
Definition at line 644 of file class.ilCOPageHTMLExport.php.
References ilGlossaryTerm\_exists(), and initResourceTemplate().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportHTMLMOB | ( | int | $a_mob_id, |
array & | $a_linked_mobs | ||
) |
Export media object to html.
Definition at line 500 of file class.ilCOPageHTMLExport.php.
References $params, $ref_id, 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 433 of file class.ilCOPageHTMLExport.php.
References ilObject\_exists(), ilObject\_lookupType(), exportHTMLFile(), exportHTMLFileDirect(), exportHTMLGlossaryTerms(), exportHTMLMOB(), and exportQuestionFiles().
|
protected |
Export question images.
Definition at line 630 of file class.ilCOPageHTMLExport.php.
References ilFileUtils\getWebspaceDir(), ilFileUtils\makeDirParents(), and ilFileUtils\rCopy().
Referenced by exportPageElements().
|
protected |
Definition at line 199 of file class.ilCOPageHTMLExport.php.
References ilFileUtils\makeDirParents().
Referenced by exportStyles(), and exportSupportScripts().
ilCOPageHTMLExport::exportStyles | ( | ) |
Export content style.
Definition at line 124 of file class.ilCOPageHTMLExport.php.
References exportResourceFile(), ilObjStyleSheet\getBasicImageDir(), ilObjStyleSheet\getContentPrintStyle(), getContentStyleId(), ilObjStyleSheet\getContentStylePath(), ilObjStyleSheet\getExportContentStylePath(), ilObjStyleSheet\getSyntaxStylePath(), ilFileUtils\makeDirParents(), and ilFileUtils\rCopy().
ilCOPageHTMLExport::exportSupportScripts | ( | ) |
Export support scripts.
Definition at line 184 of file class.ilCOPageHTMLExport.php.
References exportResourceFile(), and ilPageObjectGUI\OFFLINE.
ilCOPageHTMLExport::getContentStyleId | ( | ) |
Definition at line 97 of file class.ilCOPageHTMLExport.php.
References $content_style_id.
Referenced by exportStyles(), and initResourceTemplate().
ilCOPageHTMLExport::getPreparedMainTemplate | ( | ?ilGlobalTemplateInterface | $a_tpl = null | ) |
Definition at line 219 of file class.ilCOPageHTMLExport.php.
References $DIC, ilObjStyleSheet\getExportContentStylePath(), ilUtil\getStyleSheetLocation(), ilObjStyleSheet\getSyntaxStylePath(), and ilPageObjectGUI\OFFLINE.
Referenced by initResourceTemplate().
|
protected |
Get resource template.
Definition at line 485 of file class.ilCOPageHTMLExport.php.
References getContentStyleId(), ilObjStyleSheet\getContentStylePath(), getPreparedMainTemplate(), ilUtil\getStyleSheetLocation(), and ilObjStyleSheet\getSyntaxStylePath().
Referenced by exportHTMLGlossaryTerms(), and exportHTMLMOB().
|
protected |
Render Mob.
Definition at line 575 of file class.ilCOPageHTMLExport.php.
References ilObjMediaObject\getXML(), IL_MODE_ALIAS, and IL_MODE_OUTPUT.
Referenced by exportHTMLMOB().
ilCOPageHTMLExport::setContentStyleId | ( | int | $a_val | ) |
Definition at line 92 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 29 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.
Referenced by getContentStyleId().
|
protected |
Definition at line 36 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 31 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 47 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 43 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 39 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 44 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 51 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 42 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 45 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 33 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 32 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 50 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 28 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 34 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 41 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 40 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 54 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 46 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 55 of file class.ilCOPageHTMLExport.php.
Referenced by __construct(), and exportHTMLMOB().
|
protected |
Definition at line 35 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 53 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 52 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 38 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 49 of file class.ilCOPageHTMLExport.php.
|
protected |
Definition at line 30 of file class.ilCOPageHTMLExport.php.