ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
Wiki HTML exporter class. More...
Public Member Functions | |
__construct (\ilObjWiki $a_wiki) | |
setMode (string $a_val) | |
getMode () | |
buildExportFile (bool $print_version=false) | |
Build export file. More... | |
exportHTMLPages () | |
Export all pages. More... | |
exportHTMLPagesPrint () | |
Export all pages as one print version. More... | |
updateUserHTMLStatusForPageElements (int $a_total, int $a_cnt) | |
Export user images. More... | |
exportPageHTML (int $a_page_id, \ilGlobalPageTemplate $tpl) | |
Export page html. More... | |
getUserExportFile () | |
Get user export file. More... | |
Data Fields | |
const | MODE_DEFAULT = "html" |
const | MODE_COMMENTS = "html_comments" |
const | MODE_USER = "user_html" |
const | MODE_USER_COMMENTS = "user_html_comments" |
Protected Attributes | |
ILIAS components Export HTML ExportCollector | $collector |
ILIAS Export HTML ExternalDomainService | $html_export |
ILIAS components Export HTML Util | $export_util |
ilDBInterface | $db |
ilObjUser | $user |
ilLanguage | $lng |
ilTabsGUI | $tabs |
ilObjWiki | $wiki |
string | $mode = self::MODE_DEFAULT |
ilLogger | $log |
ilCOPageHTMLExport | $co_page_html_export |
string | $export_dir |
ILIAS GlobalScreen Services | $global_screen |
ilGlobalTemplateInterface | $main_tpl |
ilWikiUserHTMLExport | $user_html_exp |
ILIAS Style Content Object ObjectFacade | $content_style_domain |
Static Protected Attributes | |
static | $context_init = false |
Wiki HTML exporter class.
Definition at line 29 of file WikiHtmlExport.php.
ILIAS\Wiki\Export\WikiHtmlExport::__construct | ( | \ilObjWiki | $a_wiki | ) |
Definition at line 56 of file WikiHtmlExport.php.
References $DIC, ilLoggerFactory\getLogger(), ilObject\getRefId(), ILIAS\Repository\lng(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
ILIAS\Wiki\Export\WikiHtmlExport::buildExportFile | ( | bool | $print_version = false | ) |
Build export file.
Definition at line 91 of file WikiHtmlExport.php.
References ILIAS\Wiki\Export\WikiHtmlExport\$collector, ILIAS\Wiki\Export\WikiHtmlExport\$db, ILIAS\Wiki\Export\WikiHtmlExport\$global_screen, $ilDB, ILIAS\Wiki\Export\WikiHtmlExport\$user, ILIAS\Wiki\Export\WikiHtmlExport\exportHTMLPages(), ILIAS\Wiki\Export\WikiHtmlExport\exportHTMLPagesPrint(), ilFileUtils\getASCIIFilename(), ilMathJax\getInstance(), ILIAS\Wiki\Export\WikiHtmlExport\getMode(), ilHTMLExportViewLayoutProvider\HTML_EXPORT_RENDERING, IL_INST_ID, null, and ilMathJax\PURPOSE_EXPORT.
ILIAS\Wiki\Export\WikiHtmlExport::exportHTMLPages | ( | ) |
Export all pages.
Definition at line 197 of file WikiHtmlExport.php.
References $DIC, ilPageObject\_exists(), ILIAS\Wiki\Export\WikiHtmlExport\exportPageHTML(), ilWikiPage\getAllWikiPages(), ILIAS\Wiki\Export\WikiHtmlExport\getMode(), ilWikiUserHTMLExport\RUNNING, and ILIAS\Wiki\Export\WikiHtmlExport\updateUserHTMLStatusForPageElements().
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\buildExportFile().
ILIAS\Wiki\Export\WikiHtmlExport::exportHTMLPagesPrint | ( | ) |
Export all pages as one print version.
Definition at line 232 of file WikiHtmlExport.php.
References ilPageObject\_exists(), and ilWikiPage\getAllWikiPages().
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\buildExportFile().
ILIAS\Wiki\Export\WikiHtmlExport::exportPageHTML | ( | int | $a_page_id, |
\ilGlobalPageTemplate | $tpl | ||
) |
Export page html.
Definition at line 279 of file WikiHtmlExport.php.
References $comments, ILIAS\Wiki\Export\WikiHtmlExport\$lng, ILIAS\Wiki\Export\WikiHtmlExport\$tabs, ilTabsGUI\clearTargets(), ilUtil\getImagePath(), ILIAS\Wiki\Export\WikiHtmlExport\getMode(), ilGlobalPageTemplate\printToString(), ilGlobalPageTemplate\setContent(), ilGlobalPageTemplate\setRightContent(), ilGlobalPageTemplate\setTitle(), and ilGlobalPageTemplate\setTitleIcon().
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\exportHTMLPages().
ILIAS\Wiki\Export\WikiHtmlExport::getMode | ( | ) |
Definition at line 81 of file WikiHtmlExport.php.
References ILIAS\Wiki\Export\WikiHtmlExport\$mode.
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\buildExportFile(), ILIAS\Wiki\Export\WikiHtmlExport\exportHTMLPages(), ILIAS\Wiki\Export\WikiHtmlExport\exportPageHTML(), ILIAS\Wiki\Export\WikiHtmlExport\getUserExportFile(), and ILIAS\Wiki\Export\WikiHtmlExport\updateUserHTMLStatusForPageElements().
ILIAS\Wiki\Export\WikiHtmlExport::getUserExportFile | ( | ) |
Get user export file.
Definition at line 364 of file WikiHtmlExport.php.
References ilExport\_getExportDirectory(), and ILIAS\Wiki\Export\WikiHtmlExport\getMode().
ILIAS\Wiki\Export\WikiHtmlExport::setMode | ( | string | $a_val | ) |
Definition at line 75 of file WikiHtmlExport.php.
ILIAS\Wiki\Export\WikiHtmlExport::updateUserHTMLStatusForPageElements | ( | int | $a_total, |
int | $a_cnt | ||
) |
Export user images.
Callback for updating the export status during elements export (media objects, files, ...)
Definition at line 265 of file WikiHtmlExport.php.
References ILIAS\Wiki\Export\WikiHtmlExport\getMode(), and ilWikiUserHTMLExport\RUNNING.
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\exportHTMLPages().
|
protected |
Definition at line 46 of file WikiHtmlExport.php.
|
protected |
Definition at line 35 of file WikiHtmlExport.php.
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\buildExportFile().
|
protected |
Definition at line 51 of file WikiHtmlExport.php.
|
staticprotected |
Definition at line 54 of file WikiHtmlExport.php.
|
protected |
Definition at line 39 of file WikiHtmlExport.php.
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\buildExportFile().
|
protected |
Definition at line 47 of file WikiHtmlExport.php.
Definition at line 37 of file WikiHtmlExport.php.
|
protected |
Definition at line 48 of file WikiHtmlExport.php.
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\buildExportFile().
Definition at line 36 of file WikiHtmlExport.php.
|
protected |
Definition at line 41 of file WikiHtmlExport.php.
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\exportPageHTML().
|
protected |
Definition at line 45 of file WikiHtmlExport.php.
|
protected |
Definition at line 49 of file WikiHtmlExport.php.
|
protected |
Definition at line 44 of file WikiHtmlExport.php.
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\getMode().
|
protected |
Definition at line 42 of file WikiHtmlExport.php.
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\exportPageHTML().
|
protected |
Definition at line 40 of file WikiHtmlExport.php.
Referenced by ILIAS\Wiki\Export\WikiHtmlExport\buildExportFile().
|
protected |
Definition at line 50 of file WikiHtmlExport.php.
|
protected |
Definition at line 43 of file WikiHtmlExport.php.
const ILIAS\Wiki\Export\WikiHtmlExport::MODE_COMMENTS = "html_comments" |
Definition at line 32 of file WikiHtmlExport.php.
const ILIAS\Wiki\Export\WikiHtmlExport::MODE_DEFAULT = "html" |
Definition at line 31 of file WikiHtmlExport.php.
const ILIAS\Wiki\Export\WikiHtmlExport::MODE_USER = "user_html" |
Definition at line 33 of file WikiHtmlExport.php.
const ILIAS\Wiki\Export\WikiHtmlExport::MODE_USER_COMMENTS = "user_html_comments" |
Definition at line 34 of file WikiHtmlExport.php.