|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
HTML export class for pages. More...
Collaboration diagram for ilCOPageHTMLExport: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().
Here is the call graph for this function:| 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(), ilObject\_lookupType(), ilSkillTreeNode\_lookupType(), ilPersonalSkill\getAssignedMaterial(), ilGlossaryDefinition\getDefinitionList(), ilSkillTreeNodeFactory\getInstance(), and ilPageContentUsage\getUsagesOfPage().
Here is the call graph for this function:| ilCOPageHTMLExport::createDirectories | ( | ) |
Create directories.
return
Definition at line 138 of file class.ilCOPageHTMLExport.php.
References ilUtil\makeDir().
Here is the call graph for this function:| ilCOPageHTMLExport::exportHTMLFile | ( | $a_file_id | ) |
Export file object.
Definition at line 655 of file class.ilCOPageHTMLExport.php.
References ilUtil\makeDir().
Referenced by exportPageElements().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCOPageHTMLExport::exportHTMLGlossaryTerms | ( | ) |
Export glossary terms.
Definition at line 708 of file class.ilCOPageHTMLExport.php.
References $tpl, and initResourceTemplate().
Referenced by exportPageElements().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCOPageHTMLExport::exportPageElements | ( | $a_update_callback = null | ) |
Export page elements.
return
Definition at line 500 of file class.ilCOPageHTMLExport.php.
References $total, ilObject\_exists(), ilObject\_lookupType(), exportHTMLFile(), exportHTMLFileDirect(), exportHTMLGlossaryTerms(), exportHTMLMOB(), and exportQuestionFiles().
Here is the call graph for this function:
|
protected |
Export question images.
Definition at line 690 of file class.ilCOPageHTMLExport.php.
References ilUtil\getWebspaceDir(), ilUtil\makeDirParents(), and ilUtil\rCopy().
Referenced by exportPageElements().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCOPageHTMLExport::exportStyles | ( | ) |
Export content style.
ILIAS\Filesystem\Exception\DirectoryNotFoundException
ILIAS\Filesystem\Exception\FileNotFoundException
ILIAS\Filesystem\Exception\IOException
Definition at line 163 of file class.ilCOPageHTMLExport.php.
References exportResourceFile(), ilObjStyleSheet\getBasicImageDir(), getContentStyleId(), ilObjStyleSheet\getContentStylePath(), ilObjStyleSheet\getSyntaxStylePath(), ilUtil\makeDirParents(), and ilUtil\rCopy().
Here is the call graph for this function:| ilCOPageHTMLExport::exportSupportScripts | ( | ) |
Export support scripts.
return
Definition at line 194 of file class.ilCOPageHTMLExport.php.
References ilPlayerUtil\copyPlayerFilesToTargetDirectory(), exportResourceFile(), and ilPageObjectGUI\OFFLINE.
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| ilCOPageHTMLExport::getPreparedMainTemplate | ( | $a_tpl = "" | ) |
Get prepared main template.
return
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get resource template.
return
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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.