ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilObjContentObjectGUI Class Reference

Class ilObjContentObjectGUI. More...

+ Inheritance diagram for ilObjContentObjectGUI:
+ Collaboration diagram for ilObjContentObjectGUI:

Public Member Functions

 __construct ( $a_data, int $a_id=0, bool $a_call_by_reference=true, bool $a_prepare_output=false)
 
 properties ()
 edit properties form More...
 
 initPropertiesForm ()
 Init properties form. More...
 
 getPropertiesFormValues ()
 Get values for properties form. More...
 
 saveProperties ()
 save properties More...
 
 initMenuForm ()
 
 editMenuProperties ()
 
 saveMenuProperties ()
 
 proceedDragDrop ()
 
 delete (int $a_parent_subobj_id=0)
 confirm deletion screen for free pages (other usages do not apply anymore) More...
 
 cancelDelete ()
 
 confirmedDelete (int $a_parent_subobj_id=0)
 delete page object or structure objects More...
 
 chapters ()
 show chapters More...
 
 pages ()
 
 listLinks ()
 List all broken links. More...
 
 showMaintenance ()
 Show maintenance. More...
 
 activatePages ()
 activates or deactivates pages More...
 
 copyPage ()
 
 getContextPath (int $a_endnode_id, int $a_startnode_id=1)
 
 showActions (array $a_actions)
 
 view ()
 
 moveChapter (int $a_parent_subobj_id=0)
 move a single chapter (selection) More...
 
 copyChapter ()
 
 pasteChapter ()
 
 movePage ()
 
 cancel ()
 
 export ()
 
 fixTreeConfirm ()
 
 fixTree ()
 
 exportHTML ()
 
 addLocations (bool $a_omit_obj_id=false)
 display locator More...
 
 listQuestions ()
 
 listQuestionUsages ()
 
 listBlockedUsers ()
 
 resetNumberOfTries ()
 
 unlockQuestion ()
 
 sendMailToBlockedUsers ()
 
 setContentSubTabs (string $a_active)
 
 setMediaSubTabs (string $a_active)
 
 setQuestionsSubTabs (string $a_active)
 
 addTabs (string $a_act="")
 
 setSubTabs (string $a_active)
 
 __initLMMenuEditor ()
 
 addMenuEntry (?ilPropertyFormGUI $form=null)
 display add menu entry form More...
 
 initMenuEntryForm (string $a_mode="edit")
 
 saveMenuEntry ()
 
 deleteMenuEntry ()
 
 editMenuEntry (?ilPropertyFormGUI $form=null)
 
 updateMenuEntry ()
 
 showEntrySelector ()
 
 selectHeader ()
 select page as header More...
 
 selectFooter ()
 select page as footer More...
 
 saveAllTitles ()
 Save all titles of chapters/pages. More...
 
 cutItems (array $ids)
 
 copyItems (array $ids)
 Copy items to clipboard. More...
 
 cutChapter ()
 Cut chapter(s) More...
 
 showExportIDsOverview (bool $a_validation=false)
 
 filterHelpChapters ()
 
 saveExportIds ()
 
 saveHelpMapping ()
 
 showTooltipList ()
 
 addTooltip ()
 
 filterTooltips ()
 
 saveTooltips ()
 
 deleteTooltips ()
 
 setPageLayoutInHierarchy ()
 Set layout for multiple pages. More...
 
 setPageLayout (bool $a_in_hierarchy=false)
 Set layout for multiple pages. More...
 
 initSetPageLayoutForm ()
 
 savePageLayout ()
 
 editGlossaries ()
 Edit automatically linked glossaries. More...
 
 showLMGlossarySelector ()
 
 confirmGlossarySelection ()
 
 selectLMGlossaryLink ()
 
 selectLMGlossary ()
 
 removeLMGlossary ()
 
 editMasterLanguage ()
 
 switchToLanguage ()
 
 redrawHeaderAction ()
 
- Public Member Functions inherited from ilObjectGUI
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 If true, a creation screen is displayed the current [ref_id] does belong to the parent class The mode is determined in ilRepositoryGUI. More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelObject ()
 cancel action and go back to previous page More...
 
 createObject ()
 create new object form More...
 
 editAvailabilityPeriodObject ()
 
 saveAvailabilityPeriodObject ()
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, ?int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Static Public Member Functions

static getMultiLangHeader (int $a_lm_id, object $a_gui_class, string $a_mode="")
 
static _goto (string $a_target)
 
static getLayoutOption (string $a_txt, string $a_var, string $a_def_option="")
 
- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 

Protected Member Functions

 checkCtrlPath ()
 
 buildExportOptionsFormHTML ()
 
 buildExportOptionsFormXML ()
 
 showExportOptionsXML ()
 
 showExportOptionsHTML ()
 
 doExportXML ()
 
 doExportHTML ()
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 getBlockedUsersMailSignature ()
 
 setTabs (string $a_act="")
 
 learningProgress ()
 Learning progress. More...
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 createActionDispatcherGUI ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 getCreationFormsHTML (StandardForm|ilPropertyFormGUI|array $form)
 
 getTitleForCreationFormPage ()
 
 getCreationFormTitle ()
 
 initCreateForm (string $new_type)
 
 didacticTemplatesToForm ()
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 retrieveAdditionalDidacticTemplateOptions ()
 
 addAdoptContentLinkToToolbar ()
 
 addImportButtonToToolbar ()
 
 addAvailabilityPeriodButtonToToolbar (ilToolbarGUI $toolbar)
 
 parseDidacticTemplateVar (string $var, string $type)
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 routeImportCmdObject ()
 
 importFile (string $file_to_import, string $path_to_uploaded_file_in_temp_dir)
 
 deleteUploadedImportFile (string $path_to_uploaded_file_in_temp_dir)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 @abstract overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current ["ref_id"] value of the request More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 getCreatableObjectTypes ()
 
 buildAddNewItemElements (array $subtypes, string $create_target_class=ilRepositoryGUI::class, ?int $redirect_target_ref_id=null,)
 
 buildGroup (string $create_target_class, array $obj_types_in_group, string $title, array $subtypes)
 

Protected Attributes

ILIAS LearningModule InternalGUIService $gui
 
ILIAS LearningModule InternalDomainService $domain
 
ilRbacSystem $rbacsystem
 
ILIAS LearningModule ReadingTime SettingsGUI $reading_time_gui
 
ilLMMenuEditor $lmme_obj
 
ilObjLearningModule $lm_obj
 
string $lang_switch_mode
 
ilPropertyFormGUI $form
 
ilTabsGUI $tabs
 
ilHelpGUI $help
 
ilDBInterface $db
 
ilLogger $log
 
ILIAS DI UIServices $ui
 
ilComponentRepository $component_repository
 
bool $to_props = false
 
int $requested_obj_id = 0
 
string $requested_new_type = ""
 
string $requested_baseClass = ""
 
int $requested_ref_id = 0
 
string $requested_transl = ""
 
string $requested_backcmd = ""
 
int $requested_menu_entry = 0
 
int $requested_lm_menu_expand = 0
 
int $requested_search_root_expand = 0
 
bool $requested_hierarchy = false
 
int $requested_root_id = 0
 
int $requested_glo_id = 0
 
int $requested_glo_ref_id = 0
 
string $requested_lang_switch_mode = ""
 
int $requested_active_node = 0
 
int $requested_lmexpand = 0
 
int $requested_link_ref_id = 0
 
string $requested_totransl = ""
 
bool $requested_lmmovecopy = false
 
ilObjLearningModule $lm
 
EditingGUIRequest $edit_request
 
ILIAS Style Content Service $content_style_service
 
ilLMTree $lm_tree
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
GlobalHttpState $http
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Refinery $refinery
 
ilFavouritesManager $favourites
 
CustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
Filesystem $temp_file_system
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Additional Inherited Members

- Data Fields inherited from ilObjectGUI
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
const SUPPORTED_IMPORT_MIME_TYPES = [MimeType::APPLICATION__ZIP, MimeType::APPLICATION__X_ZIP_COMPRESSED]
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjContentObjectGUI::__construct (   $a_data,
int  $a_id = 0,
bool  $a_call_by_reference = true,
bool  $a_prepare_output = false 
)
Parameters
mixed$a_data
int$a_id
bool$a_call_by_reference
bool$a_prepare_output
Exceptions
ilCtrlException

Reimplemented in ilObjLearningModuleGUI.

Definition at line 89 of file class.ilObjContentObjectGUI.php.

94 {
95 global $DIC;
96
97 $this->lng = $DIC->language();
98 $this->access = $DIC->access();
99 $this->tabs = $DIC->tabs();
100 $this->settings = $DIC->settings();
101 $this->user = $DIC->user();
102 $this->tpl = $DIC["tpl"];
103 $this->toolbar = $DIC->toolbar();
104 $this->rbacsystem = $DIC->rbac()->system();
105 $this->tree = $DIC->repositoryTree();
106 $this->help = $DIC["ilHelp"];
107 $this->locator = $DIC["ilLocator"];
108 $this->db = $DIC->database();
109 $this->log = $DIC["ilLog"];
110 $this->ui = $DIC->ui();
111 $lng = $DIC->language();
112 $ilCtrl = $DIC->ctrl();
113 $this->ctrl = $ilCtrl;
114 $this->component_repository = $DIC["component.repository"];
115 $lng->loadLanguageModule("content");
116 $lng->loadLanguageModule("obj");
117 parent::__construct($a_data, $a_id, $a_call_by_reference, false);
118
119 $this->edit_request = $DIC
120 ->learningModule()
121 ->internal()
122 ->gui()
123 ->editing()
124 ->request();
125
127 $this->to_props = $req->getToProps();
128 $this->requested_obj_id = $req->getObjId();
129 $this->requested_ref_id = $req->getRefId();
130 $this->requested_root_id = $req->getRootId();
131 $this->requested_glo_id = $req->getGlossaryId();
132 $this->requested_glo_ref_id = $req->getGlossaryRefId();
133 $this->requested_menu_entry = $req->getMenuEntry();
134 $this->requested_lm_menu_expand = $req->getLMMenuExpand();
135 $this->requested_search_root_expand = $req->getSearchRootExpand();
136 $this->requested_new_type = $req->getNewType();
137 $this->requested_baseClass = $req->getBaseClass();
138 $this->requested_transl = $req->getTranslation();
139 $this->requested_backcmd = $req->getBackCmd();
140 $this->requested_hierarchy = $req->getHierarchy();
141 $this->lang_switch_mode = $req->getLangSwitchMode();
142 $this->requested_active_node = $req->getActiveNode();
143 $this->requested_lmexpand = $req->getLMExpand();
144 $this->requested_link_ref_id = $req->getLinkRefId();
145 $this->requested_totransl = $req->getToTranslation();
146 $this->requested_lmmovecopy = $req->getLMMoveCopy();
147 $this->content_style_service = $DIC
148 ->contentStyle();
149
150 $id = (isset($this->object))
151 ? $this->object->getId()
152 : 0;
153 $this->reading_time_gui = new \ILIAS\LearningModule\ReadingTime\SettingsGUI($id);
154 $this->domain = $DIC->learningModule()->internal()->domain();
155 $this->gui = $DIC->learningModule()->internal()->gui();
156 }
loadLanguageModule(string $a_module)
Load language module.
ilLanguage $lng
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
catch(\Exception $e) $req
Definition: xapiproxy.php:78
global $DIC
Definition: shib_login.php:26

