ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilWikiPageConfig Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilWikiPageConfig:
+ Collaboration diagram for ilWikiPageConfig:

Public Member Functions

 init ()
 
 configureByObjectId (int $a_obj_id)
 Object specific configuration. More...
 
- Public Member Functions inherited from ilPageConfig
 __construct ()
 
 init ()
 
 setEnablePCType (string $a_pc_type, bool $a_val)
 
 getEnablePCType (string $a_pc_type)
 
 getEnabledTopPCTypes ()
 
 setEnableKeywords (bool $a_val)
 
 getEnableKeywords ()
 
 setEnableAnchors (bool $a_val)
 
 getEnableAnchors ()
 
 setEnableInternalLinks (bool $a_enabledinternallinks)
 
 getEnableInternalLinks ()
 
 getEnableUserLinks ()
 
 setEnableWikiLinks (bool $a_enablewikilinks)
 
 getEnableWikiLinks ()
 
 addIntLinkFilter (string $a_val)
 Add internal links filter. More...
 
 removeIntLinkFilter (string $a_val)
 
 getIntLinkFilters ()
 
 setIntLinkFilterWhiteList (bool $a_white_list)
 Set internal links filter type list to white list. More...
 
 getIntLinkFilterWhiteList ()
 
 setPreventRteUsage (bool $a_val)
 
 getPreventRteUsage ()
 
 setLocalizationLanguage (string $a_val)
 
 getLocalizationLanguage ()
 
 setUseAttachedContent (bool $a_val)
 
 getUseAttachedContent ()
 
 setIntLinkHelpDefaultType (string $a_val)
 
 getIntLinkHelpDefaultType ()
 
 setIntLinkHelpDefaultId (int $a_val, bool $a_is_ref=true)
 Set internal link default id. More...
 
 getIntLinkHelpDefaultId ()
 
 getIntLinkHelpDefaultIdIsRef ()
 
 setEnableActivation (bool $a_val)
 Set enabled page activation. More...
 
 getEnableActivation ()
 
 setEnableScheduledActivation (bool $a_val)
 
 getEnableScheduledActivation ()
 
 setEnablePageToc (bool $a_val)
 
 getEnablePageToc ()
 
 setPreventHTMLUnmasking (bool $a_preventhtmlunmasking)
 
 getPreventHTMLUnmasking ()
 
 setEnableSelfAssessment (bool $a_enabledselfassessment, bool $a_scorm=true)
 
 getEnableSelfAssessment ()
 
 getEnableSelfAssessmentScorm ()
 Is self assessment used in SCORM mode? More...
 
 setDisableDefaultQuestionFeedback (bool $a_val)
 Set disable default question feedback. More...
 
 getDisableDefaultQuestionFeedback ()
 
 setMultiLangSupport (bool $a_val)
 
 getMultiLangSupport ()
 
 setSinglePageMode (bool $a_val)
 Set single page mode. More...
 
 getSinglePageMode ()
 
 setQuestionHTML (array $question_html)
 
 getQuestionHTML ()
 
 setUseStoredQuestionTries (bool $a_val)
 Set use stored answers/tries. More...
 
 getUseStoredQuestionTries ()
 
 setEnablePermissionChecks (bool $a_val)
 
 getEnablePermissionChecks ()
 
 setEditLockSupport (bool $a_val)
 
 getEditLockSupport ()
 
 setUsePageContainer (bool $a_val)
 Set if page container css class should be used. More...
 
 getUsePageContainer ()
 
 setSectionProtection (int $a_val)
 
 getSectionProtection ()
 
 setSectionProtectionInfo (string $a_val)
 
 getSectionProtectionInfo ()
 

Additional Inherited Members

- Data Fields inherited from ilPageConfig
const SEC_PROTECT_NONE = 0
 
const SEC_PROTECT_EDITABLE = 1
 
const SEC_PROTECT_PROTECTED = 2
 
- Protected Attributes inherited from ilPageConfig
bool $int_link_def_id_is_ref = false
 
ilLanguage $lng
 
array $int_link_filter = array("File", "PortfolioPage", "PortfolioTemplatePage")
 
bool $prevent_rte_usage = false
 
bool $use_attached_content = false
 
array $pc_defs = array()
 
array $pc_enabled = array()
 
bool $enabledinternallinks = false
 
