/** * Constructor * * @param int $a_node * @param object $a_access_handler * @param int $a_id * @param int $a_old_nr * @param bool $a_enable_notes * @param bool $a_may_contribute * @return ilBlogPostingGUI */ function __construct($a_node_id, $a_access_handler = null, $a_id = 0, $a_old_nr = 0, $a_enable_public_notes = true, $a_may_contribute = true) { global $tpl, $lng; $lng->loadLanguageModule("blog"); $this->node_id = $a_node_id; $this->access_handler = $a_access_handler; $this->enable_public_notes = (bool) $a_enable_public_notes; parent::__construct("blp", $a_id, $a_old_nr); // #11151 $this->may_contribute = (bool) $a_may_contribute; $this->setEnableEditing($a_may_contribute); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0)); $tpl->parseCurrentBlock(); // #11190 $blga_set = new ilSetting("blga"); $this->setPreventHTMLUnmasking((bool) $blga_set->get("mask", false)); $this->setEnabledMaps(true); $this->setEnabledInternalLinks(false); $this->setEnabledWikiLinks(false); $this->setEnabledPCTabs(true); $this->setEnabledActivation(true); }
/** * @param $table_id * @param int $a_definition_id */ public function __construct($table_id, $a_definition_id = 0) { global $tpl, $ilCtrl; /** * @var $ilCtrl ilCtrl */ $this->ctrl = $ilCtrl; //TODO Permission-Check $this->table_id = $table_id; if (!$a_definition_id) { $a_definition_id = ilDataCollectionRecordViewViewdefinition::getIdByTableId($this->table_id); } // we always need a page object - create on demand if (!$a_definition_id) { $viewdef = new ilDataCollectionRecordViewViewdefinition(); $viewdef->setTableId($this->table_id); $viewdef->setActive(false); $viewdef->create(); $a_definition_id = $viewdef->getId(); } parent::__construct("dclf", $a_definition_id); $this->getPageObject()->setTableId($this->table_id); // content style (using system defaults) include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0)); $tpl->parseCurrentBlock(); }
/** * Constructor */ function __construct($a_portfolio_id, $a_id = 0, $a_old_nr = 0, $a_enable_comments = true) { global $tpl, $ilSetting; $this->portfolio_id = (int) $a_portfolio_id; $this->enable_comments = (bool) $a_enable_comments; parent::__construct("prtf", $a_id, $a_old_nr); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0)); $tpl->parseCurrentBlock(); // #11190 $prfa_set = new ilSetting("prfa"); $this->setPreventHTMLUnmasking((bool) $prfa_set->get("mask", false)); // $this->setEnabledMaps(true); $this->setEnabledInternalLinks(false); $this->setEnabledPCTabs(true); $this->setEnabledProfile(true); if (!$ilSetting->get('disable_wsp_certificates')) { $this->setEnabledVerification(true); } /* embedding blog postings currently disabled if(!$ilSetting->get('disable_wsp_blogs')) { $this->setEnabledBlog(true); } */ $skmg_set = new ilSetting("skmg"); if ($skmg_set->get("enable_skmg")) { $this->setEnabledSkills(true); } }
/** * Constructor * * @param object $a_parent_obj * @param int $table_id * @param int $a_definition_id */ public function __construct($table_id, $a_definition_id = 0) { global $tpl; //TODO Permission-Check $this->table_id = $table_id; if (!$a_definition_id) { $a_definition_id = ilDataCollectionRecordViewViewdefinition::getIdByTableId($this->table_id); } // we always need a page object - create on demand if (!$a_definition_id) { $viewdef = new ilDataCollectionRecordViewViewdefinition(0, $this->table_id); $viewdef->create(); $a_definition_id = $viewdef->getId(); } parent::__construct("dclf", $a_definition_id); // content style (using system defaults) include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0)); $tpl->parseCurrentBlock(); // config $this->setPreventHTMLUnmasking(true); $this->setEnabledPCTabs(true); $this->setEnabledMaps(false); $this->setEnabledInternalLinks(false); $this->setEnabledWikiLinks(false); $this->setEnabledActivation(false); }
/** * Constructor */ function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0, $a_glo_id = 0) { global $tpl, $ilCtrl; $this->glo_id = $a_glo_id; parent::__construct($a_parent_type, $a_id, $a_old_nr); $this->setEnabledMaps(false); $this->setEnablePCType("QuestionOverview", true); $this->setPreventHTMLUnmasking(false); // $this->setEnabledInternalLinks(false); //if ($this->glo_id > 0) //{ $this->setEnabledInternalLinks(true); //} $this->setEnabledSelfAssessment(true); $this->setEnabledPCTabs(true); $this->getPageConfig()->addIntLinkFilter(array("StructureObject", "StructureObject_New", "PageObject", "PageObject_FAQ", "PageObject_New", "GlossaryItem_New", "Media", "Media_FAQ", "Media_Media", "Media_New", "RepositoryItem")); if ($a_glo_id <= 0) { $this->getPageConfig()->addIntLinkFilter(array("GlossaryItem")); } $this->setIntLinkHelpDefault("File", 0); $this->setIntLinkReturn($ilCtrl->getLinkTargetByClass("ilobjscorm2004learningmodulegui", "showTree", "", false, false)); $this->slm_id = $a_slm_id; include_once "./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php"; $this->getPageConfig()->setLocalizationLanguage(ilObjSAHSLearningModule::getAffectiveLocalization($a_slm_id)); $this->enableNotes(true, $this->slm_id); }
function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0) { global $tpl, $ilCtrl; parent::__construct($a_parent_type, $a_id, $a_old_nr); //associated object include_once "./Services/Style/classes/class.ilPageLayout.php"; $this->layout_object = new ilPageLayout($a_id); $this->layout_object->readObject(); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->layout_object->getStyleId())); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->setVariable("LOCATION_ADDITIONAL_STYLESHEET", ilObjStyleSheet::getPlaceHolderStylePath()); $tpl->parseCurrentBlock(); $this->setEnabledMaps(false); $this->setPreventHTMLUnmasking(false); $this->setEnabledInternalLinks(false); $this->setEnabledSelfAssessment(false); $this->setStyleId($this->layout_object->getStyleId()); //set For GUI and associated object $this->setLayoutMode(true); $this->obj->setLayoutMode(true); $this->slm_id = $a_slm_id; }
/** * Constructor */ public function __construct() { global $tpl; if (!ilImprint::_exists("impr", 1)) { $page = new ilImprint("impr"); $page->setId(1); $page->create(); } // there is only 1 imprint page parent::__construct("impr", 1); // content style (using system defaults) include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0)); $tpl->parseCurrentBlock(); // config $this->setPreventHTMLUnmasking(true); $this->setEnabledPCTabs(true); $this->setEnabledMaps(false); $this->setEnabledInternalLinks(false); $this->setEnabledWikiLinks(false); $this->setEnabledActivation(true); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0) { global $tpl; parent::__construct("qht", $a_id, $a_old_nr); $this->setTemplateTargetVar('ADM_CONTENT'); $this->setTemplateOutput(true); }
/** * Constructor */ function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0, $a_glo_id = 0) { global $tpl, $ilCtrl; $this->glo_id = $a_glo_id; $this->slm_id = $a_slm_id; parent::__construct($a_parent_type, $a_id, $a_old_nr); $this->getPageObject()->setGlossaryId($this->glo_id); $this->setIntLinkReturn($ilCtrl->getLinkTargetByClass("ilobjscorm2004learningmodulegui", "showTree", "", false, false)); include_once "./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php"; $this->enableNotes(true, $this->slm_id); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0, $a_prevent_get_id = false, $a_lang = "") { global $tpl; parent::__construct("mep", $a_id, $a_old_nr, $a_prevent_get_id, $a_lang); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0)); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0, $a_wiki_ref_id = 0) { global $tpl; // needed for notifications $this->setWikiRefId($a_wiki_ref_id); parent::__construct("wpg", $a_id, $a_old_nr); $this->getPageObject()->setWikiRefId($this->getWikiRefId()); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0) { global $tpl; parent::__construct("user", $a_id, $a_old_nr); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $this->setEnabledMaps(true); $this->setPreventHTMLUnmasking(true); $this->setEnabledInternalLinks(false); $this->setEnabledPCTabs(true); // $this->initPageObject($a_id, $a_old_nr); }
/** * Constructor */ function __construct($a_portfolio_id, $a_id = 0, $a_old_nr = 0, $a_enable_comments = true) { global $tpl; $this->portfolio_id = (int) $a_portfolio_id; $this->enable_comments = (bool) $a_enable_comments; parent::__construct($this->getParentType(), $a_id, $a_old_nr); $this->getPageObject()->setPortfolioId($this->portfolio_id); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0)); $tpl->parseCurrentBlock(); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0, $a_prevent_get_id = false) { global $tpl; parent::__construct("mep", $a_id, $a_old_nr, $a_prevent_get_id); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0)); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $this->setEnabledMaps(false); $this->setPreventHTMLUnmasking(false); $this->setEnabledInternalLinks(false); $this->setEnabledWikiLinks(false); }
/** * Constructor */ public function __construct() { global $tpl; if (!ilImprint::_exists("impr", 1)) { $page = new ilImprint("impr"); $page->setId(1); $page->create(); } // there is only 1 imprint page parent::__construct("impr", 1); // content style (using system defaults) include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0)); $tpl->parseCurrentBlock(); }
function __construct($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_slm_id = 0) { global $tpl, $ilCtrl; parent::__construct($a_parent_type, $a_id, $a_old_nr); //associated object include_once "./Services/Style/classes/class.ilPageLayout.php"; $this->layout_object = new ilPageLayout($a_id); $this->layout_object->readObject(); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath($this->layout_object->getStyleId())); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->setVariable("LOCATION_ADDITIONAL_STYLESHEET", ilObjStyleSheet::getPlaceHolderStylePath()); $tpl->parseCurrentBlock(); $this->setStyleId($this->layout_object->getStyleId()); $this->slm_id = $a_slm_id; }
/** * Constructor * * @param int $a_node * @param object $a_access_handler * @param int $a_id * @param int $a_old_nr * @param bool $a_enable_notes * @param bool $a_may_contribute * @return ilBlogPostingGUI */ function __construct($a_node_id, $a_access_handler = null, $a_id = 0, $a_old_nr = 0, $a_enable_public_notes = true, $a_may_contribute = true) { global $tpl, $lng; $lng->loadLanguageModule("blog"); $this->node_id = $a_node_id; $this->access_handler = $a_access_handler; $this->enable_public_notes = (bool) $a_enable_public_notes; parent::__construct("blp", $a_id, $a_old_nr); // needed for notification $this->getBlogPosting()->setBlogNodeId($this->node_id, $this->isInWorkspace()); // #11151 $this->may_contribute = (bool) $a_may_contribute; $this->setEnableEditing($a_may_contribute); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $tpl->setCurrentBlock("ContentStyle"); $tpl->setVariable("LOCATION_CONTENT_STYLESHEET", ilObjStyleSheet::getContentStylePath(0)); $tpl->parseCurrentBlock(); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0, $a_wiki_ref_id = 0) { global $tpl; // needed for notifications $this->setWikiRefId($a_wiki_ref_id); $this->setPageToc(ilObjWiki::_lookupPageToc(ilObject::_lookupObjId($a_wiki_ref_id))); parent::__construct("wpg", $a_id, $a_old_nr); // content style include_once "./Services/Style/classes/class.ilObjStyleSheet.php"; $tpl->setCurrentBlock("SyntaxStyle"); $tpl->setVariable("LOCATION_SYNTAX_STYLESHEET", ilObjStyleSheet::getSyntaxStylePath()); $tpl->parseCurrentBlock(); $this->setEnabledMaps(true); $this->setPreventHTMLUnmasking(true); $this->setEnabledInternalLinks(true); $this->setEnableAnchors(true); $this->setEnabledWikiLinks(true); $this->setEnabledPCTabs(true); $cfg = new ilPageConfig(); $cfg->setIntLinkFilterWhiteList(true); $cfg->addIntLinkFilter("RepositoryItem"); $this->setPageConfig($cfg); $this->setIntLinkHelpDefault("RepositoryItem", 0); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0, $a_lang = "") { parent::__construct("cstr", $a_id, $a_old_nr, false, $a_lang); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0, $a_prevent_get_id = false, $a_lang = "") { parent::__construct("lm", $a_id, $a_old_nr, $a_prevent_get_id, $a_lang); include_once "./Modules/LearningModule/classes/class.ilObjContentObject.php"; $this->getPageConfig()->setUseStoredQuestionTries(ilObjContentObject::_lookupStoreTries($this->getPageObject()->getParentId())); }
/** * Constructor * * @param int $a_id * @param int $a_old_nr * * @return \ilAssQuestionPageGUI */ public function __construct($a_id = 0, $a_old_nr = 0) { parent::__construct('qpl', $a_id, $a_old_nr); $this->setEnabledPageFocus(false); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0, $a_lang = "-") { global $tpl; parent::__construct("cont", $a_id, $a_old_nr, false, $a_lang); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0, $a_prevent_get_id = false, $a_lang = "") { parent::__construct("lm", $a_id, $a_old_nr, $a_prevent_get_id, $a_lang); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0) { global $tpl; parent::__construct("shop", $a_id, $a_old_nr); $this->setTemplateOutput(false); }
/** * Constructor */ function __construct($a_id = 0, $a_old_nr = 0) { global $tpl; parent::__construct("auth", $a_id, $a_old_nr); }