ILIAS
Release_4_4_x_branch Revision 61816
|
HTML export class for pages. More...
Public Member Functions | |
__construct ($a_exp_dir) | |
Initialisation. | |
setContentStyleId ($a_val) | |
Set content style id. | |
getContentStyleId () | |
Get content style id. | |
createDirectories () | |
Create directories. | |
exportStyles () | |
Export content style. | |
exportSupportScripts () | |
Export support scripts. | |
getPreparedMainTemplate ($a_tpl="") | |
Get prepared main template. | |
collectPageElements ($a_type, $a_id) | |
Collect page elements (that need to be exported separately) | |
exportPageElements () | |
Export page elements. | |
exportHTMLMOB ($a_mob_id, &$a_linked_mobs) | |
Export media object to html. | |
exportHTMLFile ($a_file_id) | |
Export file object. | |
exportHTMLFileDirect ($a_file_id, $a_source_file, $a_file_name) | |
Export file from path. |
Private Attributes | |
$mobs = array() | |
$files = array() | |
$files_direct = array() | |
$exp_dir = "" | |
$content_style_id = 0 |
HTML export class for pages.
Definition at line 11 of file class.ilCOPageHTMLExport.php.
ilCOPageHTMLExport::__construct | ( | $a_exp_dir | ) |
Initialisation.
Definition at line 22 of file class.ilCOPageHTMLExport.php.
References $GLOBALS, and ilPlayerUtil\getFlashVideoPlayerDirectory().
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 249 of file class.ilCOPageHTMLExport.php.
References $files, ilObjFile\_getFilesOfObject(), ilObjMediaObject\_getMobsOfObject(), ilSkillTemplateReference\_lookupTemplateId(), ilSkillTreeNode\_lookupType(), ilObject\_lookupType(), ilPersonalSkill\getAssignedMaterial(), ilSkillTreeNodeFactory\getInstance(), and ilPageContentUsage\getUsagesOfPage().
ilCOPageHTMLExport::createDirectories | ( | ) |
Create directories.
@return |
Definition at line 70 of file class.ilCOPageHTMLExport.php.
References ilUtil\makeDir().
ilCOPageHTMLExport::exportHTMLFile | ( | $a_file_id | ) |
Export file object.
Definition at line 485 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 506 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 421 of file class.ilCOPageHTMLExport.php.
References $file, $tpl, getPreparedMainTemplate(), ilUtil\getWebspaceDir(), IL_MODE_ALIAS, IL_MODE_OUTPUT, ilUtil\makeDir(), ilUtil\rCopy(), xslt_create(), xslt_free(), and xslt_process().
Referenced by exportPageElements().
ilCOPageHTMLExport::exportPageElements | ( | ) |
Export page elements.
@return |
Definition at line 385 of file class.ilCOPageHTMLExport.php.
References $file, ilObject\_exists(), ilObject\_lookupType(), exportHTMLFile(), exportHTMLFileDirect(), and exportHTMLMOB().
ilCOPageHTMLExport::exportStyles | ( | ) |
Export content style.
@return |
Definition at line 93 of file class.ilCOPageHTMLExport.php.
References $files, getContentStyleId(), and ilObjStyleSheet\getSyntaxStylePath().
ilCOPageHTMLExport::exportSupportScripts | ( | ) |
Export support scripts.
@return |
Definition at line 132 of file class.ilCOPageHTMLExport.php.
References ilPlayerUtil\copyPlayerFilesToTargetDirectory(), iljQueryUtil\getLocaljQueryPath(), iljQueryUtil\getLocaljQueryUIPath(), iljQueryUtil\getLocalMaphilightPath(), and ilYuiUtil\getLocalPath().
ilCOPageHTMLExport::getContentStyleId | ( | ) |
Get content style id.
Definition at line 59 of file class.ilCOPageHTMLExport.php.
References $content_style_id.
Referenced by exportStyles().
ilCOPageHTMLExport::getPreparedMainTemplate | ( | $a_tpl = "" | ) |
Get prepared main template.
@return |
Definition at line 189 of file class.ilCOPageHTMLExport.php.
References $ilUser, $mathJaxSetting, $tpl, ilPlayerUtil\getCssFilePaths(), and ilPlayerUtil\getJsFilePaths().
Referenced by exportHTMLMOB(), and ilObjSCORM2004LearningModule\exportHTMLScoObjects().
ilCOPageHTMLExport::setContentStyleId | ( | $a_val | ) |
Set content style id.
int | $a_val | content style id |
Definition at line 49 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.
|
private |
Definition at line 13 of file class.ilCOPageHTMLExport.php.