References $DIC, $edit_request, ilObjectGUI\$id, ilObjectGUI\$lng, XapiProxy\$req, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\locator(), ILIAS\Repository\object(), ILIAS\Repository\settings(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), ILIAS\Repository\ui(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ __initLMMenuEditor()

ilObjContentObjectGUI::__initLMMenuEditor ( )

Definition at line 2018 of file class.ilObjContentObjectGUI.php.

2018 : void
2019 {
2020 $this->lmme_obj = new ilLMMenuEditor();
2021 $this->lmme_obj->setObjId($this->lm->getId());
2022 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Referenced by editMenuProperties(), and saveMenuProperties().

+ Here is the caller graph for this function:

◆ _goto()

static ilObjContentObjectGUI::_goto ( string  $a_target)
static

Definition at line 2295 of file class.ilObjContentObjectGUI.php.

2295 : void
2296 {
2297 global $DIC;
2298 $main_tpl = $DIC->ui()->mainTemplate();
2299
2300 $ilAccess = $DIC->access();
2301 $ilErr = $DIC["ilErr"];
2302 $lng = $DIC->language();
2303 $ctrl = $DIC->ctrl();
2304
2305 if ($ilAccess->checkAccess("read", "", $a_target)) {
2306 $ctrl->setParameterByClass("ilLMPresentationGUI", "ref_id", $a_target);
2307 if (ilObjLearningModuleAccess::_lookupSetting("lm_starting_point") == "first") {
2308 $ctrl->redirectByClass("ilLMPresentationGUI", "");
2309 } else {
2310 $ctrl->redirectByClass("ilLMPresentationGUI", "resume");
2311 }
2312 } elseif ($ilAccess->checkAccess("visible", "", $a_target)) {
2313 $ctrl->setParameterByClass("ilLMPresentationGUI", "ref_id", $a_target);
2314 $ctrl->redirectByClass("ilLMPresentationGUI", "infoScreen");
2315 } elseif ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
2316 $main_tpl->setOnScreenMessage('failure', sprintf(
2317 $lng->txt("msg_no_perm_read_item"),
2319 ), true);
2321 }
2322
2323
2324 $ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
2325 }
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
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...
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.
static _lookupObjId(int $ref_id)
static _lookupTitle(int $obj_id)
const ROOT_FOLDER_ID
Definition: constants.php:32
$ilErr
Definition: raiseError.php:33

References $DIC, $ilErr, $lng, ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObjLearningModuleAccess\_lookupSetting(), ilObject\_lookupTitle(), and ROOT_FOLDER_ID.

Referenced by ILIAS\StaticURL\Handler\LegacyGotoHandler\handle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ activatePages()

ilObjContentObjectGUI::activatePages ( )

activates or deactivates pages

Definition at line 1282 of file class.ilObjContentObjectGUI.php.

1282 : void
1283 {
1284 $ids = $this->edit_request->getIds();
1285 foreach ($ids as $id) {
1286 $act = ilLMPage::_lookupActive($id, $this->lm->getType());
1287 ilLMPage::_writeActive($id, $this->lm->getType(), !$act);
1288 }
1289
1290 $this->ctrl->redirect($this, "pages");
1291 }
static _writeActive(int $a_id, string $a_parent_type, bool $a_active)
write activation status
static _lookupActive(int $a_id, string $a_parent_type, bool $a_check_scheduled_activation=false, string $a_lang="-")
lookup activation status

References $id, ilPageObject\_lookupActive(), ilPageObject\_writeActive(), and ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ addLocations()

ilObjContentObjectGUI::addLocations ( bool  $a_omit_obj_id = false)

display locator

Parameters
bool$a_omit_obj_idset to true, if obj id is not page id (e.g. permission gui)

Definition at line 1559 of file class.ilObjContentObjectGUI.php.

1561 : void {
1563
1564 $obj_id = 0;
1565 if (!$a_omit_obj_id) {
1567 }
1568 $lmtree = $this->lm->getTree();
1569 if (($obj_id != 0) && $lmtree->isInTree($obj_id)) {
1570 $path = $lmtree->getPathFull($obj_id);
1571 } else {
1572 $path = $lmtree->getPathFull($lmtree->getRootId());
1573 if ($obj_id != 0) {
1574 $path[] = array("type" => "pg", "child" => $this->obj_id,
1575 "title" => ilLMPageObject::_getPresentationTitle($this->obj_id));
1576 }
1577 }
1578
1579 foreach ($path as $key => $row) {
1580 if ($row["child"] == 1) {
1581 $this->ctrl->setParameter($this, "obj_id", null);
1582 $locator->addItem($this->lm->getTitle(), $this->ctrl->getLinkTarget($this, "chapters"));
1583 } else {
1584 $title = $row["title"];
1585 switch ($row["type"]) {
1586 case "st":
1587 $this->ctrl->setParameterByClass("ilstructureobjectgui", "obj_id", $row["child"]);
1588 $locator->addItem($title, $this->ctrl->getLinkTargetByClass("ilstructureobjectgui", "view"));
1589 break;
1590
1591 case "pg":
1592 $this->ctrl->setParameterByClass("illmpageobjectgui", "obj_id", $row["child"]);
1593 $locator->addItem($title, $this->ctrl->getLinkTargetByClass("illmpageobjectgui", "edit"));
1594 break;
1595 }
1596 }
1597 }
1598 if (!$a_omit_obj_id) {
1599 $this->ctrl->setParameter($this, "obj_id", $this->requested_obj_id);
1600 }
1601 }
static _getPresentationTitle(int $a_pg_id, string $a_mode=self::CHAPTER_TITLE, bool $a_include_numbers=false, bool $a_time_scheduled_activation=false, bool $a_force_content=false, int $a_lm_id=0, string $a_lang="-", bool $a_include_short=false)
presentation title doesn't have to be page title, it may be chapter title + page title or chapter tit...
ilLocatorGUI $locator
$path
Definition: ltiservices.php:30

Referenced by doExportHTML(), doExportXML(), showExportOptionsHTML(), and showExportOptionsXML().

+ Here is the caller graph for this function:

◆ addMenuEntry()

ilObjContentObjectGUI::addMenuEntry ( ?ilPropertyFormGUI  $form = null)

display add menu entry form

Definition at line 2027 of file class.ilObjContentObjectGUI.php.

2027 : void
2028 {
2029 $ilTabs = $this->tabs;
2030 $ilToolbar = $this->toolbar;
2031 $ilCtrl = $this->ctrl;
2032
2033 $this->setTabs();
2034
2035 $ilTabs->setTabActive("settings");
2036 $this->setSubTabs("cont_lm_menu");
2037
2038 $ilToolbar->addButton(
2039 $this->lng->txt("lm_menu_select_internal_object"),
2040 $ilCtrl->getLinkTarget($this, "showEntrySelector")
2041 );
2042
2043 if (is_null($form)) {
2044 $form = $this->initMenuEntryForm("create");
2045 }
2046 $this->tpl->setContent($form->getHTML());
2047 }
initMenuEntryForm(string $a_mode="edit")
setTabs()
set admin tabs
ilToolbarGUI $toolbar

References ilPropertyFormGUI\getHTML(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ addTabs()

ilObjContentObjectGUI::addTabs ( string  $a_act = "")

Definition at line 1865 of file class.ilObjContentObjectGUI.php.

1865 : void
1866 {
1868 $ilTabs = $this->tabs;
1869 $lng = $this->lng;
1870
1871 // content -> pages
1872 $this->ctrl->setParameterByClass(static::class, "sub_type", "st");
1873 $ilTabs->addTab(
1874 "content",
1875 $lng->txt("content"),
1876 $this->ctrl->getLinkTargetByClass(EditSubObjectsGUI::class)
1877 );
1878
1879 // media
1880 $this->lng->loadLanguageModule('mob');
1881 $ilTabs->addTab(
1882 "media",
1883 $lng->txt("mob_media"),
1884 $this->ctrl->getLinkTargetByClass(ilMediaObjectOverviewGUI::class, "show")
1885 );
1886
1887 // questions
1888 $ilTabs->addTab(
1889 "questions",
1890 $lng->txt("objs_qst"),
1891 $this->ctrl->getLinkTarget($this, "listQuestionUsages")
1892 );
1893
1894 // info
1895 if ($this->object->isInfoEnabled()) {
1896 $ilTabs->addTab(
1897 "info",
1898 $lng->txt("info_short"),
1899 $this->ctrl->getLinkTargetByClass("ilinfoscreengui", 'showSummary')
1900 );
1901 }
1902
1903 // settings
1904 $ilTabs->addTab(
1905 "settings",
1906 $lng->txt("settings"),
1907 $this->ctrl->getLinkTarget($this, 'properties')
1908 );
1909
1910 // learning progress
1911 if (ilLearningProgressAccess::checkAccess($this->lm->getRefId()) and ($this->lm->getType() == 'lm')) {
1912 $ilTabs->addTab(
1913 'learning_progress',
1914 $lng->txt("learning_progress"),
1915 $this->ctrl->getLinkTargetByClass(array('illearningprogressgui'), '')
1916 );
1917 }
1918
1919 // meta data
1920 $mdgui = new ilObjectMetaDataGUI($this->lm);
1921 $mdtab = $mdgui->getTab();
1922 if ($mdtab) {
1923 $ilTabs->addTab(
1924 "meta",
1925 $lng->txt("meta_data"),
1926 $mdtab
1927 );
1928 }
1929
1930 // export
1931 $ilTabs->addTab(
1932 "export",
1933 $lng->txt("export"),
1934 $this->ctrl->getLinkTargetByClass("ilexportgui", "")
1935 );
1936
1937 // permissions
1938 if ($rbacsystem->checkAccess('edit_permission', $this->lm->getRefId())) {
1939 $ilTabs->addTab(
1940 "perm",
1941 $lng->txt("perm_settings"),
1942 $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm")
1943 );
1944 }
1945
1946 if ($a_act != "") {
1947 $ilTabs->activateTab($a_act);
1948 }
1949
1950 // presentation view
1951 $ilTabs->addNonTabbedLink(
1952 "pres_mode",
1953 $lng->txt("cont_presentation_view"),
1954 "ilias.php?baseClass=ilLMPresentationGUI&ref_id=" . $this->lm->getRefId()
1955 );
1956 }
static checkAccess(int $a_ref_id, bool $a_allow_only_read=true)
check access to learning progress
Class ilObjectMetaDataGUI.
checkAccess(string $a_operations, int $a_ref_id, string $a_type="")
checkAccess represents the main method of the RBAC-system in ILIAS3 developers want to use With this ...

References $lng, ilLearningProgressAccess\checkAccess(), ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ addTooltip()

ilObjContentObjectGUI::addTooltip ( )

Definition at line 2521 of file class.ilObjContentObjectGUI.php.

2521 : void
2522 {
2523 $lng = $this->lng;
2524 $ilCtrl = $this->ctrl;
2525
2526 $tt_id = $this->edit_request->getTooltipId();
2527 if (trim($tt_id) != "") {
2528 if (is_int(strpos($tt_id, "_"))) {
2529 $this->help->internal()->domain()->tooltips()->addTooltip(trim($tt_id), "");
2530 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2531
2532 $fu = strpos($tt_id, "_");
2533 $comp = substr($tt_id, 0, $fu);
2534 ilSession::set("help_tt_comp", ilUtil::stripSlashes($comp));
2535 } else {
2536 $this->tpl->setOnScreenMessage('failure', $lng->txt("cont_help_no_valid_tooltip_id"), true);
2537 }
2538 }
2539 $ilCtrl->redirect($this, "showTooltipList");
2540 }
static set(string $a_var, $a_val)
Set a value.
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")

References $lng, ILIAS\Repository\help(), ilSession\set(), and ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ afterSave()

ilObjContentObjectGUI::afterSave ( ilObject  $new_object)
protected

Post (successful) object creation hook.

Reimplemented from ilObjectGUI.

Definition at line 1020 of file class.ilObjContentObjectGUI.php.

1020 : void
1021 {
1022 $new_object->setCleanFrames(true);
1023 $new_object->update();
1024
1025 // create content object tree
1026 $new_object->createLMTree();
1027
1028 // create a first chapter
1029 $new_object->addFirstChapterAndPage();
1030
1031 // always send a message
1032 $this->tpl->setOnScreenMessage('success', $this->lng->txt($this->type . "_added"), true);
1033 $this->ctrl->setParameterByClass(ilObjLearningModuleGUI::class, "ref_id", $new_object->getRefId());
1034 $this->ctrl->redirectByClass([ilLMEditorGUI::class, ilObjLearningModuleGUI::class], "");
1035 }

References ILIAS\Repository\ctrl(), ilObject\getRefId(), ILIAS\Repository\lng(), and ilObject\update().

+ Here is the call graph for this function:

◆ buildExportOptionsFormHTML()

ilObjContentObjectGUI::buildExportOptionsFormHTML ( )
protected

Definition at line 506 of file class.ilObjContentObjectGUI.php.

507 {
508 $this->lng->loadLanguageModule('exp');
509 $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
510 $items = [];
511 if ($ot->getContentTranslationActivated()) {
512 $this->lng->loadLanguageModule("meta");
513 $langs = $ot->getLanguages();
514 foreach ($langs as $l => $ldata) {
515 $items["html_" . $l] = $this->lng->txt("meta_l_" . $l);
516 }
517 $items["html_all"] = $this->lng->txt("cont_all_languages");
518 }
519 if (!$ot->getContentTranslationActivated()) {
520 $items["exportHTML"] = "HTML";
521 }
522 $select = $this->ui->factory()->input()->field()->select($this->lng->txt("language"), $items)
523 ->withRequired(true);
524 $section = $this->ui->factory()->input()->field()->section(
525 [$select],
526 $this->lng->txt("export_options")
527 );
528 return $this->ui->factory()->input()->container()->form()->standard(
529 $this->ctrl->getLinkTargetByClass(ilObjContentObjectGUI::class, "doExportHTML"),
530 [$section]
531 )->withSubmitLabel($this->lng->txt("export"));
532 }
This describes a standard form.
Definition: Standard.php:30

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().

Referenced by doExportHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildExportOptionsFormXML()

ilObjContentObjectGUI::buildExportOptionsFormXML ( )
protected

Definition at line 534 of file class.ilObjContentObjectGUI.php.

535 {
536 $this->lng->loadLanguageModule('exp');
537 $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
538 $items = [];
539 if ($ot->getContentTranslationActivated()) {
540 $items["xml_master"] = $this->lng->txt("cont_master_language_only");
541 $items["xml_masternomedia"] = $this->lng->txt("cont_master_language_only_no_media");
542 $this->lng->loadLanguageModule("meta");
543 $langs = $ot->getLanguages();
544 }
545 $select = $this->ui->factory()->input()->field()->select($this->lng->txt("export_type"), $items)
546 ->withRequired(true);
547 $section = $this->ui->factory()->input()->field()->section(
548 [$select],
549 $this->lng->txt("export_options")
550 );
551 return $this->ui->factory()->input()->container()->form()->standard(
552 $this->ctrl->getLinkTargetByClass(ilObjContentObjectGUI::class, "doExportXML"),
553 [$section]
554 )->withSubmitLabel($this->lng->txt("export"));
555 }

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().

Referenced by doExportXML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cancel()

ilObjContentObjectGUI::cancel ( )

Definition at line 1494 of file class.ilObjContentObjectGUI.php.

1494 : void
1495 {
1496 if ($this->requested_new_type == "pg") {
1497 $this->ctrl->redirect($this, "pages");
1498 } else {
1499 $this->ctrl->redirect($this, "chapters");
1500 }
1501 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ cancelDelete()

ilObjContentObjectGUI::cancelDelete ( )

Definition at line 1086 of file class.ilObjContentObjectGUI.php.

1086 : void
1087 {
1088 $this->ctrl->redirect($this, $this->requested_backcmd);
1089 }

References ILIAS\Repository\ctrl().

Referenced by delete().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ chapters()

ilObjContentObjectGUI::chapters ( )

show chapters

Definition at line 1140 of file class.ilObjContentObjectGUI.php.

1140 : void
1141 {
1142 $this->gui->ctrl()->setParameterByClass(EditSubObjectsGUI::class, "sub_type", "st");
1143 $this->gui->ctrl()->redirectByClass(EditSubObjectsGUI::class);
1144 }

◆ checkCtrlPath()

ilObjContentObjectGUI::checkCtrlPath ( )
protected

Definition at line 158 of file class.ilObjContentObjectGUI.php.

158 : void
159 {
160 if (!$this->getCreationMode()) {
161 $baseclass = strtolower($this->requested_baseClass);
162 $next_class = strtolower($this->ctrl->getNextClass());
163 // all calls must be routed through illmpresentationgui or
164 // illmeditorgui...
165 if (!in_array($baseclass, ["illmpresentationgui", "illmeditorgui"])) {
166 // ...except the comman action handler routes to
167 // activation/condition GUI, see https://mantis.ilias.de/view.php?id=32858
168 if (in_array($next_class, ["ilcommonactiondispatchergui"])) {
169 return;
170 }
171 throw new ilLMException("Wrong ctrl path");
172 }
173 }
174 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ILIAS\Repository\ctrl(), and ilObjectGUI\getCreationMode().

+ Here is the call graph for this function:

◆ confirmedDelete()

ilObjContentObjectGUI::confirmedDelete ( int  $a_parent_subobj_id = 0)

delete page object or structure objects

Parameters
int$a_parent_subobj_idid of parent object (structure object) of the objects, that should be deleted (or no parent object id for top level)

Definition at line 1098 of file class.ilObjContentObjectGUI.php.

1098 : void
1099 {
1100 $tree = new ilLMTree($this->lm->getId());
1101
1102 $ids = $this->edit_request->getIds();
1103
1104 // check number of objects
1105 if (count($ids) == 0) {
1106 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"));
1107 $this->ctrl->redirect($this, "cancelDelete");
1108 }
1109
1110 // delete all selected objects
1111 foreach ($ids as $id) {
1112 if ($id != ilTree::POS_FIRST_NODE) {
1113 $obj = ilLMObjectFactory::getInstance($this->lm, $id, false);
1114 $node_data = $tree->getNodeData($id);
1115 if (is_object($obj)) {
1116 $obj->setLMId($this->lm->getId());
1117 $obj->delete();
1118 }
1119 if ($tree->isInTree($id)) {
1120 $tree->deleteTree($node_data);
1121 }
1122 }
1123 }
1124
1125 // check the tree
1126 $this->lm->checkTree();
1127
1128 // feedback
1129 $this->tpl->setOnScreenMessage('success', $this->lng->txt("info_deleted"), true);
1130
1131 if ($a_parent_subobj_id == 0) {
1132 $this->ctrl->redirect($this, $this->requested_backcmd);
1133 }
1134 }
static getInstance(ilObjLearningModule $a_content_obj, int $a_id=0, bool $a_halt=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isInTree(?int $a_node_id)
get all information of a node.
getNodeData(int $a_node_id, ?int $a_tree_pk=null)
get all information of a node.
deleteTree(array $a_node)
delete node and the whole subtree under this node
const POS_FIRST_NODE

References ilObjectGUI\$id, ilObjectGUI\$tree, ILIAS\Repository\ctrl(), ilTree\deleteTree(), ilLMObjectFactory\getInstance(), ilTree\getNodeData(), ilTree\isInTree(), ILIAS\Repository\lng(), and ilTree\POS_FIRST_NODE.

+ Here is the call graph for this function:

◆ confirmGlossarySelection()

ilObjContentObjectGUI::confirmGlossarySelection ( )

Definition at line 2766 of file class.ilObjContentObjectGUI.php.

2766 : void
2767 {
2768 $ilCtrl = $this->ctrl;
2769 $tpl = $this->tpl;
2770 $lng = $this->lng;
2771
2772 $cgui = new ilConfirmationGUI();
2773 $ilCtrl->setParameter($this, "glo_ref_id", $this->requested_root_id);
2774 $cgui->setFormAction($ilCtrl->getFormAction($this));
2775 $cgui->setHeaderText($lng->txt("cont_link_glo_in_lm"));
2776 $cgui->setCancel($lng->txt("no"), "selectLMGlossary");
2777 $cgui->setConfirm($lng->txt("yes"), "selectLMGlossaryLink");
2778 $tpl->setContent($cgui->getHTML());
2779 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilGlobalTemplateInterface $tpl
setContent(string $a_html)
Sets content for standard template.

References $lng.

◆ copyChapter()

ilObjContentObjectGUI::copyChapter ( )

Definition at line 1468 of file class.ilObjContentObjectGUI.php.

1468 : void
1469 {
1470 $this->copyItems();
1471 }
copyItems(array $ids)
Copy items to clipboard.

◆ copyItems()

ilObjContentObjectGUI::copyItems ( array  $ids)

Copy items to clipboard.

Definition at line 2356 of file class.ilObjContentObjectGUI.php.

2356 : void
2357 {
2358 $ilCtrl = $this->ctrl;
2359 $lng = $this->lng;
2360
2361 if (count($ids) == 0) {
2362 $this->tpl->setOnScreenMessage('failure', $lng->txt("no_checkbox"), true);
2363 $ilCtrl->redirect($this, "chapters");
2364 }
2365
2366 $todel = array(); // delete IDs < 0 (needed for non-js editing)
2367 foreach ($ids as $k => $item) {
2368 if ($item < 0) {
2369 $todel[] = $k;
2370 }
2371 }
2372 foreach ($todel as $k) {
2373 unset($ids[$k]);
2374 }
2375 ilLMObject::clipboardCopy($this->lm->getId(), $ids);
2377 $this->tpl->setOnScreenMessage('info', $lng->txt("cont_selected_items_have_been_copied"), true);
2378 $ilCtrl->redirect($this, "chapters");
2379 }
static setAction(string $a_action)
static clipboardCopy(int $a_cont_obj_id, array $a_ids)
Copy a set of chapters/pages into the clipboard.

References $lng, ilLMObject\clipboardCopy(), and ilEditClipboard\setAction().

+ Here is the call graph for this function:

◆ copyPage()

ilObjContentObjectGUI::copyPage ( )

Definition at line 1350 of file class.ilObjContentObjectGUI.php.

1350 : void
1351 {
1352 $ids = $this->edit_request->getIds();
1353 if (count($ids) == 0) {
1354 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"));
1355 $this->ctrl->redirect($this, "pages");
1356 }
1357
1358 ilLMObject::clipboardCopy($this->lm->getId(), $ids);
1360
1361 $this->tpl->setOnScreenMessage('info', $this->lng->txt("cont_selected_items_have_been_copied"), true);
1362
1363 $this->ctrl->redirect($this, "pages");
1364 }

References ilLMObject\clipboardCopy(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilEditClipboard\setAction().

+ Here is the call graph for this function:

◆ cutChapter()

ilObjContentObjectGUI::cutChapter ( )

Cut chapter(s)

Definition at line 2384 of file class.ilObjContentObjectGUI.php.

2384 : void
2385 {
2386 $this->cutItems("chapters");
2387 }

◆ cutItems()

ilObjContentObjectGUI::cutItems ( array  $ids)

Definition at line 2327 of file class.ilObjContentObjectGUI.php.

2327 : void
2328 {
2329 $ilCtrl = $this->ctrl;
2330 $lng = $this->lng;
2331
2332 if (count($ids) == 0) {
2333 $this->tpl->setOnScreenMessage('failure', $lng->txt("no_checkbox"), true);
2334 $ilCtrl->redirect($this, $this->edit_request->getBackCmd());
2335 }
2336
2337 $todel = array(); // delete IDs < 0 (needed for non-js editing)
2338 foreach ($ids as $k => $item) {
2339 if ($item < 0) {
2340 $todel[] = $k;
2341 }
2342 }
2343 foreach ($todel as $k) {
2344 unset($ids[$k]);
2345 }
2346 ilLMObject::clipboardCut($this->lm->getId(), $ids);
2348 $this->tpl->setOnScreenMessage('info', $lng->txt("cont_selected_items_have_been_cut"), true);
2349
2350 $ilCtrl->redirect($this, $this->edit_request->getBackCmd());
2351 }
static clipboardCut(int $a_cont_obj_id, array $a_ids)
Copy a set of chapters/pages into the clipboard.

References $lng, ilLMObject\clipboardCut(), and ilEditClipboard\setAction().

+ Here is the call graph for this function:

◆ delete()

ilObjContentObjectGUI::delete ( int  $a_parent_subobj_id = 0)

confirm deletion screen for free pages (other usages do not apply anymore)

Definition at line 1040 of file class.ilObjContentObjectGUI.php.

1040 : void
1041 {
1042 $ids = $this->edit_request->getIds();
1043
1044 if (count($ids) == 0) {
1045 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
1046 $this->cancelDelete();
1047 }
1048
1049 if (count($ids) == 1 && $ids[0] == ilTree::POS_FIRST_NODE) {
1050 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_item"), true);
1051 $this->cancelDelete();
1052 }
1053
1054 if ($a_parent_subobj_id == 0) {
1055 $this->setTabs("content");
1056 }
1057
1058 if ($a_parent_subobj_id != 0) {
1059 $this->ctrl->setParameterByClass("ilStructureObjectGUI", "backcmd", $this->requested_backcmd);
1060 $this->ctrl->setParameterByClass("ilStructureObjectGUI", "obj_id", $a_parent_subobj_id);
1061 $form_action = $this->ctrl->getFormActionByClass("ilStructureObjectGUI");
1062 } else {
1063 $this->ctrl->setParameter($this, "backcmd", $this->requested_backcmd);
1064 $form_action = $this->ctrl->getFormAction($this);
1065 }
1066
1067 // display confirmation message
1068 $cgui = new ilConfirmationGUI();
1069 $cgui->setFormAction($form_action);
1070 $cgui->setHeaderText($this->lng->txt("info_delete_sure"));
1071 $cgui->setCancel($this->lng->txt("cancel"), "cancelDelete");
1072 $cgui->setConfirm($this->lng->txt("confirm"), "confirmedDelete");
1073
1074 foreach ($ids as $id) {
1075 if ($id != ilTree::POS_FIRST_NODE) {
1076 $obj = new ilLMObject($this->lm, $id);
1077 $caption = $obj->getTitle();
1078
1079 $cgui->addItem("id[]", $id, $caption);
1080 }
1081 }
1082
1083 $this->tpl->setContent($cgui->getHTML());
1084 }
Class ilLMObject.

References ilObjectGUI\$form_action, ilObjectGUI\$id, cancelDelete(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilTree\POS_FIRST_NODE, and ilObjectGUI\setTabs().

+ Here is the call graph for this function:

◆ deleteMenuEntry()

ilObjContentObjectGUI::deleteMenuEntry ( )

Definition at line 2133 of file class.ilObjContentObjectGUI.php.

2133 : void
2134 {
2135 if (empty($this->requested_menu_entry)) {
2136 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_menu_entry_id"), true);
2137 $this->ctrl->redirect($this, "editMenuProperties");
2138 }
2139
2140 $this->__initLMMenuEditor();
2141 $this->lmme_obj->delete($this->requested_menu_entry);
2142
2143 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_entry_removed"), true);
2144 $this->ctrl->redirect($this, "editMenuProperties");
2145 }

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ deleteTooltips()

ilObjContentObjectGUI::deleteTooltips ( )

Definition at line 2570 of file class.ilObjContentObjectGUI.php.

2570 : void
2571 {
2572 $lng = $this->lng;
2573 $ilCtrl = $this->ctrl;
2574
2575 $ids = $this->edit_request->getIds();
2576 if (count($ids) > 0) {
2577 foreach ($ids as $id) {
2578 $this->help->internal()->domain()->tooltips()->deleteTooltip($id);
2579 }
2580 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2581 }
2582 $ilCtrl->redirect($this, "showTooltipList");
2583 }

References $id, $lng, and ILIAS\Repository\help().

+ Here is the call graph for this function:

◆ doExportHTML()

ilObjContentObjectGUI::doExportHTML ( )
protected

Definition at line 599 of file class.ilObjContentObjectGUI.php.

599 : void
600 {
601 $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
602 $form = $this->buildExportOptionsFormHTML()->withRequest($this->request);
603 $lang = "";
604 if ($ot->getContentTranslationActivated() and !is_null($form->getData())) {
605 $format = explode("_", $form->getData()[0][0]);
606 $lang = ilUtil::stripSlashes($format[1]);
607 }
608 if ($ot->getContentTranslationActivated() and is_null($form->getData())) {
609 $this->addHeaderAction();
610 $this->addLocations(true);
611 $this->setTabs("export");
612 $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($form));
613 return;
614 }
615 $cont_exp = new ilContObjectExport($this->lm, "html", $lang);
616 $cont_exp->buildExportFile();
617 $this->ctrl->redirectByClass(ilExportGUI::class, ilExportGUI::CMD_LIST_EXPORT_FILES);
618 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const CMD_LIST_EXPORT_FILES
addLocations(bool $a_omit_obj_id=false)
display locator
addHeaderAction()
Add header action menu.

References $form, ilObjectGUI\addHeaderAction(), addLocations(), buildExportOptionsFormHTML(), ilExportGUI\CMD_LIST_EXPORT_FILES, ILIAS\Repository\ctrl(), ilObjectGUI\setTabs(), ilUtil\stripSlashes(), and ILIAS\Repository\ui().

Referenced by showExportOptionsHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doExportXML()

ilObjContentObjectGUI::doExportXML ( )
protected

Definition at line 579 of file class.ilObjContentObjectGUI.php.

579 : void
580 {
581 $form = $this->buildExportOptionsFormXML()->withRequest($this->request);
582 $format = "";
583 if (!is_null($form->getData())) {
584 $format = explode("_", $form->getData()[0][0]);
585 }
586 if (is_null($form->getData())) {
587 $this->addHeaderAction();
588 $this->addLocations(true);
589 $this->setTabs("export");
590 $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($form));
591 return;
592 }
593 $opt = ilUtil::stripSlashes($format[1]);
594 $cont_exp = new ilContObjectExport($this->lm);
595 $cont_exp->buildExportFile($opt);
596 $this->ctrl->redirectByClass(ilExportGUI::class, ilExportGUI::CMD_LIST_EXPORT_FILES);
597 }

References $form, ilObjectGUI\addHeaderAction(), addLocations(), buildExportOptionsFormXML(), ilExportGUI\CMD_LIST_EXPORT_FILES, ILIAS\Repository\ctrl(), ilObjectGUI\setTabs(), ilUtil\stripSlashes(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ editGlossaries()

ilObjContentObjectGUI::editGlossaries ( )

Edit automatically linked glossaries.

Definition at line 2719 of file class.ilObjContentObjectGUI.php.

2719 : void
2720 {
2721 $tpl = $this->tpl;
2722 $ilToolbar = $this->toolbar;
2723 $lng = $this->lng;
2724 $ilCtrl = $this->ctrl;
2725 $ilTabs = $this->tabs;
2726
2727 $this->setTabs();
2728 $ilTabs->setTabActive("settings");
2729 $this->setSubTabs("cont_glossaries");
2730
2731 $ilToolbar->addButton(
2732 $lng->txt("add"),
2733 $ilCtrl->getLinkTarget($this, "showLMGlossarySelector")
2734 );
2735
2736 $tab = new ilLMGlossaryTableGUI($this->lm, $this, "editGlossaries");
2737
2738 $tpl->setContent($tab->getHTML());
2739 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $lng.

◆ editMasterLanguage()

ilObjContentObjectGUI::editMasterLanguage ( )

Definition at line 2818 of file class.ilObjContentObjectGUI.php.

2818 : void
2819 {
2820 $ilCtrl = $this->ctrl;
2821
2822 $ilCtrl->setParameter($this, "transl", "-");
2823 if ($this->lang_switch_mode == "short_titles") {
2824 $ilCtrl->redirectByClass("illmeditshorttitlesgui", "");
2825 }
2826 $ilCtrl->redirect($this, "chapters");
2827 }
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
@inheritDoc

◆ editMenuEntry()

ilObjContentObjectGUI::editMenuEntry ( ?ilPropertyFormGUI  $form = null)

Definition at line 2147 of file class.ilObjContentObjectGUI.php.

2147 : void
2148 {
2149 $ilToolbar = $this->toolbar;
2150 $ilCtrl = $this->ctrl;
2151 $ilTabs = $this->tabs;
2152
2153 $this->setTabs();
2154
2155 $ilTabs->setTabActive("settings");
2156 $this->setSubTabs("cont_lm_menu");
2157
2158
2159 if (empty($this->requested_menu_entry)) {
2160 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_menu_entry_id"), true);
2161 $this->ctrl->redirect($this, "editMenuProperties");
2162 }
2163
2164 $ilCtrl->saveParameter($this, array("menu_entry"));
2165 $ilToolbar->addButton(
2166 $this->lng->txt("lm_menu_select_internal_object"),
2167 $ilCtrl->getLinkTarget($this, "showEntrySelector")
2168 );
2169
2170 if (is_null($form)) {
2171 $form = $this->initMenuEntryForm("edit");
2172 }
2173 $this->tpl->setContent($form->getHTML());
2174 }

References ILIAS\Repository\ctrl(), ilPropertyFormGUI\getHTML(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ editMenuProperties()

ilObjContentObjectGUI::editMenuProperties ( )

Definition at line 958 of file class.ilObjContentObjectGUI.php.

958 : void
959 {
961 $ilTabs = $this->tabs;
962 $ilCtrl = $this->ctrl;
964 $ilToolbar = $this->toolbar;
965
966 $lng->loadLanguageModule("style");
967 $this->setTabs();
968 $ilTabs->setTabActive("settings");
969 $this->setSubTabs("cont_lm_menu");
970
971 $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
972 $ilToolbar->addFormButton($this->lng->txt("add_menu_entry"), "addMenuEntry");
973 $ilToolbar->setCloseFormTag(false);
974
975 $form = $this->initMenuForm();
976 $form->setOpenTag(false);
977 $form->setCloseTag(false);
978
979 $this->__initLMMenuEditor();
980 $entries = $this->lmme_obj->getMenuEntries();
981 $table = new ilLMMenuItemsTableGUI($this, "editMenuProperties", $this->lmme_obj);
982 $table->setOpenFormTag(false);
983
984 $tpl->setContent($form->getHTML() . "<br />" . $table->getHTML());
985 }
setCloseTag(bool $a_val)
setOpenTag(bool $a_open)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ilObjectGUI\$ctrl, $form, ilObjectGUI\$lng, $tabs, ilObjectGUI\$toolbar, ilObjectGUI\$tpl, __initLMMenuEditor(), ilPropertyFormGUI\getHTML(), initMenuForm(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ilFormGUI\setCloseTag(), ILIAS\UICore\GlobalTemplate\setContent(), ilFormGUI\setOpenTag(), setSubTabs(), and ilObjectGUI\setTabs().

+ Here is the call graph for this function:

◆ export()

ilObjContentObjectGUI::export ( )

Definition at line 1503 of file class.ilObjContentObjectGUI.php.

1503 : void
1504 {
1505 $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
1506 $opt = "";
1507 if ($ot->getContentTranslationActivated()) {
1508 $format = explode("_", $this->edit_request->getFormat());
1509 $opt = ilUtil::stripSlashes($format[1]);
1510 }
1511
1512
1513 $cont_exp = new ilContObjectExport($this->lm);
1514 $cont_exp->buildExportFile($opt);
1515 }

References ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ exportHTML()

ilObjContentObjectGUI::exportHTML ( )

Definition at line 1543 of file class.ilObjContentObjectGUI.php.

1543 : void
1544 {
1545 $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
1546 $lang = "";
1547 if ($ot->getContentTranslationActivated()) {
1548 $format = explode("_", $this->edit_request->getFormat());
1549 $lang = ilUtil::stripSlashes($format[1]);
1550 }
1551 $cont_exp = new ilContObjectExport($this->lm, "html", $lang);
1552 $cont_exp->buildExportFile();
1553 }

References ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ filterHelpChapters()

ilObjContentObjectGUI::filterHelpChapters ( )

Definition at line 2426 of file class.ilObjContentObjectGUI.php.

2426 : void
2427 {
2428 $ilCtrl = $this->ctrl;
2429 ilSession::set("help_chap", $this->edit_request->getHelpChap());
2430 $ilCtrl->redirect($this, "showExportIDsOverview");
2431 }

References ilSession\set().

+ Here is the call graph for this function:

◆ filterTooltips()

ilObjContentObjectGUI::filterTooltips ( )

Definition at line 2542 of file class.ilObjContentObjectGUI.php.

2542 : void
2543 {
2544 $ilCtrl = $this->ctrl;
2545
2547 "help_tt_comp",
2548 $this->edit_request->getTooltipComponent()
2549 );
2550 $ilCtrl->redirect($this, "showTooltipList");
2551 }

References ilSession\set().

+ Here is the call graph for this function:

◆ fixTree()

ilObjContentObjectGUI::fixTree ( )

Definition at line 1536 of file class.ilObjContentObjectGUI.php.

1536 : void
1537 {
1538 $this->lm->fixTree();
1539 $this->tpl->setOnScreenMessage('success', $this->lng->txt("cont_tree_fixed"), true);
1540 $this->ctrl->redirect($this, "showMaintenance");
1541 }

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ fixTreeConfirm()

ilObjContentObjectGUI::fixTreeConfirm ( )

Definition at line 1517 of file class.ilObjContentObjectGUI.php.

1517 : void
1518 {
1519 $this->setTabs();
1520 $this->setContentSubTabs("maintenance");
1521
1522 // display confirmation message
1523 $cgui = new ilConfirmationGUI();
1524 $cgui->setFormAction($this->ctrl->getFormAction($this));
1525 $cgui->setHeaderText($this->lng->txt("cont_fix_tree_confirm"));
1526 $cgui->setCancel($this->lng->txt("cancel"), "showMaintenance");
1527 $cgui->setConfirm($this->lng->txt("cont_fix_tree"), "fixTree");
1528 $issues = $this->lm->checkStructure();
1529 $mess = "";
1530 if (count($issues) > 0) {
1531 $mess = "Found Issues: <br>" . implode("<br>", $issues);
1532 }
1533 $this->tpl->setContent($cgui->getHTML() . $mess);
1534 }

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getBlockedUsersMailSignature()

ilObjContentObjectGUI::getBlockedUsersMailSignature ( )
protected

Definition at line 1709 of file class.ilObjContentObjectGUI.php.

1709 : string
1710 {
1711 $link = chr(13) . chr(10) . chr(13) . chr(10);
1712 $link .= $this->lng->txt('cont_blocked_users_mail_link');
1713 $link .= chr(13) . chr(10) . chr(13) . chr(10);
1714 $link .= ilLink::_getLink($this->lm->getRefId());
1715 return rawurlencode(base64_encode($link));
1716 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getContextPath()

ilObjContentObjectGUI::getContextPath ( int  $a_endnode_id,
int  $a_startnode_id = 1 
)

Definition at line 1366 of file class.ilObjContentObjectGUI.php.

1369 : string {
1370 $path = "";
1371
1372 $tmpPath = $this->lm_tree->getPathFull($a_endnode_id, $a_startnode_id);
1373
1374 // count -1, to exclude the learning module itself
1375 for ($i = 1; $i < (count($tmpPath) - 1); $i++) {
1376 if ($path != "") {
1377 $path .= " > ";
1378 }
1379
1380 $path .= $tmpPath[$i]["title"];
1381 }
1382
1383 return $path;
1384 }

References $path.

◆ getLayoutOption()

static ilObjContentObjectGUI::getLayoutOption ( string  $a_txt,
string  $a_var,
string  $a_def_option = "" 
)
static

Definition at line 2589 of file class.ilObjContentObjectGUI.php.

2594 global $DIC;
2595
2596 $im_tag = "";
2597
2598 $lng = $DIC->language();
2599
2600 // default layout
2601 $layout = new ilRadioGroupInputGUI($a_txt, $a_var);
2602 if ($a_def_option != "") {
2603 if (is_file($im = ilUtil::getImagePath("layout_" . $a_def_option . ".png"))) {
2604 $im_tag = ilUtil::img($im, $a_def_option);
2605 }
2606 $layout->addOption(new ilRadioOption("<table><tr><td>" . $im_tag . "</td><td><strong>" .
2607 $lng->txt("cont_lm_default_layout") .
2608 "</strong>: " . $lng->txt("cont_layout_" . $a_def_option) .
2609 "</td></tr></table>", ""));
2610 }
2611 foreach (ilObjContentObject::getAvailableLayouts() as $l) {
2612 $im_tag = "";
2613 if (is_file($im = ilUtil::getImagePath("layout_" . $l . ".png"))) {
2614 $im_tag = ilUtil::img($im, $l);
2615 }
2616 $layout->addOption(new ilRadioOption("<table><tr><td style='padding: 0px 5px 5px;'>" .
2617 $im_tag . "</td><td style='padding:5px;'><strong>" . $lng->txt("cont_layout_" . $l) . "</strong>: " .
2618 $lng->txt("cont_layout_" . $l . "_desc") . "</td></tr></table>", $l));
2619 }
2620
2621 return $layout;
2622 }
static getAvailableLayouts()
get all available lm layouts
This class represents a property in a property form.
This class represents an option in a radio group.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.

Referenced by ilStructureObjectGUI\initSetPageLayoutForm().

+ Here is the caller graph for this function:

◆ getMultiLangHeader()

static ilObjContentObjectGUI::getMultiLangHeader ( int  $a_lm_id,
object  $a_gui_class,
string  $a_mode = "" 
)
static

Definition at line 1146 of file class.ilObjContentObjectGUI.php.

1150 : string {
1151 global $DIC;
1152
1153 $lng = $DIC->language();
1154 $ilCtrl = $DIC->ctrl();
1155 $ilDB = $DIC->database();
1156
1158 ->learningModule()
1159 ->internal()
1160 ->gui()
1161 ->editing()
1162 ->request();
1163
1164 $ui_renderer = $DIC->ui()->renderer();
1165 $ui_factory = $DIC->ui()->factory();
1166
1169
1170 $ml_head = "";
1171
1172 // multi language
1173 $ot = (new TranslationsRepository($ilDB))->getFor($a_lm_id);
1174 if ($ot->getContentTranslationActivated()) {
1175 $ilCtrl->setParameter($a_gui_class, "lang_switch_mode", $a_mode);
1176 $lng->loadLanguageModule("meta");
1177
1178 // info
1179 $ml_gui = new ilPageMultiLangGUI("lm", $a_lm_id);
1180 $ml_head = $ml_gui->getMultiLangInfo($requested_transl);
1181
1182 $actions = [];
1183
1184 // language switch
1185 $entries = false;
1186 if (!in_array($requested_transl, array("", "-"))) {
1187 $l = $ot->getBaseLanguage();
1188 $actions[] = $ui_factory->link()->standard(
1189 $lng->txt("cont_edit_language_version") . ": " .
1190 $lng->txt("meta_l_" . $l),
1191 $ilCtrl->getLinkTarget($a_gui_class, "editMasterLanguage")
1192 );
1193 $entries = true;
1194 }
1195
1196 foreach ($ot->getLanguages() as $al => $lang) {
1197 if ($requested_transl != $al &&
1198 $al != $ot->getBaseLanguage()) {
1199 $ilCtrl->setParameter($a_gui_class, "totransl", $al);
1200 $actions[] = $ui_factory->link()->standard(
1201 $lng->txt("cont_edit_language_version") . ": " .
1202 $lng->txt("meta_l_" . $al),
1203 $ilCtrl->getLinkTarget($a_gui_class, "switchToLanguage")
1204 );
1205 $ilCtrl->setParameter($a_gui_class, "totransl", $requested_totransl);
1206 }
1207 $entries = true;
1208 }
1209
1210 if ($entries) {
1211 $dd = $ui_factory->dropdown()->standard($actions)->withLabel($lng->txt("actions"));
1212
1213 $ml_head = '<div class="ilFloatLeft">' . $ml_head . '</div><div style="margin: 5px 0;" class="small ilRight">' . $ui_renderer->render($dd) . "</div>";
1214 }
1215 $ilCtrl->setParameter($a_gui_class, "lang_switch_mode", "");
1216 }
1217
1218 return $ml_head;
1219 }
UIFactory $ui_factory
UIRenderer $ui_renderer
Page multilinguality GUI class.

References ilObjectGUI\$lng, $requested_totransl, $requested_transl, ilObjectGUI\$ui_factory, ilObjectGUI\$ui_renderer, ilLanguage\loadLanguageModule(), and ilLanguage\txt().

Referenced by ILIAS\LearningModule\Editing\EditSubObjectsGUI\list(), and ilLMEditShortTitlesGUI\listShortTitles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPropertiesFormValues()

ilObjContentObjectGUI::getPropertiesFormValues ( )

Get values for properties form.

Definition at line 773 of file class.ilObjContentObjectGUI.php.

773 : void
774 {
775 $ilUser = $this->user;
776
777 $values = array();
778
779 $title = $this->lm->getTitle();
780 $description = $this->lm->getLongDescription();
781 $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
782 if ($ot->getContentTranslationActivated()) {
783 $title = $ot->getDefaultTitle();
784 $description = $ot->getDefaultDescription();
785 }
786
787 $values["title"] = $title;
788 $values["description"] = $description;
789 if (!$this->lm->getOfflineStatus()) {
790 $values["cobj_online"] = true;
791 }
792 //$values["lm_layout"] = $this->lm->getLayout();
793 $values["lm_pg_header"] = $this->lm->getPageHeader();
794 if ($this->lm->isActiveNumbering()) {
795 $values["cobj_act_number"] = true;
796 }
797 $values["toc_mode"] = $this->lm->getTOCMode();
798 if ($this->lm->publicNotes()) {
799 $values["cobj_pub_notes"] = true;
800 }
801 if ($this->lm->cleanFrames()) {
802 $values["cobj_clean_frames"] = true;
803 }
804 //$values["layout_per_page"] = $this->lm->getLayoutPerPage();
805 $values["rating"] = $this->lm->hasRating();
806 $values["rating_pages"] = $this->lm->hasRatingPages();
807 $values["disable_def_feedback"] = $this->lm->getDisableDefaultFeedback();
808 $values["progr_icons"] = $this->lm->getProgressIcons();
809 $values["store_tries"] = (string) (int) $this->lm->getStoreTries();
810 $values["restrict_forw_nav"] = $this->lm->getRestrictForwardNavigation();
811
812 $values["notification_blocked_users"] = ilNotification::hasNotification(
814 $ilUser->getId(),
815 $this->lm->getId()
816 );
817
818 $values["cont_show_info_tab"] = $this->object->isInfoEnabled();
819 $this->form->setValuesByArray($values, true);
820 }
static hasNotification(int $type, int $user_id, int $id)
Check notification status for object and user.
form(?array $class_path, string $cmd, string $submit_caption="")

References ilObjectGUI\$user, ILIAS\Repository\form(), ilNotification\hasNotification(), and ilNotification\TYPE_LM_BLOCKED_USERS.

Referenced by properties().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initMenuEntryForm()

ilObjContentObjectGUI::initMenuEntryForm ( string  $a_mode = "edit")

Definition at line 2049 of file class.ilObjContentObjectGUI.php.

2050 {
2051 $lng = $this->lng;
2052 $ilCtrl = $this->ctrl;
2053
2054 $form = new ilPropertyFormGUI();
2055
2056 // title
2057 $ti = new ilTextInputGUI($this->lng->txt("lm_menu_entry_title"), "title");
2058 $ti->setMaxLength(255);
2059 $ti->setSize(40);
2060 $ti->setRequired(true);
2061 $form->addItem($ti);
2062
2063 // target
2064 $ta = new ilTextInputGUI($this->lng->txt("lm_menu_entry_target"), "target");
2065 $ta->setMaxLength(255);
2066 $ta->setSize(40);
2067 $ta->setRequired(true);
2068 $form->addItem($ta);
2069
2070 if ($a_mode == "edit") {
2071 $this->__initLMMenuEditor();
2072 $this->lmme_obj->readEntry($this->edit_request->getMenuEntry());
2073 $ti->setValue($this->lmme_obj->getTitle());
2074 $ta->setValue($this->lmme_obj->getTarget());
2075 }
2076
2077 if ($this->requested_link_ref_id > 0) {
2078 $link_ref_id = $this->requested_link_ref_id;
2079 $obj_type = ilObject::_lookupType($link_ref_id, true);
2080 $obj_id = ilObject::_lookupObjectId($link_ref_id);
2082
2083 $target_link = $obj_type . "_" . $link_ref_id;
2084 $ti->setValue($title);
2085 $ta->setValue($target_link);
2086
2087 // link ref id
2088 $hi = new ilHiddenInputGUI("link_ref_id");
2089 $hi->setValue($link_ref_id);
2090 $form->addItem($hi);
2091 }
2092
2093
2094 // save and cancel commands
2095 if ($a_mode == "create") {
2096 $form->addCommandButton("saveMenuEntry", $lng->txt("save"));
2097 $form->addCommandButton("editMenuProperties", $lng->txt("cancel"));
2098 $form->setTitle($lng->txt("lm_menu_new_entry"));
2099 } else {
2100 $form->addCommandButton("updateMenuEntry", $lng->txt("save"));
2101 $form->addCommandButton("editMenuProperties", $lng->txt("cancel"));
2102 $form->setTitle($lng->txt("lm_menu_edit_entry"));
2103 }
2104
2105 $form->setFormAction($ilCtrl->getFormAction($this));
2106
2107 return $form;
2108 }
setFormAction(string $a_formaction)
This class represents a hidden form property in a property form.
static _lookupObjectId(int $ref_id)
static _lookupType(int $id, bool $reference=false)
This class represents a property form user interface.
addCommandButton(string $a_cmd, string $a_text, string $a_id="")
This class represents a text property in a property form.

References $lng, ilObject\_lookupObjectId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ILIAS\Repository\lng(), ilFormGUI\setFormAction(), and ilPropertyFormGUI\setTitle().

+ Here is the call graph for this function:

◆ initMenuForm()

ilObjContentObjectGUI::initMenuForm ( )

Definition at line 916 of file class.ilObjContentObjectGUI.php.

917 {
919 $ilCtrl = $this->ctrl;
920
921 $form = new ilPropertyFormGUI();
922
923 // enable menu
924 $menu = new ilCheckboxInputGUI($this->lng->txt("cont_active"), "cobj_act_lm_menu");
925 $menu->setChecked($this->lm->isActiveLMMenu());
926 $form->addItem($menu);
927
928 // toc
929 /*
930 $toc = new ilCheckboxInputGUI($this->lng->txt("cont_toc"), "cobj_act_toc");
931
932 $toc->setChecked($this->lm->isActiveTOC());
933 $form->addItem($toc);*/
934
935 // print view
936 $print = new ilCheckboxInputGUI($this->lng->txt("cont_print_view"), "cobj_act_print");
937 $print->setChecked($this->lm->isActivePrintView());
938 $form->addItem($print);
939
940 // prevent glossary appendix
941 $glo = new ilCheckboxInputGUI($this->lng->txt("cont_print_view_pre_glo"), "cobj_act_print_prev_glo");
942 $glo->setChecked($this->lm->isActivePreventGlossaryAppendix());
943 $print->addSubItem($glo);
944
945 // hide header and footer in print view
946 $hhfp = new ilCheckboxInputGUI($this->lng->txt("cont_hide_head_foot_print"), "hide_head_foot_print");
947 $hhfp->setChecked($this->lm->getHideHeaderFooterPrint());
948 $print->addSubItem($hhfp);
949
950 $form->addCommandButton("saveMenuProperties", $lng->txt("save"));
951
952 $form->setTitle($lng->txt("cont_lm_menu"));
953 $form->setFormAction($ilCtrl->getFormAction($this));
954
955 return $form;
956 }
This class represents a checkbox property in a property form.

References ilObjectGUI\$ctrl, $form, ilObjectGUI\$lng, ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ILIAS\Repository\lng(), ilFormGUI\setFormAction(), ilPropertyFormGUI\setTitle(), and ilLanguage\txt().

Referenced by editMenuProperties(), and saveMenuProperties().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initPropertiesForm()

ilObjContentObjectGUI::initPropertiesForm ( )

Init properties form.

Definition at line 645 of file class.ilObjContentObjectGUI.php.

645 : void
646 {
647 $obj_service = $this->object_service;
648
649 $ilCtrl = $this->ctrl;
652
653 $this->form = new ilPropertyFormGUI();
654
655 // title
656 $ti = new ilTextInputGUI($lng->txt("title"), "title");
657 $ti->setRequired(true);
658 $this->form->addItem($ti);
659
660 // description
661 $ta = new ilTextAreaInputGUI($lng->txt("desc"), "description");
662 $this->form->addItem($ta);
663
664 $lng->loadLanguageModule("rep");
665 $section = new ilFormSectionHeaderGUI();
666 $section->setTitle($this->lng->txt('rep_activation_availability'));
667 $this->form->addItem($section);
668
669 // online
670 $online = new ilCheckboxInputGUI($lng->txt("cont_online"), "cobj_online");
671 $this->form->addItem($online);
672
673 // presentation
674 $section = new ilFormSectionHeaderGUI();
675 $section->setTitle($this->lng->txt('cont_presentation'));
676 $this->form->addItem($section);
677
678 // tile image
679 $obj_service->commonSettings()->legacyForm($this->form, $this->lm)->addTileImage();
680
681 // page header
682 $page_header = new ilSelectInputGUI($lng->txt("cont_page_header"), "lm_pg_header");
683 $option = array("st_title" => $this->lng->txt("cont_st_title"),
684 "pg_title" => $this->lng->txt("cont_pg_title"),
685 "none" => $this->lng->txt("cont_none"));
686 $page_header->setOptions($option);
687 $this->form->addItem($page_header);
688
689 // chapter numeration
690 $chap_num = new ilCheckboxInputGUI($lng->txt("cont_act_number"), "cobj_act_number");
691 $this->form->addItem($chap_num);
692
693 // toc mode
694 $toc_mode = new ilSelectInputGUI($lng->txt("cont_toc_mode"), "toc_mode");
695 $option = array("chapters" => $this->lng->txt("cont_chapters_only"),
696 "pages" => $this->lng->txt("cont_chapters_and_pages"));
697 $toc_mode->setOptions($option);
698 $this->form->addItem($toc_mode);
699
700 // show progress icons
701 $progr_icons = new ilCheckboxInputGUI($lng->txt("cont_progress_icons"), "progr_icons");
702 $progr_icons->setInfo($this->lng->txt("cont_progress_icons_info"));
703 $this->form->addItem($progr_icons);
704
705 $this->reading_time_gui->addSettingToForm($this->form);
706
707 // self assessment
708 $section = new ilFormSectionHeaderGUI();
709 $section->setTitle($this->lng->txt('cont_self_assessment'));
710 $this->form->addItem($section);
711
712 // tries
713 $radg = new ilRadioGroupInputGUI($lng->txt("cont_tries"), "store_tries");
714 $radg->setValue("0");
715 $op1 = new ilRadioOption($lng->txt("cont_tries_reset_on_visit"), "0", $lng->txt("cont_tries_reset_on_visit_info"));
716 $radg->addOption($op1);
717 $op2 = new ilRadioOption($lng->txt("cont_tries_store"), "1", $lng->txt("cont_tries_store_info"));
718 $radg->addOption($op2);
719 $this->form->addItem($radg);
720
721 // restrict forward navigation
722 $qfeed = new ilCheckboxInputGUI($lng->txt("cont_restrict_forw_nav"), "restrict_forw_nav");
723 $qfeed->setInfo($this->lng->txt("cont_restrict_forw_nav_info"));
724 $this->form->addItem($qfeed);
725
726 // notification
727 $not = new ilCheckboxInputGUI($lng->txt("cont_notify_on_blocked_users"), "notification_blocked_users");
728 $not->setInfo($this->lng->txt("cont_notify_on_blocked_users_info"));
729 $qfeed->addSubItem($not);
730
731 // disable default feedback for questions
732 $qfeed = new ilCheckboxInputGUI($lng->txt("cont_disable_def_feedback"), "disable_def_feedback");
733 $qfeed->setInfo($this->lng->txt("cont_disable_def_feedback_info"));
734 $this->form->addItem($qfeed);
735
736 // additional features
737 $section = new ilFormSectionHeaderGUI();
738 $section->setTitle($this->lng->txt('obj_features'));
739 $this->form->addItem($section);
740
741 // public notes
742 if (!$ilSetting->get('disable_comments')) {
743 $this->lng->loadLanguageModule("notes");
744 $pub_nodes = new ilCheckboxInputGUI($lng->txt("notes_comments"), "cobj_pub_notes");
745 $pub_nodes->setInfo($this->lng->txt("cont_lm_comments_desc"));
746 $this->form->addItem($pub_nodes);
747 }
748
749 // rating
750 $this->lng->loadLanguageModule('rating');
751 $rate = new ilCheckboxInputGUI($this->lng->txt('rating_activate_rating'), 'rating');
752 $rate->setInfo($this->lng->txt('rating_activate_rating_info'));
753 $this->form->addItem($rate);
754 $ratep = new ilCheckboxInputGUI($this->lng->txt('lm_activate_rating'), 'rating_pages');
755 $this->form->addItem($ratep);
756
757 $this->form->setTitle($lng->txt("cont_lm_properties"));
758 $this->form->addCommandButton("saveProperties", $lng->txt("save"));
759 $this->form->setFormAction($ilCtrl->getFormAction($this));
760
762 $this->object->getId(),
763 $this->form,
764 [
766 ]
767 );
768 }
This class represents a section header in a property form.
ilObjectService $object_service
ilSetting $settings
static initServiceSettingsForm(int $obj_id, ilPropertyFormGUI $form, array $services)
This class represents a selection list property in a property form.
This class represents a text area property in a property form.
global $ilSetting
Definition: privfeed.php:31

References ilObjectGUI\$ctrl, $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$object_service, ilObjectGUI\$settings, ILIAS\Repository\form(), ilObjectServiceSettingsGUI\INFO_TAB_VISIBILITY, ilObjectServiceSettingsGUI\initServiceSettingsForm(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\object(), and ilLanguage\txt().

Referenced by properties(), and saveProperties().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initSetPageLayoutForm()

ilObjContentObjectGUI::initSetPageLayoutForm ( )

Definition at line 2661 of file class.ilObjContentObjectGUI.php.

2661 : void
2662 {
2663 $lng = $this->lng;
2664 $ilCtrl = $this->ctrl;
2665
2666 $this->form = new ilPropertyFormGUI();
2667
2668 $ids = $this->edit_request->getIds();
2669 foreach ($ids as $id) {
2670 $hi = new ilHiddenInputGUI("id[]");
2671 $hi->setValue($id);
2672 $this->form->addItem($hi);
2673 }
2674 $layout = self::getLayoutOption(
2675 $lng->txt("cont_layout"),
2676 "layout",
2677 $this->lm->getLayout()
2678 );
2679 $this->form->addItem($layout);
2680
2681 $this->form->addCommandButton("savePageLayout", $lng->txt("save"));
2682 $this->form->addCommandButton("pages", $lng->txt("cancel"));
2683
2684 $this->form->setTitle($lng->txt("cont_set_layout"));
2685 $this->form->setFormAction($ilCtrl->getFormAction($this));
2686 }
static getLayoutOption(string $a_txt, string $a_var, string $a_def_option="")

References $id, $lng, and ILIAS\Repository\form().

+ Here is the call graph for this function:

◆ learningProgress()

ilObjContentObjectGUI::learningProgress ( )
protected

Learning progress.

Definition at line 2849 of file class.ilObjContentObjectGUI.php.

2849 : void
2850 {
2851 $this->ctrl->redirectByClass(array('illearningprogressgui'), '');
2852 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ listBlockedUsers()

ilObjContentObjectGUI::listBlockedUsers ( )

Definition at line 1636 of file class.ilObjContentObjectGUI.php.

1636 : void
1637 {
1638 $tpl = $this->tpl;
1639
1640 $this->setTabs("questions");
1641 $this->setQuestionsSubTabs("blocked_users");
1642
1643 $table = new ilLMBlockedUsersTableGUI($this, "listBlockedUsers", $this->lm);
1644 $tpl->setContent($table->getHTML());
1645 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ listLinks()

ilObjContentObjectGUI::listLinks ( )

List all broken links.

Definition at line 1246 of file class.ilObjContentObjectGUI.php.

1246 : void
1247 {
1248 $tpl = $this->tpl;
1249
1250 $this->setTabs();
1251 $this->setContentSubTabs("internal_links");
1252
1253 $table_gui = new ilLinksTableGUI(
1254 $this,
1255 "listLinks",
1256 $this->lm->getId(),
1257 $this->lm->getType()
1258 );
1259
1260 $tpl->setContent($table_gui->getHTML());
1261 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ listQuestions()

ilObjContentObjectGUI::listQuestions ( )

Definition at line 1608 of file class.ilObjContentObjectGUI.php.

1608 : void
1609 {
1610 $tpl = $this->tpl;
1611
1612 $this->setTabs("questions");
1613 $this->setQuestionsSubTabs("question_stats");
1614
1615 $table = new ilLMQuestionListTableGUI($this, "listQuestions", $this->lm);
1616 $tpl->setContent($table->getHTML());
1617 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ listQuestionUsages()

ilObjContentObjectGUI::listQuestionUsages ( )

Definition at line 1619 of file class.ilObjContentObjectGUI.php.

1619 : void
1620 {
1621 $tpl = $this->tpl;
1622
1623 $this->setTabs("questions");
1624 $this->setQuestionsSubTabs("question_usage");
1625
1626 $table_builder = new QuestionUsageTableBuilder(
1627 $this,
1628 'listQuestionUsages',
1629 $this->lm->getId()
1630 );
1631 $table = $table_builder->getTable();
1632 $tpl->setContent($table->render());
1633 }

◆ moveChapter()

ilObjContentObjectGUI::moveChapter ( int  $a_parent_subobj_id = 0)

move a single chapter (selection)

Definition at line 1433 of file class.ilObjContentObjectGUI.php.

1433 : void
1434 {
1435 $ids = $this->edit_request->getIds();
1436 if (count($ids) == 0) {
1437 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"));
1438 if ($a_parent_subobj_id == 0) {
1439 $this->ctrl->redirect($this, "chapters");
1440 }
1441 return;
1442 }
1443 if (count($ids) > 1) {
1444 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_max_one_item"));
1445 if ($a_parent_subobj_id == 0) {
1446 $this->ctrl->redirect($this, "chapters");
1447 }
1448 return;
1449 }
1450
1451 if (count($ids) == 1 && $ids[0] == ilTree::POS_FIRST_NODE) {
1452 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_item"));
1453 if ($a_parent_subobj_id == 0) {
1454 $this->ctrl->redirect($this, "chapters");
1455 }
1456 }
1457
1458 // SAVE POST VALUES
1459 ilEditClipboard::storeContentObject("st", $ids[0], "move");
1460
1461 $this->tpl->setOnScreenMessage('info', $this->lng->txt("cont_chap_select_target_now"), true);
1462
1463 if ($a_parent_subobj_id == 0) {
1464 $this->ctrl->redirect($this, "chapters");
1465 }
1466 }
static storeContentObject(string $a_type, int $a_id, string $a_action="cut")

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilTree\POS_FIRST_NODE, and ilEditClipboard\storeContentObject().

+ Here is the call graph for this function:

◆ movePage()

ilObjContentObjectGUI::movePage ( )

Definition at line 1478 of file class.ilObjContentObjectGUI.php.

1478 : void
1479 {
1480 $ids = $this->edit_request->getIds();
1481 if (count($ids) == 0) {
1482 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
1483 $this->ctrl->redirect($this, "pages");
1484 }
1485
1486 $this->tpl->setOnScreenMessage('info', $this->lng->txt("cont_selected_items_have_been_cut"), true);
1487
1488 ilLMObject::clipboardCut($this->lm->getId(), $ids);
1490
1491 $this->ctrl->redirect($this, "pages");
1492 }

References ilLMObject\clipboardCut(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilEditClipboard\setAction().

+ Here is the call graph for this function:

◆ pages()

ilObjContentObjectGUI::pages ( )

Definition at line 1221 of file class.ilObjContentObjectGUI.php.

1221 : void
1222 {
1223 $tpl = $this->tpl;
1224 $ilToolbar = $this->toolbar;
1225 $ilCtrl = $this->ctrl;
1226 $lng = $this->lng;
1227
1228 $this->setTabs();
1229 $this->setContentSubTabs("pages");
1230
1231 $ilCtrl->setParameter($this, "backcmd", "pages");
1232 $ilCtrl->setParameterByClass("illmpageobjectgui", "new_type", "pg");
1233 $ilToolbar->addButton(
1234 $lng->txt("pg_add"),
1235 $ilCtrl->getLinkTargetByClass("illmpageobjectgui", "create")
1236 );
1237 $ilCtrl->setParameterByClass("illmpageobjectgui", "new_type", "");
1238
1239 $t = new ilLMPagesTableGUI($this, "pages", $this->lm);
1240 $tpl->setContent($t->getHTML());
1241 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $lng.

◆ pasteChapter()

ilObjContentObjectGUI::pasteChapter ( )

Definition at line 1473 of file class.ilObjContentObjectGUI.php.

1473 : void
1474 {
1475 $this->insertChapterClip();
1476 }

◆ proceedDragDrop()

ilObjContentObjectGUI::proceedDragDrop ( )

Definition at line 1006 of file class.ilObjContentObjectGUI.php.

1006 : void
1007 {
1008 $ilCtrl = $this->ctrl;
1009
1011 $this->lm->executeDragDrop(
1012 $req->getHFormPar("source_id"),
1013 $req->getHFormPar("target_id"),
1014 $req->getHFormPar("fc"),
1015 $req->getHFormPar("as_subitem")
1016 );
1017 $ilCtrl->redirect($this, "chapters");
1018 }

References ilObjectGUI\$ctrl, $edit_request, and XapiProxy\$req.

◆ properties()

ilObjContentObjectGUI::properties ( )

edit properties form

Definition at line 623 of file class.ilObjContentObjectGUI.php.

623 : void
624 {
626
627 $lng->loadLanguageModule("style");
628 $this->setTabs("settings");
629 $this->setSubTabs("settings");
630
631 // lm properties
632 $this->initPropertiesForm();
634
635 // Edit ecs export settings
636 $ecs = new ilECSLearningModuleSettings($this->lm);
637 $ecs->addSettingsToForm($this->form, 'lm');
638
639 $this->tpl->setContent($this->form->getHTML());
640 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initPropertiesForm()
Init properties form.
getPropertiesFormValues()
Get values for properties form.

References ilObjectGUI\$lng, ILIAS\Repository\form(), getPropertiesFormValues(), initPropertiesForm(), ilLanguage\loadLanguageModule(), setSubTabs(), and ilObjectGUI\setTabs().

Referenced by ilObjLearningModuleGUI\view().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ redrawHeaderAction()

ilObjContentObjectGUI::redrawHeaderAction ( )

Definition at line 2840 of file class.ilObjContentObjectGUI.php.

2840 : void
2841 {
2842 // #12281
2843 parent::redrawHeaderActionObject();
2844 }

◆ removeLMGlossary()

ilObjContentObjectGUI::removeLMGlossary ( )

Definition at line 2806 of file class.ilObjContentObjectGUI.php.

2806 : void
2807 {
2808 $ilCtrl = $this->ctrl;
2809 $lng = $this->lng;
2810
2811 $this->lm->removeAutoGlossary($this->requested_glo_id);
2812 $this->lm->update();
2813
2814 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2815 $ilCtrl->redirect($this, "editGlossaries");
2816 }

References $lng.

◆ resetNumberOfTries()

ilObjContentObjectGUI::resetNumberOfTries ( )

Definition at line 1647 of file class.ilObjContentObjectGUI.php.

1647 : void
1648 {
1649 $lng = $this->lng;
1650 $ilCtrl = $this->ctrl;
1651
1652 $user_q_ids = $this->edit_request->getUserQuestionIds();
1653 if (count($user_q_ids) > 0) {
1654 foreach ($user_q_ids as $uqid) {
1655 $uqid = explode(":", $uqid);
1656 ilPageQuestionProcessor::resetTries((int) $uqid[0], (int) $uqid[1]);
1657 }
1658 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1659 }
1660 $ilCtrl->redirect($this, "listBlockedUsers");
1661 }
static resetTries(int $a_q_id, int $a_user_id)
Reset tries for user and question.

References $lng, and ilPageQuestionProcessor\resetTries().

+ Here is the call graph for this function:

◆ saveAllTitles()

ilObjContentObjectGUI::saveAllTitles ( )

Save all titles of chapters/pages.

Definition at line 2281 of file class.ilObjContentObjectGUI.php.

2281 : void
2282 {
2283 $ilCtrl = $this->ctrl;
2284
2286 $this->lm,
2287 $this->edit_request->getTitles(),
2288 $this->requested_transl
2289 );
2290
2291 $this->tpl->setOnScreenMessage('success', $this->lng->txt("lm_save_titles"), true);
2292 $ilCtrl->redirect($this, "chapters");
2293 }
static saveTitles(ilObjLearningModule $a_lm, array $a_titles, string $a_lang="-")
Save titles for lm objects.

References ILIAS\Repository\lng(), and ilLMObject\saveTitles().

+ Here is the call graph for this function:

◆ saveExportIds()

ilObjContentObjectGUI::saveExportIds ( )

Definition at line 2433 of file class.ilObjContentObjectGUI.php.

2433 : void
2434 {
2435 $ilCtrl = $this->ctrl;
2436 $lng = $this->lng;
2437
2438 // check all export ids
2439 $ok = true;
2440 foreach ($this->edit_request->getExportIds() as $exp_id) {
2441 if ($exp_id != "" && !preg_match(
2442 "/^([a-zA-Z]+)[0-9a-zA-Z_]*$/",
2443 trim($exp_id)
2444 )) {
2445 $ok = false;
2446 }
2447 }
2448 if (!$ok) {
2449 $this->tpl->setOnScreenMessage('failure', $lng->txt("cont_exp_ids_not_resp_format1") . ": a-z, A-Z, 0-9, '_'. " .
2450 $lng->txt("cont_exp_ids_not_resp_format3") . " " .
2451 $lng->txt("cont_exp_ids_not_resp_format2"));
2452 $this->showExportIDsOverview(true);
2453 return;
2454 }
2455
2456
2457 foreach ($this->edit_request->getExportIds() as $pg_id => $exp_id) {
2459 $this->lm->getId(),
2460 $pg_id,
2461 ilUtil::stripSlashes($exp_id),
2463 );
2464 }
2465
2466 $this->tpl->setOnScreenMessage('success', $lng->txt("cont_saved_export_ids"), true);
2467 $ilCtrl->redirect($this, "showExportIdsOverview");
2468 }
static saveExportId(int $a_lm_id, int $a_lmobj_id, string $a_exp_id, string $a_type="pg")
static _lookupType(int $a_obj_id, int $a_lm_id=0)
showExportIDsOverview(bool $a_validation=false)

References $lng, ilLMObject\_lookupType(), ilLMObject\saveExportId(), and ilUtil\stripSlashes().

+ Here is the call graph for this function:

◆ saveHelpMapping()

ilObjContentObjectGUI::saveHelpMapping ( )

Definition at line 2470 of file class.ilObjContentObjectGUI.php.

2470 : void
2471 {
2472 $lng = $this->lng;
2473 $ilCtrl = $this->ctrl;
2474 $help_map = $this->help->internal()->domain()->map();
2475
2476 foreach ($this->edit_request->getScreenIds() as $chap => $ids) {
2477 $ids = explode("\n", $ids);
2478 $help_map->saveScreenIdsForChapter($chap, $ids);
2479 }
2480 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2481 $ilCtrl->redirect($this, "showExportIdsOverview");
2482 }

References $lng, and ILIAS\Repository\help().

+ Here is the call graph for this function:

◆ saveMenuEntry()

ilObjContentObjectGUI::saveMenuEntry ( )

Definition at line 2110 of file class.ilObjContentObjectGUI.php.

2110 : void
2111 {
2112 $form = $this->initMenuEntryForm("create");
2113 if ($form->checkInput()) {
2114 $this->__initLMMenuEditor();
2115 $this->lmme_obj->setTitle($form->getInput("title"));
2116 $this->lmme_obj->setTarget($form->getInput("target"));
2117 $this->lmme_obj->setLinkRefId((int) $form->getInput("link_ref_id"));
2118
2119 if ($form->getInput("link_ref_id")) {
2120 $this->lmme_obj->setLinkType("intern");
2121 }
2122
2123 $this->lmme_obj->create();
2124
2125 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_entry_added"), true);
2126 $this->ctrl->redirect($this, "editMenuProperties");
2127 } else {
2129 $this->addMenuEntry($form);
2130 }
2131 }
addMenuEntry(?ilPropertyFormGUI $form=null)
display add menu entry form
getInput(string $a_post_var, bool $ensureValidation=true)
Returns the input of an item, if item provides getInput method and as fallback the value of the HTTP-...

References ilPropertyFormGUI\checkInput(), ILIAS\Repository\ctrl(), ilPropertyFormGUI\getInput(), ILIAS\Repository\lng(), and ilPropertyFormGUI\setValuesByPost().

+ Here is the call graph for this function:

◆ saveMenuProperties()

ilObjContentObjectGUI::saveMenuProperties ( )

Definition at line 987 of file class.ilObjContentObjectGUI.php.

987 : void
988 {
989 $form = $this->initMenuForm();
990 if ($form->checkInput()) {
991 $this->lm->setActiveLMMenu((int) $form->getInput("cobj_act_lm_menu"));
992 //$this->lm->setActiveTOC((int) $form->getInput("cobj_act_toc"));
993 $this->lm->setActivePrintView((int) $form->getInput("cobj_act_print"));
994 $this->lm->setActivePreventGlossaryAppendix((int) $form->getInput("cobj_act_print_prev_glo"));
995 $this->lm->setHideHeaderFooterPrint((int) $form->getInput("hide_head_foot_print"));
996 $this->lm->updateProperties();
997 }
998
999 $this->__initLMMenuEditor();
1000 $this->lmme_obj->updateActiveStatus($this->edit_request->getMenuEntries());
1001
1002 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
1003 $this->ctrl->redirect($this, "editMenuProperties");
1004 }

References $form, __initLMMenuEditor(), ilPropertyFormGUI\checkInput(), ILIAS\Repository\ctrl(), ilPropertyFormGUI\getInput(), initMenuForm(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ savePageLayout()

ilObjContentObjectGUI::savePageLayout ( )

Definition at line 2688 of file class.ilObjContentObjectGUI.php.

2688 : void
2689 {
2690 $lng = $this->lng;
2691 $ilCtrl = $this->ctrl;
2692
2693 $ilCtrl->setParameter($this, "hierarchy", $this->requested_hierarchy);
2694
2695 $ids = $this->edit_request->getIds();
2696 foreach ($ids as $id) {
2698 $id,
2699 $this->edit_request->getLayout(),
2700 $this->lm
2701 );
2702 }
2703 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2704
2705 if ($this->requested_hierarchy) {
2706 $ilCtrl->redirect($this, "chapters");
2707 } else {
2708 $ilCtrl->redirect($this, "pages");
2709 }
2710 }
static writeLayout(int $a_obj_id, string $a_layout, ?ilObjLearningModule $a_lm=null)
Write layout setting.

References $id, $lng, and ilLMObject\writeLayout().

+ Here is the call graph for this function:

◆ saveProperties()

ilObjContentObjectGUI::saveProperties ( )

save properties

Definition at line 825 of file class.ilObjContentObjectGUI.php.

825 : void
826 {
828 $ilUser = $this->user;
830 $obj_service = $this->object_service;
831
832 $add_info = "";
833
834 $valid = false;
835 $this->initPropertiesForm();
837 if ($form->checkInput()) {
838 $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
839 if ($ot->getContentTranslationActivated()) {
840 $this->lm->getObjectProperties()->storePropertyTranslations(
841 $ot->withDefaultTitle($form->getInput('title'))
842 ->withDefaultDescription($form->getInput('description'))
843 );
844 }
845
846 $this->lm->setTitle($form->getInput('title'));
847 $this->lm->setDescription($form->getInput('description'));
848 $this->lm->setPageHeader($form->getInput("lm_pg_header"));
849 $this->lm->setTOCMode($form->getInput("toc_mode"));
850 $this->lm->setOfflineStatus(!($form->getInput('cobj_online')));
851 $this->lm->setActiveNumbering((bool) $form->getInput("cobj_act_number"));
852 $this->lm->setCleanFrames((bool) $form->getInput("cobj_clean_frames"));
853 if (!$ilSetting->get('disable_comments')) {
854 $this->lm->setPublicNotes($form->getInput("cobj_pub_notes"));
855 }
856 $this->lm->setRating((bool) $form->getInput("rating"));
857 $this->lm->setRatingPages((bool) $form->getInput("rating_pages"));
858 $this->lm->setDisableDefaultFeedback((int) $form->getInput("disable_def_feedback"));
859 $this->lm->setProgressIcons((int) $form->getInput("progr_icons"));
860 $this->reading_time_gui->saveSettingFromForm($this->form);
861
862 $add_info = "";
863 $store_tries = $form->getInput("store_tries");
864 if ($form->getInput("restrict_forw_nav") && !$form->getInput("store_tries")) {
865 $store_tries = 1;
866 $add_info = "</br>" . $lng->txt("cont_automatically_set_store_tries");
867 $add_info = str_replace("$1", $lng->txt("cont_tries_store"), $add_info);
868 $add_info = str_replace("$2", $lng->txt("cont_restrict_forw_nav"), $add_info);
869 }
870
871 $this->lm->setStoreTries((int) $store_tries);
872 $this->lm->setRestrictForwardNavigation((int) $form->getInput("restrict_forw_nav"));
873 $this->lm->updateProperties();
874 $this->lm->update();
875
876 // tile image
877 $obj_service->commonSettings()->legacyForm($this->form, $this->lm)->saveTileImage();
878
881 $ilUser->getId(),
882 $this->lm->getId(),
883 (bool) $this->form->getInput("notification_blocked_users")
884 );
885
886 // services
888 $this->object->getId(),
889 $this->form,
890 array(
892 )
893 );
894
895
896 // Update ecs export settings
897 $ecs = new ilECSLearningModuleSettings($this->lm);
898 if ($ecs->handleSettingsUpdate($form)) {
899 $valid = true;
900 }
901 }
902
903 if ($valid) {
904 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified") . $add_info, true);
905 $this->ctrl->redirect($this, "properties");
906 } else {
907 $lng->loadLanguageModule("style");
908 $this->setTabs("settings");
909 $this->setSubTabs("cont_general_properties");
910
911 $this->form->setValuesByPost();
912 $this->tpl->setContent($this->form->getHTML());
913 }
914 }
static setNotification(int $type, int $user_id, int $id, bool $status=true)
Set notification status for object and user.
static updateServiceSettingsForm(int $obj_id, ilPropertyFormGUI $form, array $services)
$valid

References $form, $ilSetting, ilObjectGUI\$lng, ilObjectGUI\$object_service, ilObjectGUI\$settings, ilObjectGUI\$user, $valid, ilPropertyFormGUI\checkInput(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilPropertyFormGUI\getInput(), ilObjectServiceSettingsGUI\INFO_TAB_VISIBILITY, initPropertiesForm(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\object(), ilNotification\setNotification(), setSubTabs(), ilObjectGUI\setTabs(), ilPropertyFormGUI\setTitle(), ilLanguage\txt(), ilNotification\TYPE_LM_BLOCKED_USERS, and ilObjectServiceSettingsGUI\updateServiceSettingsForm().

+ Here is the call graph for this function:

◆ saveTooltips()

ilObjContentObjectGUI::saveTooltips ( )

Definition at line 2553 of file class.ilObjContentObjectGUI.php.

2553 : void
2554 {
2555 $ilCtrl = $this->ctrl;
2556 $lng = $this->lng;
2557
2558 $tooltip_ids = $this->edit_request->getTooltipIds();
2559 foreach ($this->edit_request->getTooltipTexts() as $id => $text) {
2560 $this->help->internal()->domain()->tooltips()->updateTooltip(
2561 (int) $id,
2562 $text,
2563 $tooltip_ids[(int) $id]
2564 );
2565 }
2566 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2567 $ilCtrl->redirect($this, "showTooltipList");
2568 }
$text
Definition: xapiexit.php:21

References $id, $lng, $text, and ILIAS\Repository\help().

+ Here is the call graph for this function:

◆ selectFooter()

ilObjContentObjectGUI::selectFooter ( )

select page as footer

Definition at line 2258 of file class.ilObjContentObjectGUI.php.

2258 : void
2259 {
2260 $ids = $this->edit_request->getIds();
2261 if (count($ids) == 0) {
2262 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
2263 $this->ctrl->redirect($this, "pages");
2264 }
2265 if (count($ids) > 1) {
2266 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_max_one_item"), true);
2267 $this->ctrl->redirect($this, "pages");
2268 }
2269 if ($ids[0] != $this->lm->getFooterPage()) {
2270 $this->lm->setFooterPage($ids[0]);
2271 } else {
2272 $this->lm->setFooterPage(0);
2273 }
2274 $this->lm->updateProperties();
2275 $this->ctrl->redirect($this, "pages");
2276 }

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ selectHeader()

ilObjContentObjectGUI::selectHeader ( )

select page as header

Definition at line 2235 of file class.ilObjContentObjectGUI.php.

2235 : void
2236 {
2237 $ids = $this->edit_request->getIds();
2238 if (count($ids) == 0) {
2239 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
2240 $this->ctrl->redirect($this, "pages");
2241 }
2242 if (count($ids) > 1) {
2243 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_max_one_item"), true);
2244 $this->ctrl->redirect($this, "pages");
2245 }
2246 if ($ids[0] != $this->lm->getHeaderPage()) {
2247 $this->lm->setHeaderPage($ids[0]);
2248 } else {
2249 $this->lm->setHeaderPage(0);
2250 }
2251 $this->lm->updateProperties();
2252 $this->ctrl->redirect($this, "pages");
2253 }

References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ selectLMGlossary()

ilObjContentObjectGUI::selectLMGlossary ( )

Definition at line 2788 of file class.ilObjContentObjectGUI.php.

2788 : void
2789 {
2790 $ilCtrl = $this->ctrl;
2791 $lng = $this->lng;
2792
2793 $glos = $this->lm->getAutoGlossaries();
2794 $glo_ref_id = $this->requested_glo_ref_id;
2795 $glo_id = ilObject::_lookupObjId($glo_ref_id);
2796 if (!in_array($glo_id, $glos)) {
2797 $glos[] = $glo_id;
2798 }
2799 $this->lm->setAutoGlossaries($glos);
2800 $this->lm->update();
2801
2802 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2803 $ilCtrl->redirect($this, "editGlossaries");
2804 }

References $lng, and ilObject\_lookupObjId().

+ Here is the call graph for this function:

◆ selectLMGlossaryLink()

ilObjContentObjectGUI::selectLMGlossaryLink ( )

Definition at line 2781 of file class.ilObjContentObjectGUI.php.

2781 : void
2782 {
2783 $glo_ref_id = $this->requested_glo_ref_id;
2784 $this->lm->autoLinkGlossaryTerms($glo_ref_id);
2785 $this->selectLMGlossary();
2786 }

◆ sendMailToBlockedUsers()

ilObjContentObjectGUI::sendMailToBlockedUsers ( )

Definition at line 1679 of file class.ilObjContentObjectGUI.php.

1679 : void
1680 {
1681 $ilCtrl = $this->ctrl;
1682
1683 $user_q_ids = $this->edit_request->getUserQuestionIds();
1684 if (count($user_q_ids) == 0) {
1685 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), 1);
1686 $ilCtrl->redirect($this, "listBlockedUsers");
1687 }
1688
1689 $rcps = array();
1690 foreach ($user_q_ids as $uqid) {
1691 $uqid = explode(":", $uqid);
1692 $login = ilObjUser::_lookupLogin($uqid[1]);
1693 if (!in_array($login, $rcps)) {
1694 $rcps[] = $login;
1695 }
1696 }
1698 $this,
1699 'listBlockedUsers',
1700 array(),
1701 array(
1702 'type' => 'new',
1703 'rcp_to' => implode(',', $rcps),
1704 'sig' => $this->getBlockedUsersMailSignature()
1705 )
1706 ));
1707 }
redirect(object $a_gui_obj, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
@inheritDoc
static getRedirectTarget( $gui, string $cmd, array $gui_params=[], array $mail_params=[], array $context_params=[])
static _lookupLogin(int $a_user_id)
static redirect(string $a_script)

References ilObjUser\_lookupLogin(), ilMailFormCall\getRedirectTarget(), ILIAS\Repository\lng(), and ilUtil\redirect().

+ Here is the call graph for this function:

◆ setContentSubTabs()

ilObjContentObjectGUI::setContentSubTabs ( string  $a_active)

Definition at line 1731 of file class.ilObjContentObjectGUI.php.

1731 : void
1732 {
1733 $ilTabs = $this->tabs;
1734 $lng = $this->lng;
1735 $ilCtrl = $this->ctrl;
1736
1737 $lm_set = new ilSetting("lm");
1738
1739 // chapters
1740 $this->ctrl->setParameterByClass(static::class, "sub_type", "st");
1741 $ilTabs->addSubTab(
1742 "sub_chapters",
1743 $lng->txt("objs_st"),
1744 $this->ctrl->getLinkTargetByClass(EditSubObjectsGUI::class)
1745 );
1746
1747
1748 // all pages
1749 $ilTabs->addSubTab(
1750 "pages",
1751 $lng->txt("cont_all_pages"),
1752 $ilCtrl->getLinkTarget($this, "pages")
1753 );
1754
1755 // all pages
1756 $ilTabs->addSubTab(
1757 "short_titles",
1758 $lng->txt("cont_short_titles"),
1759 $ilCtrl->getLinkTargetByClass("illmeditshorttitlesgui", "")
1760 );
1761
1762 // export ids
1763 if ($lm_set->get("html_export_ids")) {
1764 if (!ilObjContentObject::isOnlineHelpModule($this->lm->getRefId())) {
1765 $ilTabs->addSubTab(
1766 "export_ids",
1767 $lng->txt("cont_html_export_ids"),
1768 $ilCtrl->getLinkTarget($this, "showExportIDsOverview")
1769 );
1770 }
1771 }
1772 if (ilObjContentObject::isOnlineHelpModule($this->lm->getRefId())) {
1773 $lng->loadLanguageModule("help");
1774 $ilTabs->addSubTab(
1775 "export_ids",
1776 $lng->txt("cont_online_help_ids"),
1777 $ilCtrl->getLinkTarget($this, "showExportIDsOverview")
1778 );
1779
1780 $ilTabs->addSubTab(
1781 "help_tooltips",
1782 $lng->txt("help_tooltips"),
1783 $ilCtrl->getLinkTarget($this, "showTooltipList")
1784 );
1785 }
1786
1787 // list links
1788 $ilTabs->addSubTab(
1789 "internal_links",
1790 $lng->txt("cont_internal_links"),
1791 $ilCtrl->getLinkTarget($this, "listLinks")
1792 );
1793
1794 // maintenance
1795 $ilTabs->addSubTab(
1796 "maintenance",
1797 $lng->txt("cont_maintenance"),
1798 $ilCtrl->getLinkTarget($this, "showMaintenance")
1799 );
1800
1801 // srt files
1802 $ilTabs->addSubTab(
1803 "import",
1804 $lng->txt("cont_import"),
1805 $ilCtrl->getLinkTargetByClass("illmimportgui", "")
1806 );
1807
1808 $ilTabs->activateSubTab($a_active);
1809 $ilTabs->activateTab("content");
1810 }
static isOnlineHelpModule(int $a_id, bool $a_as_obj_id=false)
Is module an online module.
ILIAS Setting Class.
$lm_set

References $lm_set, $lng, ILIAS\Repository\ctrl(), and ilObjContentObject\isOnlineHelpModule().

+ Here is the call graph for this function:

◆ setMediaSubTabs()

ilObjContentObjectGUI::setMediaSubTabs ( string  $a_active)

Definition at line 1812 of file class.ilObjContentObjectGUI.php.

1812 : void
1813 {
1814 $ilTabs = $this->tabs;
1815 $lng = $this->lng;
1816 $ilCtrl = $this->ctrl;
1817
1818 // media
1819 $ilTabs->addSubTab(
1820 "usages",
1821 $lng->txt("cont_mob_usages"),
1822 $this->ctrl->getLinkTargetByClass(ilMediaObjectOverviewGUI::class, "show")
1823 );
1824
1825 // srt files
1826 $ilTabs->addSubTab(
1827 "srt_files",
1828 $lng->txt("cont_subtitle_files"),
1829 $ilCtrl->getLinkTargetByClass("ilmobmultisrtuploadgui", "")
1830 );
1831
1832 $ilTabs->activateSubTab($a_active);
1833 }

References $lng.

◆ setPageLayout()

ilObjContentObjectGUI::setPageLayout ( bool  $a_in_hierarchy = false)

Set layout for multiple pages.

Definition at line 2638 of file class.ilObjContentObjectGUI.php.

2640 : void {
2641 $tpl = $this->tpl;
2642 $ilCtrl = $this->ctrl;
2643 $lng = $this->lng;
2644
2645 $ids = $this->edit_request->getIds();
2646 if (count($ids) == 0) {
2647 $this->tpl->setOnScreenMessage('failure', $lng->txt("no_checkbox"), true);
2648
2649 if ($a_in_hierarchy) {
2650 $ilCtrl->redirect($this, "chapters");
2651 } else {
2652 $ilCtrl->redirect($this, "pages");
2653 }
2654 }
2655
2656 $this->initSetPageLayoutForm();
2657
2658 $tpl->setContent($this->form->getHTML());
2659 }

References $lng.

◆ setPageLayoutInHierarchy()

ilObjContentObjectGUI::setPageLayoutInHierarchy ( )

Set layout for multiple pages.

Definition at line 2627 of file class.ilObjContentObjectGUI.php.

2627 : void
2628 {
2629 $ilCtrl = $this->ctrl;
2630 $ilCtrl->setParameter($this, "hierarchy", "1");
2631 $this->setPageLayout(true);
2632 }
setPageLayout(bool $a_in_hierarchy=false)
Set layout for multiple pages.

◆ setQuestionsSubTabs()

ilObjContentObjectGUI::setQuestionsSubTabs ( string  $a_active)

Definition at line 1835 of file class.ilObjContentObjectGUI.php.

1835 : void
1836 {
1837 $ilTabs = $this->tabs;
1838 $lng = $this->lng;
1839 $ilCtrl = $this->ctrl;
1840
1841 // usage
1842 $ilTabs->addSubTab(
1843 "question_usage",
1844 $lng->txt("cont_question_usage"),
1845 $ilCtrl->getLinkTarget($this, "listQuestionUsages")
1846 );
1847
1848 // chapters
1849 $ilTabs->addSubTab(
1850 "question_stats",
1851 $lng->txt("cont_question_stats"),
1852 $ilCtrl->getLinkTarget($this, "listQuestions")
1853 );
1854
1855 // blocked users
1856 $ilTabs->addSubTab(
1857 "blocked_users",
1858 $lng->txt("cont_blocked_users"),
1859 $ilCtrl->getLinkTarget($this, "listBlockedUsers")
1860 );
1861
1862 $ilTabs->activateSubTab($a_active);
1863 }

References $lng.

◆ setSubTabs()

ilObjContentObjectGUI::setSubTabs ( string  $a_active)

Definition at line 1958 of file class.ilObjContentObjectGUI.php.

1958 : void
1959 {
1960 $ilTabs = $this->tabs;
1962
1963 if (in_array(
1964 $a_active,
1965 array("settings", "cont_style", "cont_lm_menu", "public_section",
1966 "cont_glossaries", "cont_multilinguality", "obj_multilinguality",
1967 "lti_provider")
1968 )) {
1969 // general properties
1970 $ilTabs->addSubTabTarget(
1971 "settings",
1972 $this->ctrl->getLinkTarget($this, 'properties'),
1973 "",
1974 ""
1975 );
1976
1977 // style properties
1978 $ilTabs->addSubTabTarget(
1979 "cont_style",
1980 $this->ctrl->getLinkTargetByClass("ilObjectContentStyleSettingsGUI", ""),
1981 "",
1982 "ilObjectContentStyleSettingsGUI"
1983 );
1984
1985 // menu properties
1986 $ilTabs->addSubTabTarget(
1987 "cont_lm_menu",
1988 $this->ctrl->getLinkTarget($this, 'editMenuProperties'),
1989 "",
1990 ""
1991 );
1992
1993 // glossaries
1994 $ilTabs->addSubTabTarget(
1995 "cont_glossaries",
1996 $this->ctrl->getLinkTarget($this, 'editGlossaries'),
1997 "",
1998 ""
1999 );
2000
2001 $ilTabs->addSubTabTarget(
2002 "obj_multilinguality",
2003 $this->ctrl->getLinkTargetByClass(TranslationGUI::class, "")
2004 );
2005
2006 $lti_settings = new ilLTIProviderObjectSettingGUI($this->lm->getRefId());
2007 if ($lti_settings->hasSettingsAccess()) {
2008 $ilTabs->addSubTabTarget(
2009 'lti_provider',
2010 $this->ctrl->getLinkTargetByClass(ilLTIProviderObjectSettingGUI::class)
2011 );
2012 }
2013
2014 $ilTabs->setSubTabActive($a_active);
2015 }
2016 }
GUI class for LTI provider object settings.

References $ilSetting, and ILIAS\Repository\ctrl().

Referenced by editMenuProperties(), properties(), and saveProperties().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTabs()

ilObjContentObjectGUI::setTabs ( string  $a_act = "")
protected

Definition at line 1723 of file class.ilObjContentObjectGUI.php.

1723 : void
1724 {
1725 parent::setTitleAndDescription();
1726 $ilHelp = $this->help;
1727 $ilHelp->setScreenIdComponent("lm");
1728 $this->addTabs($a_act);
1729 }
setScreenIdComponent(string $a_comp)

◆ showActions()

ilObjContentObjectGUI::showActions ( array  $a_actions)

Definition at line 1386 of file class.ilObjContentObjectGUI.php.

1386 : void
1387 {
1388 $d = null;
1389 foreach ($a_actions as $name => $lng) {
1390 $d[$name] = array("name" => $name, "lng" => $lng);
1391 }
1392
1393 $notoperations = array();
1394
1395 $operations = array();
1396
1397 if (is_array($d)) {
1398 foreach ($d as $row) {
1399 if (!in_array($row["name"], $notoperations)) {
1400 $operations[] = $row;
1401 }
1402 }
1403 }
1404
1405 if (count($operations) > 0) {
1406 foreach ($operations as $val) {
1407 $this->tpl->setCurrentBlock("operation_btn");
1408 $this->tpl->setVariable("BTN_NAME", $val["name"]);
1409 $this->tpl->setVariable("BTN_VALUE", $this->lng->txt($val["lng"]));
1410 $this->tpl->parseCurrentBlock();
1411 }
1412
1413 $this->tpl->setCurrentBlock("operation");
1414 $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("nav/arrow_downright.svg"));
1415 $this->tpl->parseCurrentBlock();
1416 }
1417 }

References Vendor\Package\$d, $lng, ilUtil\getImagePath(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ showEntrySelector()

ilObjContentObjectGUI::showEntrySelector ( )

Definition at line 2204 of file class.ilObjContentObjectGUI.php.

2204 : void
2205 {
2206 $ilTabs = $this->tabs;
2207 $ilCtrl = $this->ctrl;
2208
2209 $this->setTabs();
2210
2211 $ilTabs->setTabActive("settings");
2212 $this->setSubTabs("cont_lm_menu");
2213
2214 $ilCtrl->saveParameter($this, array("menu_entry"));
2215
2216 $this->tpl->setOnScreenMessage('info', $this->lng->txt("lm_menu_select_object_to_add"));
2217
2219 $this,
2220 "showEntrySelector",
2221 $this,
2222 "addMenuEntry",
2223 "link_ref_id"
2224 );
2225 //$exp->setTypeWhiteList(array("root", "cat", "grp", "crs", "glo", "fold"));
2226 $exp->setClickableTypes(array('mcst', 'mep', 'cat', 'lm','glo','frm','exc','tst','svy', 'chat', 'wiki', 'sahs', "crs", "grp", "book", "tst", "file"));
2227 if (!$exp->handleCommand()) {
2228 $this->tpl->setContent($exp->getHTML());
2229 }
2230 }
Explorer for selecting repository items.

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ showExportIDsOverview()

ilObjContentObjectGUI::showExportIDsOverview ( bool  $a_validation = false)

Definition at line 2393 of file class.ilObjContentObjectGUI.php.

2393 : void
2394 {
2395 $tpl = $this->tpl;
2396 $ilToolbar = $this->toolbar;
2397 $lng = $this->lng;
2398 $ilCtrl = $this->ctrl;
2399
2400 $this->setTabs();
2401 $this->setContentSubTabs("export_ids");
2402
2403 if (ilObjContentObject::isOnlineHelpModule($this->lm->getRefId())) {
2404 // toolbar
2405 $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
2406 $lm_tree = $this->lm->getTree();
2407 $childs = $lm_tree->getChilds($lm_tree->readRootId());
2408 $options = array("" => $lng->txt("all"));
2409 foreach ($childs as $c) {
2410 $options[$c["child"]] = $c["title"];
2411 }
2412 $si = new ilSelectInputGUI($this->lng->txt("help_component"), "help_chap");
2413 $si->setOptions($options);
2414 $si->setValue(ilSession::get("help_chap"));
2415 $ilToolbar->addInputItem($si, true);
2416 $ilToolbar->addFormButton($lng->txt("help_filter"), "filterHelpChapters");
2417
2418 $tbl = new ilHelpMappingTableGUI($this, "showExportIDsOverview", $a_validation);
2419 } else {
2420 $tbl = new ilExportIDTableGUI($this, "showExportIDsOverview", $a_validation, false);
2421 }
2422
2423 $tpl->setContent($tbl->getHTML());
2424 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static get(string $a_var)
getChilds(int $a_node_id, string $a_order="", string $a_direction="ASC")
get child nodes of given node
$c
Definition: deliver.php:25

References $c, $lng, ILIAS\UI\Implementation\Component\Input\Field\$options, ilSession\get(), ilTree\getChilds(), ilObjContentObject\isOnlineHelpModule(), ILIAS\Repository\lng(), and ilTree\readRootId().

+ Here is the call graph for this function:

◆ showExportOptionsHTML()

ilObjContentObjectGUI::showExportOptionsHTML ( )
protected

Definition at line 565 of file class.ilObjContentObjectGUI.php.

565 : void
566 {
567 $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
568 if ($ot->getContentTranslationActivated()) {
569 $this->addHeaderAction();
570 $this->addLocations(true);
571 $this->setTabs("export");
572 $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($this->buildExportOptionsFormHTML()));
573 }
574 if (!$ot->getContentTranslationActivated()) {
575 $this->doExportHTML();
576 }
577 }

References ilObjectGUI\addHeaderAction(), addLocations(), doExportHTML(), ilObjectGUI\setTabs(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ showExportOptionsXML()

ilObjContentObjectGUI::showExportOptionsXML ( )
protected

Definition at line 557 of file class.ilObjContentObjectGUI.php.

557 : void
558 {
559 $this->addHeaderAction();
560 $this->addLocations(true);
561 $this->setTabs("export");
562 $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($this->buildExportOptionsFormXML()));
563 }

References ilObjectGUI\addHeaderAction(), addLocations(), ilObjectGUI\setTabs(), and ILIAS\Repository\ui().

+ Here is the call graph for this function:

◆ showLMGlossarySelector()

ilObjContentObjectGUI::showLMGlossarySelector ( )

Definition at line 2741 of file class.ilObjContentObjectGUI.php.

2741 : void
2742 {
2743 $tpl = $this->tpl;
2744 $ilCtrl = $this->ctrl;
2746 $ilTabs = $this->tabs;
2747
2748 $this->setTabs();
2749 $ilTabs->setTabActive("settings");
2750 $this->setSubTabs("cont_glossaries");
2751
2752 $exp = new ilSearchRootSelector($ilCtrl->getLinkTarget($this, 'showLMGlossarySelector'));
2753 $exp->setExpand($this->requested_search_root_expand ?: $tree->readRootId());
2754 $exp->setPathOpen($this->object->getRefId());
2755 $exp->setExpandTarget($ilCtrl->getLinkTarget($this, 'showLMGlossarySelector'));
2756 $exp->setTargetClass(get_class($this));
2757 $exp->setCmd('confirmGlossarySelection');
2758 $exp->setClickableTypes(array("glo"));
2759 $exp->addFilter("glo");
2760
2761 // build html-output
2762 $exp->setOutput(0);
2763 $tpl->setContent($exp->getOutput());
2764 }

References ILIAS\Repository\object().

+ Here is the call graph for this function:

◆ showMaintenance()

ilObjContentObjectGUI::showMaintenance ( )

Show maintenance.

Definition at line 1266 of file class.ilObjContentObjectGUI.php.

1266 : void
1267 {
1268 $ilToolbar = $this->toolbar;
1269
1270 $this->setTabs();
1271 $this->setContentSubTabs("maintenance");
1272
1273 $ilToolbar->addButton(
1274 $this->lng->txt("cont_fix_tree"),
1275 $this->ctrl->getLinkTarget($this, "fixTreeConfirm")
1276 );
1277 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ showTooltipList()

ilObjContentObjectGUI::showTooltipList ( )

Definition at line 2488 of file class.ilObjContentObjectGUI.php.

2488 : void
2489 {
2490 $tpl = $this->tpl;
2491 $ilToolbar = $this->toolbar;
2492 $ilCtrl = $this->ctrl;
2493 $lng = $this->lng;
2494
2495 $this->setTabs();
2496 $this->setContentSubTabs("help_tooltips");
2497
2498 $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
2499 $ti = new ilTextInputGUI($this->lng->txt("help_tooltip_id"), "tooltip_id");
2500 $ti->setMaxLength(200);
2501 $ti->setSize(20);
2502 $ilToolbar->addInputItem($ti, true);
2503 $ilToolbar->addFormButton($lng->txt("add"), "addTooltip");
2504 $ilToolbar->addSeparator();
2505
2506 $options = $this->help->internal()->domain()->tooltips()->getTooltipComponents();
2507 if (ilSession::get("help_tt_comp") != "") {
2508 $options[ilSession::get("help_tt_comp")] = ilSession::get("help_tt_comp");
2509 }
2510 $si = new ilSelectInputGUI($this->lng->txt("help_component"), "help_tt_comp");
2511 $si->setOptions($options);
2512 $si->setValue(ilSession::get("help_tt_comp"));
2513 $ilToolbar->addInputItem($si, true);
2514 $ilToolbar->addFormButton($lng->txt("help_filter"), "filterTooltips");
2515
2516 $tbl = new ilHelpTooltipTableGUI($this, "showTooltipList", (string) ilSession::get("help_tt_comp"));
2517
2518 $tpl->setContent($tbl->getHTML());
2519 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $lng, ILIAS\UI\Implementation\Component\Input\Field\$options, ilSession\get(), ILIAS\Repository\help(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ switchToLanguage()

ilObjContentObjectGUI::switchToLanguage ( )

Definition at line 2829 of file class.ilObjContentObjectGUI.php.

2829 : void
2830 {
2831 $ilCtrl = $this->ctrl;
2832
2833 $ilCtrl->setParameter($this, "transl", $this->requested_totransl);
2834 if ($this->lang_switch_mode == "short_titles") {
2835 $ilCtrl->redirectByClass("illmeditshorttitlesgui", "");
2836 }
2837 $ilCtrl->redirect($this, "chapters");
2838 }

◆ unlockQuestion()

ilObjContentObjectGUI::unlockQuestion ( )

Definition at line 1663 of file class.ilObjContentObjectGUI.php.

1663 : void
1664 {
1665 $lng = $this->lng;
1666 $ilCtrl = $this->ctrl;
1667
1668 $user_q_ids = $this->edit_request->getUserQuestionIds();
1669 if (count($user_q_ids) > 0) {
1670 foreach ($user_q_ids as $uqid) {
1671 $uqid = explode(":", $uqid);
1672 ilPageQuestionProcessor::unlock((int) $uqid[0], (int) $uqid[1]);
1673 }
1674 $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1675 }
1676 $ilCtrl->redirect($this, "listBlockedUsers");
1677 }
static unlock(int $a_q_id, int $a_user_id)
Unlock question for user.

References $lng, and ilPageQuestionProcessor\unlock().

+ Here is the call graph for this function:

◆ updateMenuEntry()

ilObjContentObjectGUI::updateMenuEntry ( )

Definition at line 2176 of file class.ilObjContentObjectGUI.php.

2176 : void
2177 {
2178 $form = $this->initMenuEntryForm("edit");
2179 if ($form->checkInput()) {
2180 if ($this->edit_request->getMenuEntry() == "") {
2181 $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_menu_entry_id"), true);
2182 $this->ctrl->redirect($this, "editMenuProperties");
2183 }
2184
2185 $this->__initLMMenuEditor();
2186 $this->lmme_obj->readEntry($this->edit_request->getMenuEntry());
2187 $this->lmme_obj->setTitle($form->getInput("title"));
2188 $this->lmme_obj->setTarget($form->getInput("target"));
2189 if ($form->getInput("link_ref_id")) {
2190 $this->lmme_obj->setLinkType("intern");
2191 }
2192 if (is_int(strpos($form->getInput("target"), "."))) {
2193 $this->lmme_obj->setLinkType("extern");
2194 }
2195 $this->lmme_obj->update();
2196 $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_entry_updated"), true);
2197 $this->ctrl->redirect($this, "editMenuProperties");
2198 } else {
2200 $this->editMenuEntry($form);
2201 }
2202 }
editMenuEntry(?ilPropertyFormGUI $form=null)

References ilPropertyFormGUI\checkInput(), ILIAS\Repository\ctrl(), ilPropertyFormGUI\getInput(), ILIAS\Repository\lng(), and ilPropertyFormGUI\setValuesByPost().

+ Here is the call graph for this function:

◆ view()

ilObjContentObjectGUI::view ( )

Reimplemented in ilObjLearningModuleGUI.

Definition at line 1419 of file class.ilObjContentObjectGUI.php.

1419 : void
1420 {
1421 if (strtolower($this->requested_baseClass) == "iladministrationgui") {
1422 $this->prepareOutput();
1423 parent::viewObject();
1424 } else {
1425 $this->viewObject();
1426 }
1427 }
viewObject()
viewObject container presentation for "administration -> repository, trash, permissions"
prepareOutput(bool $show_sub_objects=true)

Field Documentation

◆ $component_repository

ilComponentRepository ilObjContentObjectGUI::$component_repository
protected

Definition at line 54 of file class.ilObjContentObjectGUI.php.

◆ $content_style_service

ILIAS Style Content Service ilObjContentObjectGUI::$content_style_service
protected

Definition at line 78 of file class.ilObjContentObjectGUI.php.

◆ $db

ilDBInterface ilObjContentObjectGUI::$db
protected

Definition at line 51 of file class.ilObjContentObjectGUI.php.

◆ $domain

ILIAS LearningModule InternalDomainService ilObjContentObjectGUI::$domain
protected

Definition at line 42 of file class.ilObjContentObjectGUI.php.

◆ $edit_request

EditingGUIRequest ilObjContentObjectGUI::$edit_request
protected

Definition at line 77 of file class.ilObjContentObjectGUI.php.

Referenced by __construct(), and proceedDragDrop().

◆ $form

ilPropertyFormGUI ilObjContentObjectGUI::$form
protected

◆ $gui

ILIAS LearningModule InternalGUIService ilObjContentObjectGUI::$gui
protected

Definition at line 41 of file class.ilObjContentObjectGUI.php.

◆ $help

ilHelpGUI ilObjContentObjectGUI::$help
protected

Definition at line 50 of file class.ilObjContentObjectGUI.php.

◆ $lang_switch_mode

string ilObjContentObjectGUI::$lang_switch_mode
protected

Definition at line 47 of file class.ilObjContentObjectGUI.php.

◆ $lm

ilObjLearningModule ilObjContentObjectGUI::$lm
protected

Definition at line 76 of file class.ilObjContentObjectGUI.php.

◆ $lm_obj

ilObjLearningModule ilObjContentObjectGUI::$lm_obj
protected

Definition at line 46 of file class.ilObjContentObjectGUI.php.

◆ $lm_tree

ilLMTree ilObjContentObjectGUI::$lm_tree
protected

Definition at line 80 of file class.ilObjContentObjectGUI.php.

◆ $lmme_obj

ilLMMenuEditor ilObjContentObjectGUI::$lmme_obj
protected

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

◆ $log

ilLogger ilObjContentObjectGUI::$log
protected

Definition at line 52 of file class.ilObjContentObjectGUI.php.

◆ $rbacsystem

ilRbacSystem ilObjContentObjectGUI::$rbacsystem
protected

Definition at line 43 of file class.ilObjContentObjectGUI.php.

◆ $reading_time_gui

ILIAS LearningModule ReadingTime SettingsGUI ilObjContentObjectGUI::$reading_time_gui
protected

Definition at line 44 of file class.ilObjContentObjectGUI.php.

◆ $requested_active_node

int ilObjContentObjectGUI::$requested_active_node = 0
protected

Definition at line 71 of file class.ilObjContentObjectGUI.php.

◆ $requested_backcmd

string ilObjContentObjectGUI::$requested_backcmd = ""
protected

Definition at line 62 of file class.ilObjContentObjectGUI.php.

◆ $requested_baseClass

string ilObjContentObjectGUI::$requested_baseClass = ""
protected

Definition at line 59 of file class.ilObjContentObjectGUI.php.

◆ $requested_glo_id

int ilObjContentObjectGUI::$requested_glo_id = 0
protected

Definition at line 68 of file class.ilObjContentObjectGUI.php.

◆ $requested_glo_ref_id

int ilObjContentObjectGUI::$requested_glo_ref_id = 0
protected

Definition at line 69 of file class.ilObjContentObjectGUI.php.

◆ $requested_hierarchy

bool ilObjContentObjectGUI::$requested_hierarchy = false
protected

Definition at line 66 of file class.ilObjContentObjectGUI.php.

◆ $requested_lang_switch_mode

string ilObjContentObjectGUI::$requested_lang_switch_mode = ""
protected

Definition at line 70 of file class.ilObjContentObjectGUI.php.

◆ $requested_link_ref_id

int ilObjContentObjectGUI::$requested_link_ref_id = 0
protected

Definition at line 73 of file class.ilObjContentObjectGUI.php.

◆ $requested_lm_menu_expand

int ilObjContentObjectGUI::$requested_lm_menu_expand = 0
protected

Definition at line 64 of file class.ilObjContentObjectGUI.php.

◆ $requested_lmexpand

int ilObjContentObjectGUI::$requested_lmexpand = 0
protected

Definition at line 72 of file class.ilObjContentObjectGUI.php.

◆ $requested_lmmovecopy

bool ilObjContentObjectGUI::$requested_lmmovecopy = false
protected

Definition at line 75 of file class.ilObjContentObjectGUI.php.

◆ $requested_menu_entry

int ilObjContentObjectGUI::$requested_menu_entry = 0
protected

Definition at line 63 of file class.ilObjContentObjectGUI.php.

◆ $requested_new_type

string ilObjContentObjectGUI::$requested_new_type = ""
protected

Definition at line 58 of file class.ilObjContentObjectGUI.php.

◆ $requested_obj_id

int ilObjContentObjectGUI::$requested_obj_id = 0
protected

Definition at line 57 of file class.ilObjContentObjectGUI.php.

◆ $requested_ref_id

int ilObjContentObjectGUI::$requested_ref_id = 0
protected

Definition at line 60 of file class.ilObjContentObjectGUI.php.

◆ $requested_root_id

int ilObjContentObjectGUI::$requested_root_id = 0
protected

Definition at line 67 of file class.ilObjContentObjectGUI.php.

◆ $requested_search_root_expand

int ilObjContentObjectGUI::$requested_search_root_expand = 0
protected

Definition at line 65 of file class.ilObjContentObjectGUI.php.

◆ $requested_totransl

string ilObjContentObjectGUI::$requested_totransl = ""
protected

Definition at line 74 of file class.ilObjContentObjectGUI.php.

Referenced by getMultiLangHeader().

◆ $requested_transl

string ilObjContentObjectGUI::$requested_transl = ""
protected

Definition at line 61 of file class.ilObjContentObjectGUI.php.

Referenced by getMultiLangHeader().

◆ $tabs

ilTabsGUI ilObjContentObjectGUI::$tabs
protected

Definition at line 49 of file class.ilObjContentObjectGUI.php.

Referenced by editMenuProperties().

◆ $to_props

bool ilObjContentObjectGUI::$to_props = false
protected

Definition at line 56 of file class.ilObjContentObjectGUI.php.

◆ $ui

ILIAS DI UIServices ilObjContentObjectGUI::$ui
protected

Definition at line 53 of file class.ilObjContentObjectGUI.php.


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