bool $enable_keywords = false
 
bool $enable_anchors = false
 
bool $enablewikilinks = false
 
bool $page_toc = false
 
bool $activation = false
 
bool $scheduled_activation = false
 
bool $preventhtmlunmasking = false
 
bool $enabledselfassessment = false
 
bool $enabledselfassessment_scorm = false
 
string $int_link_def_type = ""
 
int $int_link_def_id = 0
 
bool $multi_lang_support = false
 
bool $single_page_mode = false
 
bool $disable_default_qfeedback = false
 
array $question_html = array()
 
bool $use_stored_tries = false
 
bool $enable_user_links = false
 
bool $edit_lock_support = true
 
bool $use_page_container = true
 
bool $enable_permission_checks = false
 
ilSetting $adve_set
 
string $page_obj_key = ""
 
bool $link_filter_white_list = false
 
string $localization_lang = ""
 
int $section_protection = self::SEC_PROTECT_NONE
 
string $section_protection_info = ""
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Wiki page configuration

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 24 of file class.ilWikiPageConfig.php.

Member Function Documentation

◆ configureByObjectId()

ilWikiPageConfig::configureByObjectId ( int  $a_obj_id)

Object specific configuration.

Definition at line 45 of file class.ilWikiPageConfig.php.

References $DIC, ilPageConfig\$lng, ilObjWiki\_lookupPageToc(), ilLanguage\loadLanguageModule(), ilPageConfig\SEC_PROTECT_EDITABLE, ilPageConfig\SEC_PROTECT_PROTECTED, ilPageConfig\setEnablePageToc(), ilPageConfig\setSectionProtection(), ilPageConfig\setSectionProtectionInfo(), and ilLanguage\txt().

45  : void
46  {
47  global $DIC;
48 
49  if ($a_obj_id > 0) {
50  $access = $DIC->access();
51  $lng = $DIC->language();
52  $request = $DIC->wiki()->internal()->gui()->editing()->request();
53 
55  if ($access->checkAccess("write", "", $request->getRefId())) {
57  $lng->loadLanguageModule("wiki");
58  $this->setSectionProtectionInfo($lng->txt("wiki_sec_protect_info"));
59  } else {
61  }
62  }
63  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setEnablePageToc(bool $a_val)
static _lookupPageToc(int $a_wiki_id)
loadLanguageModule(string $a_module)
Load language module.
global $DIC
Definition: feed.php:28
setSectionProtectionInfo(string $a_val)
setSectionProtection(int $a_val)
+ Here is the call graph for this function:

◆ init()

ilWikiPageConfig::init ( )

Definition at line 26 of file class.ilWikiPageConfig.php.

References ilPageConfig\addIntLinkFilter(), ilPageConfig\setEnableAnchors(), ilPageConfig\setEnableInternalLinks(), ilPageConfig\setEnablePCType(), ilPageConfig\setEnableWikiLinks(), ilPageConfig\setIntLinkFilterWhiteList(), ilPageConfig\setIntLinkHelpDefaultType(), and ilPageConfig\setPreventHTMLUnmasking().

26  : void
27  {
28  $this->setEnablePCType("Map", true);
29  $this->setEnablePCType("Tabs", true);
30  $this->setPreventHTMLUnmasking(true);
31  $this->setEnableInternalLinks(true);
32  $this->setEnableAnchors(true);
33  $this->setEnableWikiLinks(true);
34  $this->setIntLinkFilterWhiteList(true);
35  $this->addIntLinkFilter("RepositoryItem");
36  $this->addIntLinkFilter("WikiPage");
37  $this->addIntLinkFilter("User");
38  $this->setIntLinkHelpDefaultType("RepositoryItem");
39  $this->setEnablePCType("AMDPageList", true);
40  }
setPreventHTMLUnmasking(bool $a_preventhtmlunmasking)
setEnableInternalLinks(bool $a_enabledinternallinks)
setIntLinkHelpDefaultType(string $a_val)
addIntLinkFilter(string $a_val)
Add internal links filter.
setEnableWikiLinks(bool $a_enablewikilinks)
setIntLinkFilterWhiteList(bool $a_white_list)
Set internal links filter type list to white list.
setEnableAnchors(bool $a_val)
setEnablePCType(string $a_pc_type, bool $a_val)
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: