本文整理汇总了PHP中ilObjMediaObject::exportMediaFullscreen方法的典型用法代码示例。如果您正苦于以下问题:PHP ilObjMediaObject::exportMediaFullscreen方法的具体用法?PHP ilObjMediaObject::exportMediaFullscreen怎么用?PHP ilObjMediaObject::exportMediaFullscreen使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilObjMediaObject
的用法示例。
在下文中一共展示了ilObjMediaObject::exportMediaFullscreen方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: exportHTMLPageObjects
/**
* Export HTML pages of SCO
*/
function exportHTMLPageObjects($a_inst, $a_target_dir, &$expLog, $mode, $a_asset_type = "sco", $a_one_file = "", $a_sco_tpl = null)
{
global $tpl, $ilCtrl, $ilBench, $ilLog, $lng;
include_once "./Modules/Scorm2004/classes/class.ilSCORM2004PageGUI.php";
include_once "./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModuleGUI.php";
include_once "./Services/MetaData/classes/class.ilMD.php";
$output = "";
$tree = new ilTree($this->slm_id);
$tree->setTableNames('sahs_sc13_tree', 'sahs_sc13_tree_node');
$tree->setTreeTablePK("slm_id");
// @todo
// Why is that much HTML code in an application class?
// Please extract all this HTML to a tpl.<t_name>.html file and use
// placeholders and the template engine to insert data.
//
// There copy/paste code residenting in ilSCORM2004ScoGUI. This
// should be merged.
//
// alex, 4 Apr 09
//
// if ($a_one_file == "")
// {
$sco_tpl = new ilTemplate("tpl.sco.html", true, true, "Modules/Scorm2004");
// }
// else
// {
// $sco_tpl = $a_sco_tpl;
// }
if ($mode != 'pdf' && $a_one_file == "") {
include_once "./Services/COPage/classes/class.ilCOPageHTMLExport.php";
$pg_exp = new ilCOPageHTMLExport($a_target_dir);
$pg_exp->getPreparedMainTemplate($sco_tpl);
// init and question lang vars
$lk = ilObjSAHSLearningModule::getAffectiveLocalization($this->slm_id);
$sco_tpl->setCurrentBlock("init");
include_once "./Services/COPage/classes/class.ilPCQuestion.php";
$sco_tpl->setVariable("TXT_INIT_CODE", ilPCQuestion::getJSTextInitCode($lk));
$sco_tpl->parseCurrentBlock();
// (additional) style sheets needed
$styles = array("./css/yahoo/container.css", "./css/question_handling.css");
foreach ($styles as $style) {
$sco_tpl->setCurrentBlock("css_file");
$sco_tpl->setVariable("CSS_FILE", $style);
$sco_tpl->parseCurrentBlock();
}
// (additional) scripts needed
$scripts = array("./js/scorm.js", "./js/pager.js", "./js/pure.js", "./js/questions_" . $this->getId() . ".js");
foreach ($scripts as $script) {
$sco_tpl->setCurrentBlock("js_file");
$sco_tpl->setVariable("JS_FILE", $script);
$sco_tpl->parseCurrentBlock();
}
if ($a_asset_type != "entry_asset" && $a_asset_type != "final_asset") {
self::renderNavigation($sco_tpl, "./images/spacer.png", $lk);
}
$sco_tpl->touchBlock("finish");
}
// render head
$sco_tpl->setCurrentBlock("head");
$sco_tpl->setVariable("SCO_TITLE", $this->getTitle());
$sco_tpl->parseCurrentBlock();
$sco_tpl->touchBlock("tail");
// meta page (meta info at SCO beginning)
self::renderMetaPage($sco_tpl, $this, $a_asset_type, $mode);
if ($a_one_file != "") {
fputs($a_one_file, "<a name='sco" . $this->getId() . "'></a>");
fputs($a_one_file, $sco_tpl->get("meta_page"));
}
//notify Question Exporter of new SCO
require_once './Modules/Scorm2004/classes/class.ilQuestionExporter.php';
ilQuestionExporter::indicateNewSco();
// init export (this initialises glossary template)
ilSCORM2004PageGUI::initExport();
$terms = array();
$terms = $this->getGlossaryTermIds();
include_once "./Modules/Scorm2004/classes/class.ilSCORM2004ScoGUI.php";
$pages = $tree->getSubTree($tree->getNodeData($this->getId()), true, 'page');
$sco_q_ids = array();
foreach ($pages as $page) {
//echo(print_r($page));
$page_obj = new ilSCORM2004PageGUI($this->getType(), $page["obj_id"], 0, $this->slm_object->getId());
$page_obj->setPresentationTitle($page["title"]);
$page_obj->setOutputMode(IL_PAGE_OFFLINE);
$page_obj->setStyleId($this->slm_object->getStyleSheetId());
if (count($terms) > 1) {
$page_obj->setGlossaryOverviewInfo(ilSCORM2004ScoGUI::getGlossaryOverviewId(), $this);
}
$page_output = $page_obj->showPage("export");
// collect media objects
$mob_ids = $page_obj->getSCORM2004Page()->collectMediaObjects(false);
foreach ($mob_ids as $mob_id) {
$this->mob_ids[$mob_id] = $mob_id;
$media_obj = new ilObjMediaObject($mob_id);
if ($media_obj->hasFullscreenItem()) {
$media_obj->exportMediaFullscreen($a_target_dir, $page_obj->getPageObject());
}
}
//.........这里部分代码省略.........