ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 
 getPublicAccessColValue (string $a_type, string $a_file)
 Get public access value for export table. More...
 
 publishExportFile (?array $a_files)
 
 fixTreeConfirm ()
 
 fixTree ()
 
 exportHTML ()
 
 addLocations (bool $a_omit_obj_id=false)
 display locator More...
 
 listQuestions ()
 
 listBlockedUsers ()
 
 resetNumberOfTries ()
 
 unlockQuestion ()
 
 sendMailToBlockedUsers ()
 
 setContentSubTabs (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)
 
 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 ()
 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
 
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
 
ilObjectCustomIconFactory $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

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

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().

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

Member Function Documentation

◆ __initLMMenuEditor()

ilObjContentObjectGUI::__initLMMenuEditor ( )

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

Referenced by deleteMenuEntry(), editMenuProperties(), initMenuEntryForm(), saveMenuEntry(), saveMenuProperties(), and updateMenuEntry().

2025  : void
2026  {
2027  $this->lmme_obj = new ilLMMenuEditor();
2028  $this->lmme_obj->setObjId($this->lm->getId());
2029  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ _goto()

static ilObjContentObjectGUI::_goto ( string  $a_target)
static

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

References ilObjectGUI\$ctrl, $DIC, $ilErr, ilObjectGUI\$lng, ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObjLearningModuleAccess\_lookupSetting(), ilObject\_lookupTitle(), ilCtrl\redirectByClass(), ROOT_FOLDER_ID, ilCtrl\setParameterByClass(), and ilLanguage\txt().

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

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

References ilObjectGUI\$id, ilPageObject\_lookupActive(), ilLMObject\_lookupContObjID(), ilPageObject\_writeActive(), ilEditClipboard\clear(), ILIAS\Repository\ctrl(), ilEditClipboard\getAction(), ilEditClipboard\getContentObjectId(), ilEditClipboard\getContentObjectType(), ilObjectFactory\getInstanceByObjId(), ILIAS\Repository\lng(), and ilLMObject\updateInternalLinks().

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 _lookupActive(int $a_id, string $a_parent_type, bool $a_check_scheduled_activation=false, string $a_lang="-")
lookup activation status
static _writeActive(int $a_id, string $a_parent_type, bool $a_active)
write activation status
+ 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 1614 of file class.ilObjContentObjectGUI.php.

References ilObjectGUI\$locator, ilObjectGUI\$obj_id, $path, $requested_obj_id, ilLMPageObject\_getPresentationTitle(), ILIAS\Repository\ctrl(), and null.

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

1616  : void {
1618 
1619  $obj_id = 0;
1620  if (!$a_omit_obj_id) {
1622  }
1623  $lmtree = $this->lm->getTree();
1624  if (($obj_id != 0) && $lmtree->isInTree($obj_id)) {
1625  $path = $lmtree->getPathFull($obj_id);
1626  } else {
1627  $path = $lmtree->getPathFull($lmtree->getRootId());
1628  if ($obj_id != 0) {
1629  $path[] = array("type" => "pg", "child" => $this->obj_id,
1630  "title" => ilLMPageObject::_getPresentationTitle($this->obj_id));
1631  }
1632  }
1633 
1634  foreach ($path as $key => $row) {
1635  if ($row["child"] == 1) {
1636  $this->ctrl->setParameter($this, "obj_id", null);
1637  $locator->addItem($this->lm->getTitle(), $this->ctrl->getLinkTarget($this, "chapters"));
1638  } else {
1639  $title = $row["title"];
1640  switch ($row["type"]) {
1641  case "st":
1642  $this->ctrl->setParameterByClass("ilstructureobjectgui", "obj_id", $row["child"]);
1643  $locator->addItem($title, $this->ctrl->getLinkTargetByClass("ilstructureobjectgui", "view"));
1644  break;
1645 
1646  case "pg":
1647  $this->ctrl->setParameterByClass("illmpageobjectgui", "obj_id", $row["child"]);
1648  $locator->addItem($title, $this->ctrl->getLinkTargetByClass("illmpageobjectgui", "edit"));
1649  break;
1650  }
1651  }
1652  }
1653  if (!$a_omit_obj_id) {
1654  $this->ctrl->setParameter($this, "obj_id", $this->requested_obj_id);
1655  }
1656  }
$path
Definition: ltiservices.php:29
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addMenuEntry()

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

display add menu entry form

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

References ilObjectGUI\$ctrl, $tabs, ilObjectGUI\$toolbar, ilPropertyFormGUI\getHTML(), initMenuEntryForm(), ILIAS\Repository\lng(), setSubTabs(), and ilObjectGUI\setTabs().

Referenced by saveMenuEntry().

2034  : void
2035  {
2036  $ilTabs = $this->tabs;
2037  $ilToolbar = $this->toolbar;
2038  $ilCtrl = $this->ctrl;
2039 
2040  $this->setTabs();
2041 
2042  $ilTabs->setTabActive("settings");
2043  $this->setSubTabs("cont_lm_menu");
2044 
2045  $ilToolbar->addButton(
2046  $this->lng->txt("lm_menu_select_internal_object"),
2047  $ilCtrl->getLinkTarget($this, "showEntrySelector")
2048  );
2049 
2050  if (is_null($form)) {
2051  $form = $this->initMenuEntryForm("create");
2052  }
2053  $this->tpl->setContent($form->getHTML());
2054  }
ilToolbarGUI $toolbar
initMenuEntryForm(string $a_mode="edit")
setTabs()
set admin tabs
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addTabs()

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

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

References ilObjectGUI\$lng, $rbacsystem, $tabs, ilLearningProgressAccess\checkAccess(), ilRbacSystem\checkAccess(), ILIAS\Repository\ctrl(), ILIAS\Repository\object(), and ilLanguage\txt().

Referenced by setTabs().

1880  : void
1881  {
1883  $ilTabs = $this->tabs;
1884  $lng = $this->lng;
1885 
1886  // content -> pages
1887  $this->ctrl->setParameterByClass(static::class, "sub_type", "st");
1888  $ilTabs->addTab(
1889  "content",
1890  $lng->txt("content"),
1891  $this->ctrl->getLinkTargetByClass(EditSubObjectsGUI::class)
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  // questions
1911  $ilTabs->addTab(
1912  "questions",
1913  $lng->txt("objs_qst"),
1914  $this->ctrl->getLinkTarget($this, "listQuestions")
1915  );
1916 
1917  // learning progress
1918  if (ilLearningProgressAccess::checkAccess($this->lm->getRefId()) and ($this->lm->getType() == 'lm')) {
1919  $ilTabs->addTab(
1920  'learning_progress',
1921  $lng->txt("learning_progress"),
1922  $this->ctrl->getLinkTargetByClass(array('illearningprogressgui'), '')
1923  );
1924  }
1925 
1926  // meta data
1927  $mdgui = new ilObjectMetaDataGUI($this->lm);
1928  $mdtab = $mdgui->getTab();
1929  if ($mdtab) {
1930  $ilTabs->addTab(
1931  "meta",
1932  $lng->txt("meta_data"),
1933  $mdtab
1934  );
1935  }
1936 
1937  // export
1938  $ilTabs->addTab(
1939  "export",
1940  $lng->txt("export"),
1941  $this->ctrl->getLinkTargetByClass("ilexportgui", "")
1942  );
1943 
1944  // permissions
1945  if ($rbacsystem->checkAccess('edit_permission', $this->lm->getRefId())) {
1946  $ilTabs->addTab(
1947  "perm",
1948  $lng->txt("perm_settings"),
1949  $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm")
1950  );
1951  }
1952 
1953  if ($a_act != "") {
1954  $ilTabs->activateTab($a_act);
1955  }
1956 
1957  // presentation view
1958  $ilTabs->addNonTabbedLink(
1959  "pres_mode",
1960  $lng->txt("cont_presentation_view"),
1961  "ilias.php?baseClass=ilLMPresentationGUI&ref_id=" . $this->lm->getRefId()
1962  );
1963  }
Class ilObjectMetaDataGUI.
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 checkAccess(int $a_ref_id, bool $a_allow_only_read=true)
check access to learning progress
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 ...
ilLanguage $lng
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addTooltip()

ilObjContentObjectGUI::addTooltip ( )

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

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

2528  : void
2529  {
2530  $lng = $this->lng;
2531  $ilCtrl = $this->ctrl;
2532 
2533  $tt_id = $this->edit_request->getTooltipId();
2534  if (trim($tt_id) != "") {
2535  if (is_int(strpos($tt_id, "_"))) {
2536  $this->help->internal()->domain()->tooltips()->addTooltip(trim($tt_id), "");
2537  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2538 
2539  $fu = strpos($tt_id, "_");
2540  $comp = substr($tt_id, 0, $fu);
2541  ilSession::set("help_tt_comp", ilUtil::stripSlashes($comp));
2542  } else {
2543  $this->tpl->setOnScreenMessage('failure', $lng->txt("cont_help_no_valid_tooltip_id"), true);
2544  }
2545  }
2546  $ilCtrl->redirect($this, "showTooltipList");
2547  }
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 stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
ilLanguage $lng
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ afterSave()

ilObjContentObjectGUI::afterSave ( ilObject  $new_object)
protected

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

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

1013  : void
1014  {
1015  $new_object->setCleanFrames(true);
1016  $new_object->update();
1017 
1018  // create content object tree
1019  $new_object->createLMTree();
1020 
1021  // create a first chapter
1022  $new_object->addFirstChapterAndPage();
1023 
1024  // always send a message
1025  $this->tpl->setOnScreenMessage('success', $this->lng->txt($this->type . "_added"), true);
1026  $this->ctrl->setParameterByClass(ilObjLearningModuleGUI::class, "ref_id", $new_object->getRefId());
1027  $this->ctrl->redirectByClass([ilLMEditorGUI::class, ilObjLearningModuleGUI::class], "");
1028  }
+ Here is the call graph for this function:

◆ buildExportOptionsFormHTML()

ilObjContentObjectGUI::buildExportOptionsFormHTML ( )
protected

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

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

Referenced by doExportHTML(), and showExportOptionsHTML().

476  {
477  $this->lng->loadLanguageModule('exp');
478  $ot = ilObjectTranslation::getInstance($this->lm->getId());
479  $items = [];
480  if ($ot->getContentActivated()) {
481  $this->lng->loadLanguageModule("meta");
482  $langs = $ot->getLanguages();
483  foreach ($langs as $l => $ldata) {
484  $items["html_" . $l] = $this->lng->txt("meta_l_" . $l);
485  }
486  $items["html_all"] = $this->lng->txt("cont_all_languages");
487  }
488  if (!$ot->getContentActivated()) {
489  $items["exportHTML"] = "HTML";
490  }
491  $select = $this->ui->factory()->input()->field()->select($this->lng->txt("language"), $items)
492  ->withRequired(true);
493  $section = $this->ui->factory()->input()->field()->section(
494  [$select],
495  $this->lng->txt("export_options")
496  );
497  return $this->ui->factory()->input()->container()->form()->standard(
498  $this->ctrl->getLinkTargetByClass(ilObjContentObjectGUI::class, "doExportHTML"),
499  [$section]
500  )->withSubmitLabel($this->lng->txt("export"));
501  }
static getInstance(int $obj_id)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildExportOptionsFormXML()

ilObjContentObjectGUI::buildExportOptionsFormXML ( )
protected

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

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

Referenced by doExportXML(), and showExportOptionsXML().

504  {
505  $this->lng->loadLanguageModule('exp');
506  $ot = ilObjectTranslation::getInstance($this->lm->getId());
507  $items = [];
508  if ($ot->getContentActivated()) {
509  $items["xml_master"] = $this->lng->txt("cont_master_language_only");
510  $items["xml_masternomedia"] = $this->lng->txt("cont_master_language_only_no_media");
511  $this->lng->loadLanguageModule("meta");
512  $langs = $ot->getLanguages();
513  }
514  $select = $this->ui->factory()->input()->field()->select($this->lng->txt("export_type"), $items)
515  ->withRequired(true);
516  $section = $this->ui->factory()->input()->field()->section(
517  [$select],
518  $this->lng->txt("export_options")
519  );
520  return $this->ui->factory()->input()->container()->form()->standard(
521  $this->ctrl->getLinkTargetByClass(ilObjContentObjectGUI::class, "doExportXML"),
522  [$section]
523  )->withSubmitLabel($this->lng->txt("export"));
524  }
static getInstance(int $obj_id)
+ 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.

References ILIAS\Repository\ctrl().

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  }
+ Here is the call graph for this function:

◆ cancelDelete()

ilObjContentObjectGUI::cancelDelete ( )

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

References ILIAS\Repository\ctrl().

Referenced by delete().

1079  : void
1080  {
1081  $this->ctrl->redirect($this, $this->requested_backcmd);
1082  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ chapters()

ilObjContentObjectGUI::chapters ( )

show chapters

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

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

◆ checkCtrlPath()

ilObjContentObjectGUI::checkCtrlPath ( )
protected

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

References ilObjectGUI\$access, ilObjectGUI\$ctrl, $GLOBALS, $lm, ilObjectGUI\$lng, $requested_new_type, $tabs, ilObjectGUI\addHeaderAction(), addLocations(), ilObjectGUI\checkPermission(), ILIAS\Repository\ctrl(), ilObjectGUI\executeCommand(), ilObjectGUI\getCreationMode(), ilLMObjectFactory\getInstance(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), ILIAS\Repository\lng(), ilLearningProgressBaseGUI\LP_CONTEXT_REPOSITORY, null, ILIAS\Repository\object(), ilObjectGUI\prepareOutput(), ILIAS\Repository\rbac(), setContentSubTabs(), ilLTIProviderObjectSettingGUI\setCustomRolesForSelection(), setSubTabs(), ilObjectGUI\setTabs(), ilObjectGUI\setTitleAndDescription(), and ilLanguage\txt().

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

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

Referenced by ilLMObjectGUI\confirmedDelete().

1091  : void
1092  {
1093  $tree = new ilLMTree($this->lm->getId());
1094 
1095  $ids = $this->edit_request->getIds();
1096 
1097  // check number of objects
1098  if (count($ids) == 0) {
1099  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"));
1100  $this->ctrl->redirect($this, "cancelDelete");
1101  }
1102 
1103  // delete all selected objects
1104  foreach ($ids as $id) {
1105  if ($id != ilTree::POS_FIRST_NODE) {
1106  $obj = ilLMObjectFactory::getInstance($this->lm, $id, false);
1107  $node_data = $tree->getNodeData($id);
1108  if (is_object($obj)) {
1109  $obj->setLMId($this->lm->getId());
1110 
1112  $this->lm->getId(),
1113  "delete_" . $obj->getType(),
1114  array(ilLMObject::_lookupTitle($id), $id),
1115  $this->lm->getType()
1116  );
1117 
1118  $obj->delete();
1119  }
1120  if ($tree->isInTree($id)) {
1121  $tree->deleteTree($node_data);
1122  }
1123  }
1124  }
1125 
1126  // check the tree
1127  $this->lm->checkTree();
1128 
1129  // feedback
1130  $this->tpl->setOnScreenMessage('success', $this->lng->txt("info_deleted"), true);
1131 
1132  if ($a_parent_subobj_id == 0) {
1133  $this->ctrl->redirect($this, $this->requested_backcmd);
1134  }
1135  }
getNodeData(int $a_node_id, ?int $a_tree_pk=null)
get all information of a node.
static _createEntry(int $a_obj_id, string $a_action, array $a_info_params=[], string $a_obj_type="", string $a_user_comment="", bool $a_update_last=false)
Creates a new history entry for an object.
static getInstance(ilObjLearningModule $a_content_obj, int $a_id=0, bool $a_halt=true)
isInTree(?int $a_node_id)
get all information of a node.
deleteTree(array $a_node)
delete node and the whole subtree under this node
static _lookupTitle(int $a_obj_id)
const POS_FIRST_NODE
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ confirmGlossarySelection()

ilObjContentObjectGUI::confirmGlossarySelection ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ILIAS\UICore\GlobalTemplate\setContent(), and ilLanguage\txt().

2773  : void
2774  {
2775  $ilCtrl = $this->ctrl;
2776  $tpl = $this->tpl;
2777  $lng = $this->lng;
2778 
2779  $cgui = new ilConfirmationGUI();
2780  $ilCtrl->setParameter($this, "glo_ref_id", $this->requested_root_id);
2781  $cgui->setFormAction($ilCtrl->getFormAction($this));
2782  $cgui->setHeaderText($lng->txt("cont_link_glo_in_lm"));
2783  $cgui->setCancel($lng->txt("no"), "selectLMGlossary");
2784  $cgui->setConfirm($lng->txt("yes"), "selectLMGlossaryLink");
2785  $tpl->setContent($cgui->getHTML());
2786  }
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...
setContent(string $a_html)
Sets content for standard template.
ilLanguage $lng
ilGlobalTemplateInterface $tpl
+ Here is the call graph for this function:

◆ copyChapter()

ilObjContentObjectGUI::copyChapter ( )

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

References copyItems().

1468  : void
1469  {
1470  $this->copyItems();
1471  }
copyItems(array $ids)
Copy items to clipboard.
+ Here is the call graph for this function:

◆ copyItems()

ilObjContentObjectGUI::copyItems ( array  $ids)

Copy items to clipboard.

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilLMObject\clipboardCopy(), ilEditClipboard\setAction(), and ilLanguage\txt().

Referenced by copyChapter().

2363  : void
2364  {
2365  $ilCtrl = $this->ctrl;
2366  $lng = $this->lng;
2367 
2368  if (count($ids) == 0) {
2369  $this->tpl->setOnScreenMessage('failure', $lng->txt("no_checkbox"), true);
2370  $ilCtrl->redirect($this, "chapters");
2371  }
2372 
2373  $todel = array(); // delete IDs < 0 (needed for non-js editing)
2374  foreach ($ids as $k => $item) {
2375  if ($item < 0) {
2376  $todel[] = $k;
2377  }
2378  }
2379  foreach ($todel as $k) {
2380  unset($ids[$k]);
2381  }
2382  ilLMObject::clipboardCopy($this->lm->getId(), $ids);
2384  $this->tpl->setOnScreenMessage('info', $lng->txt("cont_selected_items_have_been_copied"), true);
2385  $ilCtrl->redirect($this, "chapters");
2386  }
static setAction(string $a_action)
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...
ilLanguage $lng
static clipboardCopy(int $a_cont_obj_id, array $a_ids)
Copy a set of chapters/pages into the clipboard.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ copyPage()

ilObjContentObjectGUI::copyPage ( )

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

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

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  }
static setAction(string $a_action)
static clipboardCopy(int $a_cont_obj_id, array $a_ids)
Copy a set of chapters/pages into the clipboard.
+ Here is the call graph for this function:

◆ cutChapter()

ilObjContentObjectGUI::cutChapter ( )

Cut chapter(s)

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

References cutItems().

2391  : void
2392  {
2393  $this->cutItems("chapters");
2394  }
+ Here is the call graph for this function:

◆ cutItems()

ilObjContentObjectGUI::cutItems ( array  $ids)

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilLMObject\clipboardCut(), ilEditClipboard\setAction(), and ilLanguage\txt().

Referenced by cutChapter().

2334  : void
2335  {
2336  $ilCtrl = $this->ctrl;
2337  $lng = $this->lng;
2338 
2339  if (count($ids) == 0) {
2340  $this->tpl->setOnScreenMessage('failure', $lng->txt("no_checkbox"), true);
2341  $ilCtrl->redirect($this, $this->edit_request->getBackCmd());
2342  }
2343 
2344  $todel = array(); // delete IDs < 0 (needed for non-js editing)
2345  foreach ($ids as $k => $item) {
2346  if ($item < 0) {
2347  $todel[] = $k;
2348  }
2349  }
2350  foreach ($todel as $k) {
2351  unset($ids[$k]);
2352  }
2353  ilLMObject::clipboardCut($this->lm->getId(), $ids);
2355  $this->tpl->setOnScreenMessage('info', $lng->txt("cont_selected_items_have_been_cut"), true);
2356 
2357  $ilCtrl->redirect($this, $this->edit_request->getBackCmd());
2358  }
static setAction(string $a_action)
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 clipboardCut(int $a_cont_obj_id, array $a_ids)
Copy a set of chapters/pages into the clipboard.
ilLanguage $lng
+ Here is the call graph for this function:
+ Here is the caller 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 1033 of file class.ilObjContentObjectGUI.php.

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

Referenced by ilLMObjectGUI\delete().

1033  : void
1034  {
1035  $ids = $this->edit_request->getIds();
1036 
1037  if (count($ids) == 0) {
1038  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
1039  $this->cancelDelete();
1040  }
1041 
1042  if (count($ids) == 1 && $ids[0] == ilTree::POS_FIRST_NODE) {
1043  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_item"), true);
1044  $this->cancelDelete();
1045  }
1046 
1047  if ($a_parent_subobj_id == 0) {
1048  $this->setTabs("content");
1049  }
1050 
1051  if ($a_parent_subobj_id != 0) {
1052  $this->ctrl->setParameterByClass("ilStructureObjectGUI", "backcmd", $this->requested_backcmd);
1053  $this->ctrl->setParameterByClass("ilStructureObjectGUI", "obj_id", $a_parent_subobj_id);
1054  $form_action = $this->ctrl->getFormActionByClass("ilStructureObjectGUI");
1055  } else {
1056  $this->ctrl->setParameter($this, "backcmd", $this->requested_backcmd);
1057  $form_action = $this->ctrl->getFormAction($this);
1058  }
1059 
1060  // display confirmation message
1061  $cgui = new ilConfirmationGUI();
1062  $cgui->setFormAction($form_action);
1063  $cgui->setHeaderText($this->lng->txt("info_delete_sure"));
1064  $cgui->setCancel($this->lng->txt("cancel"), "cancelDelete");
1065  $cgui->setConfirm($this->lng->txt("confirm"), "confirmedDelete");
1066 
1067  foreach ($ids as $id) {
1068  if ($id != ilTree::POS_FIRST_NODE) {
1069  $obj = new ilLMObject($this->lm, $id);
1070  $caption = $obj->getTitle();
1071 
1072  $cgui->addItem("id[]", $id, $caption);
1073  }
1074  }
1075 
1076  $this->tpl->setContent($cgui->getHTML());
1077  }
const POS_FIRST_NODE
setTabs()
set admin tabs
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteMenuEntry()

ilObjContentObjectGUI::deleteMenuEntry ( )

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

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

2140  : void
2141  {
2142  if (empty($this->requested_menu_entry)) {
2143  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_menu_entry_id"), true);
2144  $this->ctrl->redirect($this, "editMenuProperties");
2145  }
2146 
2147  $this->__initLMMenuEditor();
2148  $this->lmme_obj->delete($this->requested_menu_entry);
2149 
2150  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_entry_removed"), true);
2151  $this->ctrl->redirect($this, "editMenuProperties");
2152  }
+ Here is the call graph for this function:

◆ deleteTooltips()

ilObjContentObjectGUI::deleteTooltips ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$id, ilObjectGUI\$lng, ILIAS\Repository\help(), and ilLanguage\txt().

2577  : void
2578  {
2579  $lng = $this->lng;
2580  $ilCtrl = $this->ctrl;
2581 
2582  $ids = $this->edit_request->getIds();
2583  if (count($ids) > 0) {
2584  foreach ($ids as $id) {
2585  $this->help->internal()->domain()->tooltips()->deleteTooltip($id);
2586  }
2587  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2588  }
2589  $ilCtrl->redirect($this, "showTooltipList");
2590  }
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...
ilLanguage $lng
+ Here is the call graph for this function:

◆ doExportHTML()

ilObjContentObjectGUI::doExportHTML ( )
protected

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

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

Referenced by showExportOptionsHTML().

568  : void
569  {
570  $ot = ilObjectTranslation::getInstance($this->lm->getId());
571  $form = $this->buildExportOptionsFormHTML()->withRequest($this->request);
572  $lang = "";
573  if ($ot->getContentActivated() and !is_null($form->getData())) {
574  $format = explode("_", $form->getData()[0][0]);
575  $lang = ilUtil::stripSlashes($format[1]);
576  }
577  if ($ot->getContentActivated() and is_null($form->getData())) {
578  $this->addHeaderAction();
579  $this->addLocations(true);
580  $this->setTabs("export");
581  $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($form));
582  return;
583  }
584  $cont_exp = new ilContObjectExport($this->lm, "html", $lang);
585  $cont_exp->buildExportFile();
586  $this->ctrl->redirectByClass(ilExportGUI::class, ilExportGUI::CMD_LIST_EXPORT_FILES);
587  }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
addLocations(bool $a_omit_obj_id=false)
display locator
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance(int $obj_id)
$lang
Definition: xapiexit.php:25
setTabs()
set admin tabs
const CMD_LIST_EXPORT_FILES
addHeaderAction()
Add header action menu.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doExportXML()

ilObjContentObjectGUI::doExportXML ( )
protected

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

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

548  : void
549  {
550  $form = $this->buildExportOptionsFormXML()->withRequest($this->request);
551  $format = "";
552  if (!is_null($form->getData())) {
553  $format = explode("_", $form->getData()[0][0]);
554  }
555  if (is_null($form->getData())) {
556  $this->addHeaderAction();
557  $this->addLocations(true);
558  $this->setTabs("export");
559  $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($form));
560  return;
561  }
562  $opt = ilUtil::stripSlashes($format[1]);
563  $cont_exp = new ilContObjectExport($this->lm);
564  $cont_exp->buildExportFile($opt);
565  $this->ctrl->redirectByClass(ilExportGUI::class, ilExportGUI::CMD_LIST_EXPORT_FILES);
566  }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
addLocations(bool $a_omit_obj_id=false)
display locator
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTabs()
set admin tabs
const CMD_LIST_EXPORT_FILES
addHeaderAction()
Add header action menu.
+ Here is the call graph for this function:

◆ editGlossaries()

ilObjContentObjectGUI::editGlossaries ( )

Edit automatically linked glossaries.

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, $tabs, ilObjectGUI\$toolbar, ilObjectGUI\$tpl, ILIAS\UICore\GlobalTemplate\setContent(), setSubTabs(), ilObjectGUI\setTabs(), and ilLanguage\txt().

2726  : void
2727  {
2728  $tpl = $this->tpl;
2729  $ilToolbar = $this->toolbar;
2730  $lng = $this->lng;
2731  $ilCtrl = $this->ctrl;
2732  $ilTabs = $this->tabs;
2733 
2734  $this->setTabs();
2735  $ilTabs->setTabActive("settings");
2736  $this->setSubTabs("cont_glossaries");
2737 
2738  $ilToolbar->addButton(
2739  $lng->txt("add"),
2740  $ilCtrl->getLinkTarget($this, "showLMGlossarySelector")
2741  );
2742 
2743  $tab = new ilLMGlossaryTableGUI($this->lm, $this, "editGlossaries");
2744 
2745  $tpl->setContent($tab->getHTML());
2746  }
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...
setContent(string $a_html)
Sets content for standard template.
ilLanguage $lng
ilGlobalTemplateInterface $tpl
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilToolbarGUI $toolbar
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ editMasterLanguage()

ilObjContentObjectGUI::editMasterLanguage ( )

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

References ilObjectGUI\$ctrl, and ilCtrl\setParameter().

2825  : void
2826  {
2827  $ilCtrl = $this->ctrl;
2828 
2829  $ilCtrl->setParameter($this, "transl", "-");
2830  if ($this->lang_switch_mode == "short_titles") {
2831  $ilCtrl->redirectByClass("illmeditshorttitlesgui", "");
2832  }
2833  $ilCtrl->redirect($this, "chapters");
2834  }
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
+ Here is the call graph for this function:

◆ editMenuEntry()

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

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

References ilObjectGUI\$ctrl, $tabs, ilObjectGUI\$toolbar, ILIAS\Repository\ctrl(), ilPropertyFormGUI\getHTML(), initMenuEntryForm(), ILIAS\Repository\lng(), setSubTabs(), and ilObjectGUI\setTabs().

Referenced by updateMenuEntry().

2154  : void
2155  {
2156  $ilToolbar = $this->toolbar;
2157  $ilCtrl = $this->ctrl;
2158  $ilTabs = $this->tabs;
2159 
2160  $this->setTabs();
2161 
2162  $ilTabs->setTabActive("settings");
2163  $this->setSubTabs("cont_lm_menu");
2164 
2165 
2166  if (empty($this->requested_menu_entry)) {
2167  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_menu_entry_id"), true);
2168  $this->ctrl->redirect($this, "editMenuProperties");
2169  }
2170 
2171  $ilCtrl->saveParameter($this, array("menu_entry"));
2172  $ilToolbar->addButton(
2173  $this->lng->txt("lm_menu_select_internal_object"),
2174  $ilCtrl->getLinkTarget($this, "showEntrySelector")
2175  );
2176 
2177  if (is_null($form)) {
2178  $form = $this->initMenuEntryForm("edit");
2179  }
2180  $this->tpl->setContent($form->getHTML());
2181  }
ilToolbarGUI $toolbar
initMenuEntryForm(string $a_mode="edit")
setTabs()
set admin tabs
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ editMenuProperties()

ilObjContentObjectGUI::editMenuProperties ( )

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

References ilObjectGUI\$ctrl, 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().

949  : void
950  {
951  $lng = $this->lng;
952  $ilTabs = $this->tabs;
953  $ilCtrl = $this->ctrl;
954  $tpl = $this->tpl;
955  $ilToolbar = $this->toolbar;
956 
957  $lng->loadLanguageModule("style");
958  $this->setTabs();
959  $ilTabs->setTabActive("settings");
960  $this->setSubTabs("cont_lm_menu");
961 
962  $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
963  $ilToolbar->addFormButton($this->lng->txt("add_menu_entry"), "addMenuEntry");
964  $ilToolbar->setCloseFormTag(false);
965 
966  $form = $this->initMenuForm();
967  $form->setOpenTag(false);
968  $form->setCloseTag(false);
969 
970  $this->__initLMMenuEditor();
971  $entries = $this->lmme_obj->getMenuEntries();
972  $table = new ilLMMenuItemsTableGUI($this, "editMenuProperties", $this->lmme_obj);
973  $table->setOpenFormTag(false);
974 
975  $tpl->setContent($form->getHTML() . "<br />" . $table->getHTML());
976  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setCloseTag(bool $a_val)
setContent(string $a_html)
Sets content for standard template.
loadLanguageModule(string $a_module)
Load language module.
setOpenTag(bool $a_open)
ilLanguage $lng
ilGlobalTemplateInterface $tpl
ilToolbarGUI $toolbar
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ export()

ilObjContentObjectGUI::export ( )

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

References ilObjectTranslation\getInstance(), and ilUtil\stripSlashes().

1503  : void
1504  {
1505  $ot = ilObjectTranslation::getInstance($this->lm->getId());
1506  $opt = "";
1507  if ($ot->getContentActivated()) {
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  }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance(int $obj_id)
+ Here is the call graph for this function:

◆ exportHTML()

ilObjContentObjectGUI::exportHTML ( )

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

References $lang, ilObjectTranslation\getInstance(), and ilUtil\stripSlashes().

1598  : void
1599  {
1600  $ot = ilObjectTranslation::getInstance($this->lm->getId());
1601  $lang = "";
1602  if ($ot->getContentActivated()) {
1603  $format = explode("_", $this->edit_request->getFormat());
1604  $lang = ilUtil::stripSlashes($format[1]);
1605  }
1606  $cont_exp = new ilContObjectExport($this->lm, "html", $lang);
1607  $cont_exp->buildExportFile();
1608  }
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance(int $obj_id)
$lang
Definition: xapiexit.php:25
+ Here is the call graph for this function:

◆ filterHelpChapters()

ilObjContentObjectGUI::filterHelpChapters ( )

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

References ilObjectGUI\$ctrl, and ilSession\set().

2433  : void
2434  {
2435  $ilCtrl = $this->ctrl;
2436  ilSession::set("help_chap", $this->edit_request->getHelpChap());
2437  $ilCtrl->redirect($this, "showExportIDsOverview");
2438  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ filterTooltips()

ilObjContentObjectGUI::filterTooltips ( )

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

References ilObjectGUI\$ctrl, and ilSession\set().

2549  : void
2550  {
2551  $ilCtrl = $this->ctrl;
2552 
2554  "help_tt_comp",
2555  $this->edit_request->getTooltipComponent()
2556  );
2557  $ilCtrl->redirect($this, "showTooltipList");
2558  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ fixTree()

ilObjContentObjectGUI::fixTree ( )

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

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

1591  : void
1592  {
1593  $this->lm->fixTree();
1594  $this->tpl->setOnScreenMessage('success', $this->lng->txt("cont_tree_fixed"), true);
1595  $this->ctrl->redirect($this, "showMaintenance");
1596  }
+ Here is the call graph for this function:

◆ fixTreeConfirm()

ilObjContentObjectGUI::fixTreeConfirm ( )

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

References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), setContentSubTabs(), and ilObjectGUI\setTabs().

1572  : void
1573  {
1574  $this->setTabs();
1575  $this->setContentSubTabs("maintenance");
1576 
1577  // display confirmation message
1578  $cgui = new ilConfirmationGUI();
1579  $cgui->setFormAction($this->ctrl->getFormAction($this));
1580  $cgui->setHeaderText($this->lng->txt("cont_fix_tree_confirm"));
1581  $cgui->setCancel($this->lng->txt("cancel"), "showMaintenance");
1582  $cgui->setConfirm($this->lng->txt("cont_fix_tree"), "fixTree");
1583  $issues = $this->lm->checkStructure();
1584  $mess = "";
1585  if (count($issues) > 0) {
1586  $mess = "Found Issues: <br>" . implode("<br>", $issues);
1587  }
1588  $this->tpl->setContent($cgui->getHTML() . $mess);
1589  }
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ getBlockedUsersMailSignature()

ilObjContentObjectGUI::getBlockedUsersMailSignature ( )
protected

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

References ILIAS\Repository\lng().

Referenced by sendMailToBlockedUsers().

1747  : string
1748  {
1749  $link = chr(13) . chr(10) . chr(13) . chr(10);
1750  $link .= $this->lng->txt('cont_blocked_users_mail_link');
1751  $link .= chr(13) . chr(10) . chr(13) . chr(10);
1752  $link .= ilLink::_getLink($this->lm->getRefId());
1753  return rawurlencode(base64_encode($link));
1754  }
+ Here is the call graph for this function:
+ Here is the caller 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.

References $path.

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  }
$path
Definition: ltiservices.php:29

◆ getLayoutOption()

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

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

References $DIC, ilObjectGUI\$lng, ilObjContentObject\getAvailableLayouts(), ilUtil\getImagePath(), ilUtil\img(), and ilLanguage\txt().

Referenced by ilStructureObjectGUI\initSetPageLayoutForm().

2601  global $DIC;
2602 
2603  $im_tag = "";
2604 
2605  $lng = $DIC->language();
2606 
2607  // default layout
2608  $layout = new ilRadioGroupInputGUI($a_txt, $a_var);
2609  if ($a_def_option != "") {
2610  if (is_file($im = ilUtil::getImagePath("layout_" . $a_def_option . ".png"))) {
2611  $im_tag = ilUtil::img($im, $a_def_option);
2612  }
2613  $layout->addOption(new ilRadioOption("<table><tr><td>" . $im_tag . "</td><td><strong>" .
2614  $lng->txt("cont_lm_default_layout") .
2615  "</strong>: " . $lng->txt("cont_layout_" . $a_def_option) .
2616  "</td></tr></table>", ""));
2617  }
2618  foreach (ilObjContentObject::getAvailableLayouts() as $l) {
2619  $im_tag = "";
2620  if (is_file($im = ilUtil::getImagePath("layout_" . $l . ".png"))) {
2621  $im_tag = ilUtil::img($im, $l);
2622  }
2623  $layout->addOption(new ilRadioOption("<table><tr><td style='padding: 0px 5px 5px;'>" .
2624  $im_tag . "</td><td style='padding:5px;'><strong>" . $lng->txt("cont_layout_" . $l) . "</strong>: " .
2625  $lng->txt("cont_layout_" . $l . "_desc") . "</td></tr></table>", $l));
2626  }
2627 
2628  return $layout;
2629  }
This class represents an option in a radio group.
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 getAvailableLayouts()
get all available lm layouts
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
ilLanguage $lng
This class represents a property in a property form.
global $DIC
Definition: shib_login.php:22
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:
+ 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 1147 of file class.ilObjContentObjectGUI.php.

References $DIC, $lang, ilObjectGUI\$lng, ilObjectGUI\$ui_factory, ilObjectGUI\$ui_renderer, ilObjectTranslation\getInstance(), ILIAS\LearningModule\Editing\EditingGUIRequest\getToTranslation(), ILIAS\LearningModule\Editing\EditingGUIRequest\getTranslation(), ilLanguage\loadLanguageModule(), and ilLanguage\txt().

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

1151  : string {
1152  global $DIC;
1153 
1154  $lng = $DIC->language();
1155  $ilCtrl = $DIC->ctrl();
1156 
1157  $edit_request = $DIC
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 = ilObjectTranslation::getInstance($a_lm_id);
1174  if ($ot->getContentActivated()) {
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->getMasterLanguage();
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->getMasterLanguage()) {
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  }
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...
loadLanguageModule(string $a_module)
Load language module.
ilLanguage $lng
UIFactory $ui_factory
static getInstance(int $obj_id)
global $DIC
Definition: shib_login.php:22
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$lang
Definition: xapiexit.php:25
UIRenderer $ui_renderer
+ 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 742 of file class.ilObjContentObjectGUI.php.

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

Referenced by properties().

742  : void
743  {
744  $ilUser = $this->user;
745 
746  $values = array();
747 
748  $title = $this->lm->getTitle();
749  $description = $this->lm->getLongDescription();
750  $ot = ilObjectTranslation::getInstance($this->lm->getId());
751  if ($ot->getContentActivated()) {
752  $title = $ot->getDefaultTitle();
753  $description = $ot->getDefaultDescription();
754  }
755 
756  $values["title"] = $title;
757  $values["description"] = $description;
758  if (!$this->lm->getOfflineStatus()) {
759  $values["cobj_online"] = true;
760  }
761  //$values["lm_layout"] = $this->lm->getLayout();
762  $values["lm_pg_header"] = $this->lm->getPageHeader();
763  if ($this->lm->isActiveNumbering()) {
764  $values["cobj_act_number"] = true;
765  }
766  $values["toc_mode"] = $this->lm->getTOCMode();
767  if ($this->lm->publicNotes()) {
768  $values["cobj_pub_notes"] = true;
769  }
770  if ($this->lm->cleanFrames()) {
771  $values["cobj_clean_frames"] = true;
772  }
773  //$values["layout_per_page"] = $this->lm->getLayoutPerPage();
774  $values["rating"] = $this->lm->hasRating();
775  $values["rating_pages"] = $this->lm->hasRatingPages();
776  $values["disable_def_feedback"] = $this->lm->getDisableDefaultFeedback();
777  $values["progr_icons"] = $this->lm->getProgressIcons();
778  $values["store_tries"] = (string) (int) $this->lm->getStoreTries();
779  $values["restrict_forw_nav"] = $this->lm->getRestrictForwardNavigation();
780 
781  $values["notification_blocked_users"] = ilNotification::hasNotification(
783  $ilUser->getId(),
784  $this->lm->getId()
785  );
786 
787  $values["cont_show_info_tab"] = $this->object->isInfoEnabled();
788  $this->form->setValuesByArray($values, true);
789  }
static getInstance(int $obj_id)
form( $class_path, string $cmd, string $submit_caption="")
static hasNotification(int $type, int $user_id, int $id)
Check notification status for object and user.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPublicAccessColValue()

ilObjContentObjectGUI::getPublicAccessColValue ( string  $a_type,
string  $a_file 
)

Get public access value for export table.

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilCtrl\getLinkTarget(), and ilLanguage\txt().

1523  : string {
1524  $lng = $this->lng;
1525  $ilCtrl = $this->ctrl;
1526  $add = "";
1527 
1528  $changelink = "<a href='" . $ilCtrl->getLinkTarget($this, "editMenuProperties") . "'>" . $lng->txt("change") . "</a>";
1529  if (!$this->lm->isActiveLMMenu()) {
1530  $add = "<br />" . $lng->txt("cont_download_no_menu") . " " . $changelink;
1531  } elseif (!$this->lm->isActiveDownloads()) {
1532  $add = "<br />" . $lng->txt("cont_download_no_download") . " " . $changelink;
1533  }
1534 
1535  $basetype = explode("_", $a_type);
1536  $basetype = $basetype[0];
1537 
1538  if ($this->lm->getPublicExportFile($basetype) == $a_file) {
1539  return $lng->txt("yes") . $add;
1540  }
1541 
1542  return " ";
1543  }
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...
getLinkTarget(object $a_gui_obj, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
ilLanguage $lng
+ Here is the call graph for this function:

◆ initMenuEntryForm()

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

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

References ilObjectGUI\$ctrl, $form, ilObjectGUI\$lng, ilObjectGUI\$obj_id, $requested_link_ref_id, __initLMMenuEditor(), ilObject\_lookupObjectId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ILIAS\Repository\lng(), ilFormGUI\setFormAction(), ilPropertyFormGUI\setTitle(), and ilLanguage\txt().

Referenced by addMenuEntry(), editMenuEntry(), saveMenuEntry(), and updateMenuEntry().

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

◆ initMenuForm()

ilObjContentObjectGUI::initMenuForm ( )

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

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

Referenced by editMenuProperties(), and saveMenuProperties().

885  {
886  $lng = $this->lng;
887  $ilCtrl = $this->ctrl;
888 
889  $form = new ilPropertyFormGUI();
890 
891  // enable menu
892  $menu = new ilCheckboxInputGUI($this->lng->txt("cont_active"), "cobj_act_lm_menu");
893  $menu->setChecked($this->lm->isActiveLMMenu());
894  $form->addItem($menu);
895 
896  // toc
897  /*
898  $toc = new ilCheckboxInputGUI($this->lng->txt("cont_toc"), "cobj_act_toc");
899 
900  $toc->setChecked($this->lm->isActiveTOC());
901  $form->addItem($toc);*/
902 
903  // print view
904  $print = new ilCheckboxInputGUI($this->lng->txt("cont_print_view"), "cobj_act_print");
905  $print->setChecked($this->lm->isActivePrintView());
906  $form->addItem($print);
907 
908  // prevent glossary appendix
909  $glo = new ilCheckboxInputGUI($this->lng->txt("cont_print_view_pre_glo"), "cobj_act_print_prev_glo");
910  $glo->setChecked($this->lm->isActivePreventGlossaryAppendix());
911  $print->addSubItem($glo);
912 
913  // hide header and footer in print view
914  $hhfp = new ilCheckboxInputGUI($this->lng->txt("cont_hide_head_foot_print"), "hide_head_foot_print");
915  $hhfp->setChecked($this->lm->getHideHeaderFooterPrint());
916  $print->addSubItem($hhfp);
917 
918  // downloads
919  $no_download_file_available =
920  " " . $lng->txt("cont_no_download_file_available") .
921  " <a href='" . $ilCtrl->getLinkTargetByClass("ilexportgui", "") . "'>" . $lng->txt("change") . "</a>";
922  $types = array("xml", "html");
923  foreach ($types as $type) {
924  if ($this->lm->getPublicExportFile($type) != "") {
925  if (is_file($this->lm->getExportDirectory($type) . "/" .
926  $this->lm->getPublicExportFile($type))) {
927  $no_download_file_available = "";
928  }
929  }
930  }
931  $dl = new ilCheckboxInputGUI($this->lng->txt("cont_downloads"), "cobj_act_downloads");
932  $dl->setInfo($this->lng->txt("cont_downloads_desc") . $no_download_file_available);
933  $dl->setChecked($this->lm->isActiveDownloads());
934  $form->addItem($dl);
935 
936  // downloads in public area
937  $pdl = new ilCheckboxInputGUI($this->lng->txt("cont_downloads_public_desc"), "cobj_act_downloads_public");
938  $pdl->setChecked($this->lm->isActiveDownloadsPublic());
939  $dl->addSubItem($pdl);
940 
941  $form->addCommandButton("saveMenuProperties", $lng->txt("save"));
942 
943  $form->setTitle($lng->txt("cont_lm_menu"));
944  $form->setFormAction($ilCtrl->getFormAction($this));
945 
946  return $form;
947  }
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...
ilLanguage $lng
setFormAction(string $a_formaction)
addCommandButton(string $a_cmd, string $a_text, string $a_id="")
+ 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 614 of file class.ilObjContentObjectGUI.php.

References ilObjectGUI\$ctrl, $form, $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(), ilSelectInputGUI\setOptions(), ilRadioGroupInputGUI\setValue(), and ilLanguage\txt().

Referenced by properties(), and saveProperties().

614  : void
615  {
616  $obj_service = $this->object_service;
617 
618  $ilCtrl = $this->ctrl;
619  $lng = $this->lng;
621 
622  $this->form = new ilPropertyFormGUI();
623 
624  // title
625  $ti = new ilTextInputGUI($lng->txt("title"), "title");
626  $ti->setRequired(true);
627  $this->form->addItem($ti);
628 
629  // description
630  $ta = new ilTextAreaInputGUI($lng->txt("desc"), "description");
631  $this->form->addItem($ta);
632 
633  $lng->loadLanguageModule("rep");
634  $section = new ilFormSectionHeaderGUI();
635  $section->setTitle($this->lng->txt('rep_activation_availability'));
636  $this->form->addItem($section);
637 
638  // online
639  $online = new ilCheckboxInputGUI($lng->txt("cont_online"), "cobj_online");
640  $this->form->addItem($online);
641 
642  // presentation
643  $section = new ilFormSectionHeaderGUI();
644  $section->setTitle($this->lng->txt('cont_presentation'));
645  $this->form->addItem($section);
646 
647  // tile image
648  $obj_service->commonSettings()->legacyForm($this->form, $this->lm)->addTileImage();
649 
650  // page header
651  $page_header = new ilSelectInputGUI($lng->txt("cont_page_header"), "lm_pg_header");
652  $option = array("st_title" => $this->lng->txt("cont_st_title"),
653  "pg_title" => $this->lng->txt("cont_pg_title"),
654  "none" => $this->lng->txt("cont_none"));
655  $page_header->setOptions($option);
656  $this->form->addItem($page_header);
657 
658  // chapter numeration
659  $chap_num = new ilCheckboxInputGUI($lng->txt("cont_act_number"), "cobj_act_number");
660  $this->form->addItem($chap_num);
661 
662  // toc mode
663  $toc_mode = new ilSelectInputGUI($lng->txt("cont_toc_mode"), "toc_mode");
664  $option = array("chapters" => $this->lng->txt("cont_chapters_only"),
665  "pages" => $this->lng->txt("cont_chapters_and_pages"));
666  $toc_mode->setOptions($option);
667  $this->form->addItem($toc_mode);
668 
669  // show progress icons
670  $progr_icons = new ilCheckboxInputGUI($lng->txt("cont_progress_icons"), "progr_icons");
671  $progr_icons->setInfo($this->lng->txt("cont_progress_icons_info"));
672  $this->form->addItem($progr_icons);
673 
674  $this->reading_time_gui->addSettingToForm($this->form);
675 
676  // self assessment
677  $section = new ilFormSectionHeaderGUI();
678  $section->setTitle($this->lng->txt('cont_self_assessment'));
679  $this->form->addItem($section);
680 
681  // tries
682  $radg = new ilRadioGroupInputGUI($lng->txt("cont_tries"), "store_tries");
683  $radg->setValue("0");
684  $op1 = new ilRadioOption($lng->txt("cont_tries_reset_on_visit"), "0", $lng->txt("cont_tries_reset_on_visit_info"));
685  $radg->addOption($op1);
686  $op2 = new ilRadioOption($lng->txt("cont_tries_store"), "1", $lng->txt("cont_tries_store_info"));
687  $radg->addOption($op2);
688  $this->form->addItem($radg);
689 
690  // restrict forward navigation
691  $qfeed = new ilCheckboxInputGUI($lng->txt("cont_restrict_forw_nav"), "restrict_forw_nav");
692  $qfeed->setInfo($this->lng->txt("cont_restrict_forw_nav_info"));
693  $this->form->addItem($qfeed);
694 
695  // notification
696  $not = new ilCheckboxInputGUI($lng->txt("cont_notify_on_blocked_users"), "notification_blocked_users");
697  $not->setInfo($this->lng->txt("cont_notify_on_blocked_users_info"));
698  $qfeed->addSubItem($not);
699 
700  // disable default feedback for questions
701  $qfeed = new ilCheckboxInputGUI($lng->txt("cont_disable_def_feedback"), "disable_def_feedback");
702  $qfeed->setInfo($this->lng->txt("cont_disable_def_feedback_info"));
703  $this->form->addItem($qfeed);
704 
705  // additional features
706  $section = new ilFormSectionHeaderGUI();
707  $section->setTitle($this->lng->txt('obj_features'));
708  $this->form->addItem($section);
709 
710  // public notes
711  if (!$ilSetting->get('disable_comments')) {
712  $this->lng->loadLanguageModule("notes");
713  $pub_nodes = new ilCheckboxInputGUI($lng->txt("notes_comments"), "cobj_pub_notes");
714  $pub_nodes->setInfo($this->lng->txt("cont_lm_comments_desc"));
715  $this->form->addItem($pub_nodes);
716  }
717 
718  // rating
719  $this->lng->loadLanguageModule('rating');
720  $rate = new ilCheckboxInputGUI($this->lng->txt('rating_activate_rating'), 'rating');
721  $rate->setInfo($this->lng->txt('rating_activate_rating_info'));
722  $this->form->addItem($rate);
723  $ratep = new ilCheckboxInputGUI($this->lng->txt('lm_activate_rating'), 'rating_pages');
724  $this->form->addItem($ratep);
725 
726  $this->form->setTitle($lng->txt("cont_lm_properties"));
727  $this->form->addCommandButton("saveProperties", $lng->txt("save"));
728  $this->form->setFormAction($ilCtrl->getFormAction($this));
729 
731  $this->object->getId(),
732  $this->form,
733  [
735  ]
736  );
737  }
This class represents an option in a radio group.
This class represents a selection list property in a property form.
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...
loadLanguageModule(string $a_module)
Load language module.
setOptions(array $a_options)
ilLanguage $lng
This class represents a property in a property form.
ilObjectService $object_service
static initServiceSettingsForm(int $obj_id, ilPropertyFormGUI $form, array $services)
form( $class_path, string $cmd, string $submit_caption="")
global $ilSetting
Definition: privfeed.php:31
This class represents a text area property in a property form.
ilSetting $settings
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initSetPageLayoutForm()

ilObjContentObjectGUI::initSetPageLayoutForm ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$id, ilObjectGUI\$lng, ILIAS\Repository\form(), and ilLanguage\txt().

Referenced by setPageLayout().

2668  : void
2669  {
2670  $lng = $this->lng;
2671  $ilCtrl = $this->ctrl;
2672 
2673  $this->form = new ilPropertyFormGUI();
2674 
2675  $ids = $this->edit_request->getIds();
2676  foreach ($ids as $id) {
2677  $hi = new ilHiddenInputGUI("id[]");
2678  $hi->setValue($id);
2679  $this->form->addItem($hi);
2680  }
2681  $layout = self::getLayoutOption(
2682  $lng->txt("cont_layout"),
2683  "layout",
2684  $this->lm->getLayout()
2685  );
2686  $this->form->addItem($layout);
2687 
2688  $this->form->addCommandButton("savePageLayout", $lng->txt("save"));
2689  $this->form->addCommandButton("pages", $lng->txt("cancel"));
2690 
2691  $this->form->setTitle($lng->txt("cont_set_layout"));
2692  $this->form->setFormAction($ilCtrl->getFormAction($this));
2693  }
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...
ilLanguage $lng
This class represents a hidden form property in a property form.
form( $class_path, string $cmd, string $submit_caption="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ learningProgress()

ilObjContentObjectGUI::learningProgress ( )
protected

Learning progress.

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

References ILIAS\Repository\ctrl().

2856  : void
2857  {
2858  $this->ctrl->redirectByClass(array('illearningprogressgui'), '');
2859  }
+ Here is the call graph for this function:

◆ listBlockedUsers()

ilObjContentObjectGUI::listBlockedUsers ( )

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

References ilObjectGUI\$tpl, ILIAS\UICore\GlobalTemplate\setContent(), setQuestionsSubTabs(), and ilObjectGUI\setTabs().

1674  : void
1675  {
1676  $tpl = $this->tpl;
1677 
1678  $this->setTabs("questions");
1679  $this->setQuestionsSubTabs("blocked_users");
1680 
1681  $table = new ilLMBlockedUsersTableGUI($this, "listBlockedUsers", $this->lm);
1682  $tpl->setContent($table->getHTML());
1683  }
setContent(string $a_html)
Sets content for standard template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilGlobalTemplateInterface $tpl
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ listLinks()

ilObjContentObjectGUI::listLinks ( )

List all broken links.

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

References ilObjectGUI\$tpl, ILIAS\UICore\GlobalTemplate\setContent(), setContentSubTabs(), and ilObjectGUI\setTabs().

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  }
setContent(string $a_html)
Sets content for standard template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilGlobalTemplateInterface $tpl
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ listQuestions()

ilObjContentObjectGUI::listQuestions ( )

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

References ilObjectGUI\$tpl, ILIAS\UICore\GlobalTemplate\setContent(), setQuestionsSubTabs(), and ilObjectGUI\setTabs().

1663  : void
1664  {
1665  $tpl = $this->tpl;
1666 
1667  $this->setTabs("questions");
1668  $this->setQuestionsSubTabs("question_stats");
1669 
1670  $table = new ilLMQuestionListTableGUI($this, "listQuestions", $this->lm);
1671  $tpl->setContent($table->getHTML());
1672  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setContent(string $a_html)
Sets content for standard template.
ilGlobalTemplateInterface $tpl
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ moveChapter()

ilObjContentObjectGUI::moveChapter ( int  $a_parent_subobj_id = 0)

move a single chapter (selection)

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

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

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")
const POS_FIRST_NODE
+ Here is the call graph for this function:

◆ movePage()

ilObjContentObjectGUI::movePage ( )

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

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

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  }
static setAction(string $a_action)
static clipboardCut(int $a_cont_obj_id, array $a_ids)
Copy a set of chapters/pages into the clipboard.
+ Here is the call graph for this function:

◆ pages()

ilObjContentObjectGUI::pages ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilObjectGUI\$toolbar, ilObjectGUI\$tpl, ILIAS\UICore\GlobalTemplate\setContent(), setContentSubTabs(), ilObjectGUI\setTabs(), and ilLanguage\txt().

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  }
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...
setContent(string $a_html)
Sets content for standard template.
ilLanguage $lng
ilGlobalTemplateInterface $tpl
ilToolbarGUI $toolbar
setTabs()
set admin tabs
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ 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 999 of file class.ilObjContentObjectGUI.php.

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

999  : void
1000  {
1001  $ilCtrl = $this->ctrl;
1002 
1004  $this->lm->executeDragDrop(
1005  $req->getHFormPar("source_id"),
1006  $req->getHFormPar("target_id"),
1007  $req->getHFormPar("fc"),
1008  $req->getHFormPar("as_subitem")
1009  );
1010  $ilCtrl->redirect($this, "chapters");
1011  }
catch(\Exception $e) $req
Definition: xapiproxy.php:91

◆ properties()

ilObjContentObjectGUI::properties ( )

edit properties form

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

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

Referenced by ilObjLearningModuleGUI\view().

592  : void
593  {
594  $lng = $this->lng;
595 
596  $lng->loadLanguageModule("style");
597  $this->setTabs("settings");
598  $this->setSubTabs("settings");
599 
600  // lm properties
601  $this->initPropertiesForm();
602  $this->getPropertiesFormValues();
603 
604  // Edit ecs export settings
605  $ecs = new ilECSLearningModuleSettings($this->lm);
606  $ecs->addSettingsToForm($this->form, 'lm');
607 
608  $this->tpl->setContent($this->form->getHTML());
609  }
loadLanguageModule(string $a_module)
Load language module.
getPropertiesFormValues()
Get values for properties form.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilLanguage $lng
form( $class_path, string $cmd, string $submit_caption="")
initPropertiesForm()
Init properties form.
setTabs()
set admin tabs
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ publishExportFile()

ilObjContentObjectGUI::publishExportFile ( ?array  $a_files)

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

References ilObjectGUI\$ctrl, Vendor\Package\$f, and ILIAS\Repository\lng().

1547  : void {
1548  $ilCtrl = $this->ctrl;
1549 
1550  if (!isset($a_files)) {
1551  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
1552  } else {
1553  foreach ($a_files as $f) {
1554  $file = explode(":", $f);
1555  if (is_int(strpos($file[0], "_"))) {
1556  $file[0] = explode("_", $file[0])[0];
1557  }
1558  $export_dir = $this->lm->getExportDirectory($file[0]);
1559 
1560  if ($this->lm->getPublicExportFile($file[0]) ==
1561  $file[1]) {
1562  $this->lm->setPublicExportFile($file[0], "");
1563  } else {
1564  $this->lm->setPublicExportFile($file[0], $file[1]);
1565  }
1566  }
1567  $this->lm->update();
1568  }
1569  $ilCtrl->redirectByClass("ilexportgui");
1570  }
+ Here is the call graph for this function:

◆ redrawHeaderAction()

ilObjContentObjectGUI::redrawHeaderAction ( )

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

2847  : void
2848  {
2849  // #12281
2850  parent::redrawHeaderActionObject();
2851  }

◆ removeLMGlossary()

ilObjContentObjectGUI::removeLMGlossary ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, and ilLanguage\txt().

2813  : void
2814  {
2815  $ilCtrl = $this->ctrl;
2816  $lng = $this->lng;
2817 
2818  $this->lm->removeAutoGlossary($this->requested_glo_id);
2819  $this->lm->update();
2820 
2821  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2822  $ilCtrl->redirect($this, "editGlossaries");
2823  }
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...
ilLanguage $lng
+ Here is the call graph for this function:

◆ resetNumberOfTries()

ilObjContentObjectGUI::resetNumberOfTries ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilPageQuestionProcessor\resetTries(), and ilLanguage\txt().

1685  : void
1686  {
1687  $lng = $this->lng;
1688  $ilCtrl = $this->ctrl;
1689 
1690  $user_q_ids = $this->edit_request->getUserQuestionIds();
1691  if (count($user_q_ids) > 0) {
1692  foreach ($user_q_ids as $uqid) {
1693  $uqid = explode(":", $uqid);
1694  ilPageQuestionProcessor::resetTries((int) $uqid[0], (int) $uqid[1]);
1695  }
1696  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1697  }
1698  $ilCtrl->redirect($this, "listBlockedUsers");
1699  }
static resetTries(int $a_q_id, int $a_user_id)
Reset tries for user and question.
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...
ilLanguage $lng
+ Here is the call graph for this function:

◆ saveAllTitles()

ilObjContentObjectGUI::saveAllTitles ( )

Save all titles of chapters/pages.

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

References ilObjectGUI\$ctrl, $requested_transl, ILIAS\Repository\lng(), and ilLMObject\saveTitles().

2288  : void
2289  {
2290  $ilCtrl = $this->ctrl;
2291 
2293  $this->lm,
2294  $this->edit_request->getTitles(),
2296  );
2297 
2298  $this->tpl->setOnScreenMessage('success', $this->lng->txt("lm_save_titles"), true);
2299  $ilCtrl->redirect($this, "chapters");
2300  }
static saveTitles(ilObjLearningModule $a_lm, array $a_titles, string $a_lang="-")
Save titles for lm objects.
+ Here is the call graph for this function:

◆ saveExportIds()

ilObjContentObjectGUI::saveExportIds ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilLMObject\_lookupType(), ilLMObject\saveExportId(), showExportIDsOverview(), ilUtil\stripSlashes(), and ilLanguage\txt().

2440  : void
2441  {
2442  $ilCtrl = $this->ctrl;
2443  $lng = $this->lng;
2444 
2445  // check all export ids
2446  $ok = true;
2447  foreach ($this->edit_request->getExportIds() as $exp_id) {
2448  if ($exp_id != "" && !preg_match(
2449  "/^([a-zA-Z]+)[0-9a-zA-Z_]*$/",
2450  trim($exp_id)
2451  )) {
2452  $ok = false;
2453  }
2454  }
2455  if (!$ok) {
2456  $this->tpl->setOnScreenMessage('failure', $lng->txt("cont_exp_ids_not_resp_format1") . ": a-z, A-Z, 0-9, '_'. " .
2457  $lng->txt("cont_exp_ids_not_resp_format3") . " " .
2458  $lng->txt("cont_exp_ids_not_resp_format2"));
2459  $this->showExportIDsOverview(true);
2460  return;
2461  }
2462 
2463 
2464  foreach ($this->edit_request->getExportIds() as $pg_id => $exp_id) {
2466  $this->lm->getId(),
2467  $pg_id,
2468  ilUtil::stripSlashes($exp_id),
2469  ilLMObject::_lookupType($pg_id)
2470  );
2471  }
2472 
2473  $this->tpl->setOnScreenMessage('success', $lng->txt("cont_saved_export_ids"), true);
2474  $ilCtrl->redirect($this, "showExportIdsOverview");
2475  }
showExportIDsOverview(bool $a_validation=false)
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 stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
ilLanguage $lng
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)
+ Here is the call graph for this function:

◆ saveHelpMapping()

ilObjContentObjectGUI::saveHelpMapping ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ILIAS\Repository\help(), and ilLanguage\txt().

2477  : void
2478  {
2479  $lng = $this->lng;
2480  $ilCtrl = $this->ctrl;
2481  $help_map = $this->help->internal()->domain()->map();
2482 
2483  foreach ($this->edit_request->getScreenIds() as $chap => $ids) {
2484  $ids = explode("\n", $ids);
2485  $help_map->saveScreenIdsForChapter($chap, $ids);
2486  }
2487  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2488  $ilCtrl->redirect($this, "showExportIdsOverview");
2489  }
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...
ilLanguage $lng
+ Here is the call graph for this function:

◆ saveMenuEntry()

ilObjContentObjectGUI::saveMenuEntry ( )

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

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

2117  : void
2118  {
2119  $form = $this->initMenuEntryForm("create");
2120  if ($form->checkInput()) {
2121  $this->__initLMMenuEditor();
2122  $this->lmme_obj->setTitle($form->getInput("title"));
2123  $this->lmme_obj->setTarget($form->getInput("target"));
2124  $this->lmme_obj->setLinkRefId((int) $form->getInput("link_ref_id"));
2125 
2126  if ($form->getInput("link_ref_id")) {
2127  $this->lmme_obj->setLinkType("intern");
2128  }
2129 
2130  $this->lmme_obj->create();
2131 
2132  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_entry_added"), true);
2133  $this->ctrl->redirect($this, "editMenuProperties");
2134  } else {
2136  $this->addMenuEntry($form);
2137  }
2138  }
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-...
addMenuEntry(?ilPropertyFormGUI $form=null)
display add menu entry form
initMenuEntryForm(string $a_mode="edit")
+ Here is the call graph for this function:

◆ saveMenuProperties()

ilObjContentObjectGUI::saveMenuProperties ( )

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

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

978  : void
979  {
980  $form = $this->initMenuForm();
981  if ($form->checkInput()) {
982  $this->lm->setActiveLMMenu((int) $form->getInput("cobj_act_lm_menu"));
983  //$this->lm->setActiveTOC((int) $form->getInput("cobj_act_toc"));
984  $this->lm->setActivePrintView((int) $form->getInput("cobj_act_print"));
985  $this->lm->setActivePreventGlossaryAppendix((int) $form->getInput("cobj_act_print_prev_glo"));
986  $this->lm->setHideHeaderFooterPrint((int) $form->getInput("hide_head_foot_print"));
987  $this->lm->setActiveDownloads((int) $form->getInput("cobj_act_downloads"));
988  $this->lm->setActiveDownloadsPublic((int) $form->getInput("cobj_act_downloads_public"));
989  $this->lm->updateProperties();
990  }
991 
992  $this->__initLMMenuEditor();
993  $this->lmme_obj->updateActiveStatus($this->edit_request->getMenuEntries());
994 
995  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
996  $this->ctrl->redirect($this, "editMenuProperties");
997  }
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-...
+ Here is the call graph for this function:

◆ savePageLayout()

ilObjContentObjectGUI::savePageLayout ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$id, $lm, ilObjectGUI\$lng, ilCtrl\setParameter(), ilLanguage\txt(), and ilLMObject\writeLayout().

2695  : void
2696  {
2697  $lng = $this->lng;
2698  $ilCtrl = $this->ctrl;
2699 
2700  $ilCtrl->setParameter($this, "hierarchy", $this->requested_hierarchy);
2701 
2702  $ids = $this->edit_request->getIds();
2703  foreach ($ids as $id) {
2705  $id,
2706  $this->edit_request->getLayout(),
2707  $this->lm
2708  );
2709  }
2710  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2711 
2712  if ($this->requested_hierarchy) {
2713  $ilCtrl->redirect($this, "chapters");
2714  } else {
2715  $ilCtrl->redirect($this, "pages");
2716  }
2717  }
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...
ilLanguage $lng
static writeLayout(int $a_obj_id, string $a_layout, ?ilObjLearningModule $a_lm=null)
Write layout setting.
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
+ Here is the call graph for this function:

◆ saveProperties()

ilObjContentObjectGUI::saveProperties ( )

save properties

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

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

794  : void
795  {
796  $lng = $this->lng;
797  $ilUser = $this->user;
799  $obj_service = $this->object_service;
800 
801  $add_info = "";
802 
803  $valid = false;
804  $this->initPropertiesForm();
805  $form = $this->form;
806  if ($form->checkInput()) {
807  $ot = ilObjectTranslation::getInstance($this->lm->getId());
808  if ($ot->getContentActivated()) {
809  $ot->setDefaultTitle($form->getInput('title'));
810  $ot->setDefaultDescription($form->getInput('description'));
811  $ot->save();
812  }
813 
814  $this->lm->setTitle($form->getInput('title'));
815  $this->lm->setDescription($form->getInput('description'));
816  $this->lm->setPageHeader($form->getInput("lm_pg_header"));
817  $this->lm->setTOCMode($form->getInput("toc_mode"));
818  $this->lm->setOfflineStatus(!($form->getInput('cobj_online')));
819  $this->lm->setActiveNumbering((bool) $form->getInput("cobj_act_number"));
820  $this->lm->setCleanFrames((bool) $form->getInput("cobj_clean_frames"));
821  if (!$ilSetting->get('disable_comments')) {
822  $this->lm->setPublicNotes($form->getInput("cobj_pub_notes"));
823  }
824  $this->lm->setRating((bool) $form->getInput("rating"));
825  $this->lm->setRatingPages((bool) $form->getInput("rating_pages"));
826  $this->lm->setDisableDefaultFeedback((int) $form->getInput("disable_def_feedback"));
827  $this->lm->setProgressIcons((int) $form->getInput("progr_icons"));
828  $this->reading_time_gui->saveSettingFromForm($this->form);
829 
830  $add_info = "";
831  $store_tries = $form->getInput("store_tries");
832  if ($form->getInput("restrict_forw_nav") && !$form->getInput("store_tries")) {
833  $store_tries = 1;
834  $add_info = "</br>" . $lng->txt("cont_automatically_set_store_tries");
835  $add_info = str_replace("$1", $lng->txt("cont_tries_store"), $add_info);
836  $add_info = str_replace("$2", $lng->txt("cont_restrict_forw_nav"), $add_info);
837  }
838 
839  $this->lm->setStoreTries((int) $store_tries);
840  $this->lm->setRestrictForwardNavigation((int) $form->getInput("restrict_forw_nav"));
841  $this->lm->updateProperties();
842  $this->lm->update();
843 
844  // tile image
845  $obj_service->commonSettings()->legacyForm($this->form, $this->lm)->saveTileImage();
846 
849  $ilUser->getId(),
850  $this->lm->getId(),
851  (bool) $this->form->getInput("notification_blocked_users")
852  );
853 
854  // services
856  $this->object->getId(),
857  $this->form,
858  array(
860  )
861  );
862 
863 
864  // Update ecs export settings
865  $ecs = new ilECSLearningModuleSettings($this->lm);
866  if ($ecs->handleSettingsUpdate($form)) {
867  $valid = true;
868  }
869  }
870 
871  if ($valid) {
872  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified") . $add_info, true);
873  $this->ctrl->redirect($this, "properties");
874  } else {
875  $lng->loadLanguageModule("style");
876  $this->setTabs("settings");
877  $this->setSubTabs("cont_general_properties");
878 
879  $this->form->setValuesByPost();
880  $this->tpl->setContent($this->form->getHTML());
881  }
882  }
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...
$valid
loadLanguageModule(string $a_module)
Load language module.
static updateServiceSettingsForm(int $obj_id, ilPropertyFormGUI $form, array $services)
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-...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilLanguage $lng
static setNotification(int $type, int $user_id, int $id, bool $status=true)
Set notification status for object and user.
static getInstance(int $obj_id)
ilObjectService $object_service
form( $class_path, string $cmd, string $submit_caption="")
global $ilSetting
Definition: privfeed.php:31
initPropertiesForm()
Init properties form.
setTabs()
set admin tabs
ilSetting $settings
+ Here is the call graph for this function:

◆ saveTooltips()

ilObjContentObjectGUI::saveTooltips ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$id, ilObjectGUI\$lng, ILIAS\Repository\help(), and ilLanguage\txt().

2560  : void
2561  {
2562  $ilCtrl = $this->ctrl;
2563  $lng = $this->lng;
2564 
2565  $tooltip_ids = $this->edit_request->getTooltipIds();
2566  foreach ($this->edit_request->getTooltipTexts() as $id => $text) {
2567  $this->help->internal()->domain()->tooltips()->updateTooltip(
2568  (int) $id,
2569  $text,
2570  $tooltip_ids[(int) $id]
2571  );
2572  }
2573  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2574  $ilCtrl->redirect($this, "showTooltipList");
2575  }
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...
ilLanguage $lng
+ Here is the call graph for this function:

◆ selectFooter()

ilObjContentObjectGUI::selectFooter ( )

select page as footer

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

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

2265  : void
2266  {
2267  $ids = $this->edit_request->getIds();
2268  if (count($ids) == 0) {
2269  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
2270  $this->ctrl->redirect($this, "pages");
2271  }
2272  if (count($ids) > 1) {
2273  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_max_one_item"), true);
2274  $this->ctrl->redirect($this, "pages");
2275  }
2276  if ($ids[0] != $this->lm->getFooterPage()) {
2277  $this->lm->setFooterPage($ids[0]);
2278  } else {
2279  $this->lm->setFooterPage(0);
2280  }
2281  $this->lm->updateProperties();
2282  $this->ctrl->redirect($this, "pages");
2283  }
+ Here is the call graph for this function:

◆ selectHeader()

ilObjContentObjectGUI::selectHeader ( )

select page as header

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

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

2242  : void
2243  {
2244  $ids = $this->edit_request->getIds();
2245  if (count($ids) == 0) {
2246  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
2247  $this->ctrl->redirect($this, "pages");
2248  }
2249  if (count($ids) > 1) {
2250  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_max_one_item"), true);
2251  $this->ctrl->redirect($this, "pages");
2252  }
2253  if ($ids[0] != $this->lm->getHeaderPage()) {
2254  $this->lm->setHeaderPage($ids[0]);
2255  } else {
2256  $this->lm->setHeaderPage(0);
2257  }
2258  $this->lm->updateProperties();
2259  $this->ctrl->redirect($this, "pages");
2260  }
+ Here is the call graph for this function:

◆ selectLMGlossary()

ilObjContentObjectGUI::selectLMGlossary ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, $requested_glo_ref_id, ilObject\_lookupObjId(), and ilLanguage\txt().

Referenced by selectLMGlossaryLink().

2795  : void
2796  {
2797  $ilCtrl = $this->ctrl;
2798  $lng = $this->lng;
2799 
2800  $glos = $this->lm->getAutoGlossaries();
2801  $glo_ref_id = $this->requested_glo_ref_id;
2802  $glo_id = ilObject::_lookupObjId($glo_ref_id);
2803  if (!in_array($glo_id, $glos)) {
2804  $glos[] = $glo_id;
2805  }
2806  $this->lm->setAutoGlossaries($glos);
2807  $this->lm->update();
2808 
2809  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2810  $ilCtrl->redirect($this, "editGlossaries");
2811  }
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 _lookupObjId(int $ref_id)
ilLanguage $lng
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ selectLMGlossaryLink()

ilObjContentObjectGUI::selectLMGlossaryLink ( )

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

References $requested_glo_ref_id, and selectLMGlossary().

2788  : void
2789  {
2790  $glo_ref_id = $this->requested_glo_ref_id;
2791  $this->lm->autoLinkGlossaryTerms($glo_ref_id);
2792  $this->selectLMGlossary();
2793  }
+ Here is the call graph for this function:

◆ sendMailToBlockedUsers()

ilObjContentObjectGUI::sendMailToBlockedUsers ( )

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

References ilObjectGUI\$ctrl, ilObjUser\_lookupLogin(), getBlockedUsersMailSignature(), ilMailFormCall\getRedirectTarget(), ILIAS\Repository\lng(), ilCtrl\redirect(), and ilUtil\redirect().

1717  : void
1718  {
1719  $ilCtrl = $this->ctrl;
1720 
1721  $user_q_ids = $this->edit_request->getUserQuestionIds();
1722  if (count($user_q_ids) == 0) {
1723  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), 1);
1724  $ilCtrl->redirect($this, "listBlockedUsers");
1725  }
1726 
1727  $rcps = array();
1728  foreach ($user_q_ids as $uqid) {
1729  $uqid = explode(":", $uqid);
1730  $login = ilObjUser::_lookupLogin($uqid[1]);
1731  if (!in_array($login, $rcps)) {
1732  $rcps[] = $login;
1733  }
1734  }
1736  $this,
1737  'listBlockedUsers',
1738  array(),
1739  array(
1740  'type' => 'new',
1741  'rcp_to' => implode(',', $rcps),
1742  'sig' => $this->getBlockedUsersMailSignature()
1743  )
1744  ));
1745  }
redirect(object $a_gui_obj, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
static redirect(string $a_script)
static getRedirectTarget( $gui, string $cmd, array $gui_params=[], array $mail_params=[], array $context_params=[])
static _lookupLogin(int $a_user_id)
+ Here is the call graph for this function:

◆ setContentSubTabs()

ilObjContentObjectGUI::setContentSubTabs ( string  $a_active)

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

References ilObjectGUI\$ctrl, $lm_set, ilObjectGUI\$lng, $tabs, ILIAS\Repository\ctrl(), ilObjContentObject\isOnlineHelpModule(), ilLanguage\loadLanguageModule(), and ilLanguage\txt().

Referenced by checkCtrlPath(), fixTreeConfirm(), listLinks(), pages(), showExportIDsOverview(), showMaintenance(), and showTooltipList().

1769  : void
1770  {
1771  $ilTabs = $this->tabs;
1772  $lng = $this->lng;
1773  $ilCtrl = $this->ctrl;
1774 
1775  $lm_set = new ilSetting("lm");
1776 
1777  // chapters
1778  $this->ctrl->setParameterByClass(static::class, "sub_type", "st");
1779  $ilTabs->addSubTab(
1780  "sub_chapters",
1781  $lng->txt("objs_st"),
1782  $this->ctrl->getLinkTargetByClass(EditSubObjectsGUI::class)
1783  );
1784 
1785 
1786  // all pages
1787  $ilTabs->addSubTab(
1788  "pages",
1789  $lng->txt("cont_all_pages"),
1790  $ilCtrl->getLinkTarget($this, "pages")
1791  );
1792 
1793  // all pages
1794  $ilTabs->addSubTab(
1795  "short_titles",
1796  $lng->txt("cont_short_titles"),
1797  $ilCtrl->getLinkTargetByClass("illmeditshorttitlesgui", "")
1798  );
1799 
1800  // export ids
1801  if ($lm_set->get("html_export_ids")) {
1802  if (!ilObjContentObject::isOnlineHelpModule($this->lm->getRefId())) {
1803  $ilTabs->addSubTab(
1804  "export_ids",
1805  $lng->txt("cont_html_export_ids"),
1806  $ilCtrl->getLinkTarget($this, "showExportIDsOverview")
1807  );
1808  }
1809  }
1810  if (ilObjContentObject::isOnlineHelpModule($this->lm->getRefId())) {
1811  $lng->loadLanguageModule("help");
1812  $ilTabs->addSubTab(
1813  "export_ids",
1814  $lng->txt("cont_online_help_ids"),
1815  $ilCtrl->getLinkTarget($this, "showExportIDsOverview")
1816  );
1817 
1818  $ilTabs->addSubTab(
1819  "help_tooltips",
1820  $lng->txt("help_tooltips"),
1821  $ilCtrl->getLinkTarget($this, "showTooltipList")
1822  );
1823  }
1824 
1825  // list links
1826  $ilTabs->addSubTab(
1827  "internal_links",
1828  $lng->txt("cont_internal_links"),
1829  $ilCtrl->getLinkTarget($this, "listLinks")
1830  );
1831 
1832  // maintenance
1833  $ilTabs->addSubTab(
1834  "maintenance",
1835  $lng->txt("cont_maintenance"),
1836  $ilCtrl->getLinkTarget($this, "showMaintenance")
1837  );
1838 
1839  // srt files
1840  $ilTabs->addSubTab(
1841  "srt_files",
1842  $lng->txt("cont_subtitle_files"),
1843  $ilCtrl->getLinkTargetByClass("ilmobmultisrtuploadgui", "")
1844  );
1845 
1846  // srt files
1847  $ilTabs->addSubTab(
1848  "import",
1849  $lng->txt("cont_import"),
1850  $ilCtrl->getLinkTargetByClass("illmimportgui", "")
1851  );
1852 
1853  $ilTabs->activateSubTab($a_active);
1854  $ilTabs->activateTab("content");
1855  }
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...
loadLanguageModule(string $a_module)
Load language module.
ilLanguage $lng
$lm_set
static isOnlineHelpModule(int $a_id, bool $a_as_obj_id=false)
Is module an online module.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPageLayout()

ilObjContentObjectGUI::setPageLayout ( bool  $a_in_hierarchy = false)

Set layout for multiple pages.

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilObjectGUI\$tpl, ILIAS\Repository\form(), initSetPageLayoutForm(), ILIAS\UICore\GlobalTemplate\setContent(), and ilLanguage\txt().

Referenced by setPageLayoutInHierarchy().

2647  : void {
2648  $tpl = $this->tpl;
2649  $ilCtrl = $this->ctrl;
2650  $lng = $this->lng;
2651 
2652  $ids = $this->edit_request->getIds();
2653  if (count($ids) == 0) {
2654  $this->tpl->setOnScreenMessage('failure', $lng->txt("no_checkbox"), true);
2655 
2656  if ($a_in_hierarchy) {
2657  $ilCtrl->redirect($this, "chapters");
2658  } else {
2659  $ilCtrl->redirect($this, "pages");
2660  }
2661  }
2662 
2663  $this->initSetPageLayoutForm();
2664 
2665  $tpl->setContent($this->form->getHTML());
2666  }
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...
setContent(string $a_html)
Sets content for standard template.
ilLanguage $lng
ilGlobalTemplateInterface $tpl
form( $class_path, string $cmd, string $submit_caption="")
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setPageLayoutInHierarchy()

ilObjContentObjectGUI::setPageLayoutInHierarchy ( )

Set layout for multiple pages.

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

References ilObjectGUI\$ctrl, setPageLayout(), and ilCtrl\setParameter().

2634  : void
2635  {
2636  $ilCtrl = $this->ctrl;
2637  $ilCtrl->setParameter($this, "hierarchy", "1");
2638  $this->setPageLayout(true);
2639  }
setPageLayout(bool $a_in_hierarchy=false)
Set layout for multiple pages.
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
+ Here is the call graph for this function:

◆ setQuestionsSubTabs()

ilObjContentObjectGUI::setQuestionsSubTabs ( string  $a_active)

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, $tabs, and ilLanguage\txt().

Referenced by listBlockedUsers(), and listQuestions().

1857  : void
1858  {
1859  $ilTabs = $this->tabs;
1860  $lng = $this->lng;
1861  $ilCtrl = $this->ctrl;
1862 
1863  // chapters
1864  $ilTabs->addSubTab(
1865  "question_stats",
1866  $lng->txt("cont_question_stats"),
1867  $ilCtrl->getLinkTarget($this, "listQuestions")
1868  );
1869 
1870  // blocked users
1871  $ilTabs->addSubTab(
1872  "blocked_users",
1873  $lng->txt("cont_blocked_users"),
1874  $ilCtrl->getLinkTarget($this, "listBlockedUsers")
1875  );
1876 
1877  $ilTabs->activateSubTab($a_active);
1878  }
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...
ilLanguage $lng
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setSubTabs()

ilObjContentObjectGUI::setSubTabs ( string  $a_active)

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

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

Referenced by addMenuEntry(), checkCtrlPath(), editGlossaries(), editMenuEntry(), editMenuProperties(), properties(), saveProperties(), showEntrySelector(), and showLMGlossarySelector().

1965  : void
1966  {
1967  $ilTabs = $this->tabs;
1969 
1970  if (in_array(
1971  $a_active,
1972  array("settings", "cont_style", "cont_lm_menu", "public_section",
1973  "cont_glossaries", "cont_multilinguality", "obj_multilinguality",
1974  "lti_provider")
1975  )) {
1976  // general properties
1977  $ilTabs->addSubTabTarget(
1978  "settings",
1979  $this->ctrl->getLinkTarget($this, 'properties'),
1980  "",
1981  ""
1982  );
1983 
1984  // style properties
1985  $ilTabs->addSubTabTarget(
1986  "cont_style",
1987  $this->ctrl->getLinkTargetByClass("ilObjectContentStyleSettingsGUI", ""),
1988  "",
1989  "ilObjectContentStyleSettingsGUI"
1990  );
1991 
1992  // menu properties
1993  $ilTabs->addSubTabTarget(
1994  "cont_lm_menu",
1995  $this->ctrl->getLinkTarget($this, 'editMenuProperties'),
1996  "",
1997  ""
1998  );
1999 
2000  // glossaries
2001  $ilTabs->addSubTabTarget(
2002  "cont_glossaries",
2003  $this->ctrl->getLinkTarget($this, 'editGlossaries'),
2004  "",
2005  ""
2006  );
2007 
2008  $ilTabs->addSubTabTarget(
2009  "obj_multilinguality",
2010  $this->ctrl->getLinkTargetByClass("ilobjecttranslationgui", "")
2011  );
2012 
2013  $lti_settings = new ilLTIProviderObjectSettingGUI($this->lm->getRefId());
2014  if ($lti_settings->hasSettingsAccess()) {
2015  $ilTabs->addSubTabTarget(
2016  'lti_provider',
2017  $this->ctrl->getLinkTargetByClass(ilLTIProviderObjectSettingGUI::class)
2018  );
2019  }
2020 
2021  $ilTabs->setSubTabActive($a_active);
2022  }
2023  }
GUI class for LTI provider object settings.
global $ilSetting
Definition: privfeed.php:31
ilSetting $settings
+ 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 1761 of file class.ilObjContentObjectGUI.php.

References $help, addTabs(), and ilHelpGUI\setScreenIdComponent().

1761  : void
1762  {
1763  parent::setTitleAndDescription();
1764  $ilHelp = $this->help;
1765  $ilHelp->setScreenIdComponent("lm");
1766  $this->addTabs($a_act);
1767  }
setScreenIdComponent(string $a_comp)
+ Here is the call graph for this function:

◆ showActions()

ilObjContentObjectGUI::showActions ( array  $a_actions)

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

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

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  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
ilLanguage $lng
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
+ Here is the call graph for this function:

◆ showEntrySelector()

ilObjContentObjectGUI::showEntrySelector ( )

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

References ilObjectGUI\$ctrl, $tabs, ILIAS\Repository\lng(), setSubTabs(), and ilObjectGUI\setTabs().

2211  : void
2212  {
2213  $ilTabs = $this->tabs;
2214  $ilCtrl = $this->ctrl;
2215 
2216  $this->setTabs();
2217 
2218  $ilTabs->setTabActive("settings");
2219  $this->setSubTabs("cont_lm_menu");
2220 
2221  $ilCtrl->saveParameter($this, array("menu_entry"));
2222 
2223  $this->tpl->setOnScreenMessage('info', $this->lng->txt("lm_menu_select_object_to_add"));
2224 
2226  $this,
2227  "showEntrySelector",
2228  $this,
2229  "addMenuEntry",
2230  "link_ref_id"
2231  );
2232  //$exp->setTypeWhiteList(array("root", "cat", "grp", "crs", "glo", "fold"));
2233  $exp->setClickableTypes(array('mcst', 'mep', 'cat', 'lm','glo','frm','exc','tst','svy', 'chat', 'wiki', 'sahs', "crs", "grp", "book", "tst", "file"));
2234  if (!$exp->handleCommand()) {
2235  $this->tpl->setContent($exp->getHTML());
2236  }
2237  }
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ showExportIDsOverview()

ilObjContentObjectGUI::showExportIDsOverview ( bool  $a_validation = false)

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

References $c, ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilObjectGUI\$toolbar, ilObjectGUI\$tpl, ilSession\get(), ilTree\getChilds(), ilObjContentObject\isOnlineHelpModule(), ILIAS\Repository\lng(), ilTree\readRootId(), ILIAS\UICore\GlobalTemplate\setContent(), setContentSubTabs(), ilSelectInputGUI\setOptions(), ilObjectGUI\setTabs(), and ilLanguage\txt().

Referenced by saveExportIds().

2400  : void
2401  {
2402  $tpl = $this->tpl;
2403  $ilToolbar = $this->toolbar;
2404  $lng = $this->lng;
2405  $ilCtrl = $this->ctrl;
2406 
2407  $this->setTabs();
2408  $this->setContentSubTabs("export_ids");
2409 
2410  if (ilObjContentObject::isOnlineHelpModule($this->lm->getRefId())) {
2411  // toolbar
2412  $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
2413  $lm_tree = $this->lm->getTree();
2414  $childs = $lm_tree->getChilds($lm_tree->readRootId());
2415  $options = array("" => $lng->txt("all"));
2416  foreach ($childs as $c) {
2417  $options[$c["child"]] = $c["title"];
2418  }
2419  $si = new ilSelectInputGUI($this->lng->txt("help_component"), "help_chap");
2420  $si->setOptions($options);
2421  $si->setValue(ilSession::get("help_chap"));
2422  $ilToolbar->addInputItem($si, true);
2423  $ilToolbar->addFormButton($lng->txt("help_filter"), "filterHelpChapters");
2424 
2425  $tbl = new ilHelpMappingTableGUI($this, "showExportIDsOverview", $a_validation);
2426  } else {
2427  $tbl = new ilExportIDTableGUI($this, "showExportIDsOverview", $a_validation, false);
2428  }
2429 
2430  $tpl->setContent($tbl->getHTML());
2431  }
static get(string $a_var)
This class represents a selection list property in a property form.
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...
getChilds(int $a_node_id, string $a_order="", string $a_direction="ASC")
get child nodes of given node
setContent(string $a_html)
Sets content for standard template.
setOptions(array $a_options)
$c
Definition: deliver.php:25
ilLanguage $lng
ilGlobalTemplateInterface $tpl
ilToolbarGUI $toolbar
setTabs()
set admin tabs
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static isOnlineHelpModule(int $a_id, bool $a_as_obj_id=false)
Is module an online module.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showExportOptionsHTML()

ilObjContentObjectGUI::showExportOptionsHTML ( )
protected

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

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

534  : void
535  {
536  $ot = ilObjectTranslation::getInstance($this->lm->getId());
537  if ($ot->getContentActivated()) {
538  $this->addHeaderAction();
539  $this->addLocations(true);
540  $this->setTabs("export");
541  $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($this->buildExportOptionsFormHTML()));
542  }
543  if (!$ot->getContentActivated()) {
544  $this->doExportHTML();
545  }
546  }
addLocations(bool $a_omit_obj_id=false)
display locator
static getInstance(int $obj_id)
setTabs()
set admin tabs
addHeaderAction()
Add header action menu.
+ Here is the call graph for this function:

◆ showExportOptionsXML()

ilObjContentObjectGUI::showExportOptionsXML ( )
protected

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

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

526  : void
527  {
528  $this->addHeaderAction();
529  $this->addLocations(true);
530  $this->setTabs("export");
531  $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($this->buildExportOptionsFormXML()));
532  }
addLocations(bool $a_omit_obj_id=false)
display locator
setTabs()
set admin tabs
addHeaderAction()
Add header action menu.
+ Here is the call graph for this function:

◆ showLMGlossarySelector()

ilObjContentObjectGUI::showLMGlossarySelector ( )

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

References ilObjectGUI\$ctrl, $tabs, ilObjectGUI\$tpl, ilObjectGUI\$tree, ILIAS\Repository\object(), ilTree\readRootId(), ILIAS\UICore\GlobalTemplate\setContent(), ilExplorer\setExpand(), setSubTabs(), and ilObjectGUI\setTabs().

2748  : void
2749  {
2750  $tpl = $this->tpl;
2751  $ilCtrl = $this->ctrl;
2752  $tree = $this->tree;
2753  $ilTabs = $this->tabs;
2754 
2755  $this->setTabs();
2756  $ilTabs->setTabActive("settings");
2757  $this->setSubTabs("cont_glossaries");
2758 
2759  $exp = new ilSearchRootSelector($ilCtrl->getLinkTarget($this, 'showLMGlossarySelector'));
2760  $exp->setExpand($this->requested_search_root_expand ?: $tree->readRootId());
2761  $exp->setPathOpen($this->object->getRefId());
2762  $exp->setExpandTarget($ilCtrl->getLinkTarget($this, 'showLMGlossarySelector'));
2763  $exp->setTargetClass(get_class($this));
2764  $exp->setCmd('confirmGlossarySelection');
2765  $exp->setClickableTypes(array("glo"));
2766  $exp->addFilter("glo");
2767 
2768  // build html-output
2769  $exp->setOutput(0);
2770  $tpl->setContent($exp->getOutput());
2771  }
setContent(string $a_html)
Sets content for standard template.
ilGlobalTemplateInterface $tpl
setTabs()
set admin tabs
setExpand($a_node_id)
set the expand option this value is stored in a SESSION variable to save it different view (lo view...
+ Here is the call graph for this function:

◆ showMaintenance()

ilObjContentObjectGUI::showMaintenance ( )

Show maintenance.

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

References ilObjectGUI\$toolbar, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), setContentSubTabs(), and ilObjectGUI\setTabs().

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  }
ilToolbarGUI $toolbar
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ showTooltipList()

ilObjContentObjectGUI::showTooltipList ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilObjectGUI\$toolbar, ilObjectGUI\$tpl, ilSession\get(), ILIAS\Repository\help(), ILIAS\Repository\lng(), ILIAS\UICore\GlobalTemplate\setContent(), setContentSubTabs(), ilSelectInputGUI\setOptions(), ilObjectGUI\setTabs(), and ilLanguage\txt().

2495  : void
2496  {
2497  $tpl = $this->tpl;
2498  $ilToolbar = $this->toolbar;
2499  $ilCtrl = $this->ctrl;
2500  $lng = $this->lng;
2501 
2502  $this->setTabs();
2503  $this->setContentSubTabs("help_tooltips");
2504 
2505  $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
2506  $ti = new ilTextInputGUI($this->lng->txt("help_tooltip_id"), "tooltip_id");
2507  $ti->setMaxLength(200);
2508  $ti->setSize(20);
2509  $ilToolbar->addInputItem($ti, true);
2510  $ilToolbar->addFormButton($lng->txt("add"), "addTooltip");
2511  $ilToolbar->addSeparator();
2512 
2513  $options = $this->help->internal()->domain()->tooltips()->getTooltipComponents();
2514  if (ilSession::get("help_tt_comp") != "") {
2515  $options[ilSession::get("help_tt_comp")] = ilSession::get("help_tt_comp");
2516  }
2517  $si = new ilSelectInputGUI($this->lng->txt("help_component"), "help_tt_comp");
2518  $si->setOptions($options);
2519  $si->setValue(ilSession::get("help_tt_comp"));
2520  $ilToolbar->addInputItem($si, true);
2521  $ilToolbar->addFormButton($lng->txt("help_filter"), "filterTooltips");
2522 
2523  $tbl = new ilHelpTooltipTableGUI($this, "showTooltipList", (string) ilSession::get("help_tt_comp"));
2524 
2525  $tpl->setContent($tbl->getHTML());
2526  }
static get(string $a_var)
This class represents a selection list property in a property form.
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...
setContent(string $a_html)
Sets content for standard template.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setOptions(array $a_options)
ilLanguage $lng
ilGlobalTemplateInterface $tpl
ilToolbarGUI $toolbar
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ switchToLanguage()

ilObjContentObjectGUI::switchToLanguage ( )

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

References ilObjectGUI\$ctrl, and ilCtrl\setParameter().

2836  : void
2837  {
2838  $ilCtrl = $this->ctrl;
2839 
2840  $ilCtrl->setParameter($this, "transl", $this->requested_totransl);
2841  if ($this->lang_switch_mode == "short_titles") {
2842  $ilCtrl->redirectByClass("illmeditshorttitlesgui", "");
2843  }
2844  $ilCtrl->redirect($this, "chapters");
2845  }
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
+ Here is the call graph for this function:

◆ unlockQuestion()

ilObjContentObjectGUI::unlockQuestion ( )

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

References ilObjectGUI\$ctrl, ilObjectGUI\$lng, ilLanguage\txt(), and ilPageQuestionProcessor\unlock().

1701  : void
1702  {
1703  $lng = $this->lng;
1704  $ilCtrl = $this->ctrl;
1705 
1706  $user_q_ids = $this->edit_request->getUserQuestionIds();
1707  if (count($user_q_ids) > 0) {
1708  foreach ($user_q_ids as $uqid) {
1709  $uqid = explode(":", $uqid);
1710  ilPageQuestionProcessor::unlock((int) $uqid[0], (int) $uqid[1]);
1711  }
1712  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1713  }
1714  $ilCtrl->redirect($this, "listBlockedUsers");
1715  }
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...
ilLanguage $lng
static unlock(int $a_q_id, int $a_user_id)
Unlock question for user.
+ Here is the call graph for this function:

◆ updateMenuEntry()

ilObjContentObjectGUI::updateMenuEntry ( )

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

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

2183  : void
2184  {
2185  $form = $this->initMenuEntryForm("edit");
2186  if ($form->checkInput()) {
2187  if ($this->edit_request->getMenuEntry() == "") {
2188  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_menu_entry_id"), true);
2189  $this->ctrl->redirect($this, "editMenuProperties");
2190  }
2191 
2192  $this->__initLMMenuEditor();
2193  $this->lmme_obj->readEntry($this->edit_request->getMenuEntry());
2194  $this->lmme_obj->setTitle($form->getInput("title"));
2195  $this->lmme_obj->setTarget($form->getInput("target"));
2196  if ($form->getInput("link_ref_id")) {
2197  $this->lmme_obj->setLinkType("intern");
2198  }
2199  if (is_int(strpos($form->getInput("target"), "."))) {
2200  $this->lmme_obj->setLinkType("extern");
2201  }
2202  $this->lmme_obj->update();
2203  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_entry_updated"), true);
2204  $this->ctrl->redirect($this, "editMenuProperties");
2205  } else {
2207  $this->editMenuEntry($form);
2208  }
2209  }
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-...
initMenuEntryForm(string $a_mode="edit")
editMenuEntry(?ilPropertyFormGUI $form=null)
+ Here is the call graph for this function:

◆ view()

ilObjContentObjectGUI::view ( )

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

References ilObjectGUI\prepareOutput(), and ilObjectGUI\viewObject().

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

Field Documentation

◆ $component_repository

ilComponentRepository ilObjContentObjectGUI::$component_repository
protected

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

◆ $content_style_service

ILIAS Style Content Service ilObjContentObjectGUI::$content_style_service
protected

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

◆ $db

ilDBInterface ilObjContentObjectGUI::$db
protected

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

◆ $domain

ILIAS LearningModule InternalDomainService ilObjContentObjectGUI::$domain
protected

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

◆ $edit_request

EditingGUIRequest ilObjContentObjectGUI::$edit_request
protected

Definition at line 72 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 36 of file class.ilObjContentObjectGUI.php.

◆ $help

ilHelpGUI ilObjContentObjectGUI::$help
protected

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

Referenced by setTabs().

◆ $lang_switch_mode

string ilObjContentObjectGUI::$lang_switch_mode
protected

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

◆ $lm

ilObjLearningModule ilObjContentObjectGUI::$lm
protected

◆ $lm_obj

ilObjLearningModule ilObjContentObjectGUI::$lm_obj
protected

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

◆ $lm_tree

ilLMTree ilObjContentObjectGUI::$lm_tree
protected

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

◆ $lmme_obj

ilLMMenuEditor ilObjContentObjectGUI::$lmme_obj
protected

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

◆ $log

ilLogger ilObjContentObjectGUI::$log
protected

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

◆ $rbacsystem

ilRbacSystem ilObjContentObjectGUI::$rbacsystem
protected

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

Referenced by addTabs().

◆ $reading_time_gui

ILIAS LearningModule ReadingTime SettingsGUI ilObjContentObjectGUI::$reading_time_gui
protected

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

◆ $requested_active_node

int ilObjContentObjectGUI::$requested_active_node = 0
protected

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

◆ $requested_backcmd

string ilObjContentObjectGUI::$requested_backcmd = ""
protected

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

◆ $requested_baseClass

string ilObjContentObjectGUI::$requested_baseClass = ""
protected

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

◆ $requested_glo_id

int ilObjContentObjectGUI::$requested_glo_id = 0
protected

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

◆ $requested_glo_ref_id

int ilObjContentObjectGUI::$requested_glo_ref_id = 0
protected

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

Referenced by selectLMGlossary(), and selectLMGlossaryLink().

◆ $requested_hierarchy

bool ilObjContentObjectGUI::$requested_hierarchy = false
protected

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

◆ $requested_lang_switch_mode

string ilObjContentObjectGUI::$requested_lang_switch_mode = ""
protected

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

◆ $requested_link_ref_id

int ilObjContentObjectGUI::$requested_link_ref_id = 0
protected

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

Referenced by initMenuEntryForm().

◆ $requested_lm_menu_expand

int ilObjContentObjectGUI::$requested_lm_menu_expand = 0
protected

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

◆ $requested_lmexpand

int ilObjContentObjectGUI::$requested_lmexpand = 0
protected

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

◆ $requested_lmmovecopy

bool ilObjContentObjectGUI::$requested_lmmovecopy = false
protected

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

◆ $requested_menu_entry

int ilObjContentObjectGUI::$requested_menu_entry = 0
protected

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

◆ $requested_new_type

string ilObjContentObjectGUI::$requested_new_type = ""
protected

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

Referenced by checkCtrlPath().

◆ $requested_obj_id

int ilObjContentObjectGUI::$requested_obj_id = 0
protected

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

Referenced by addLocations().

◆ $requested_ref_id

int ilObjContentObjectGUI::$requested_ref_id = 0
protected

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

◆ $requested_root_id

int ilObjContentObjectGUI::$requested_root_id = 0
protected

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

◆ $requested_search_root_expand

int ilObjContentObjectGUI::$requested_search_root_expand = 0
protected

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

◆ $requested_totransl

string ilObjContentObjectGUI::$requested_totransl = ""
protected

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

◆ $requested_transl

string ilObjContentObjectGUI::$requested_transl = ""
protected

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

Referenced by saveAllTitles().

◆ $tabs

◆ $to_props

bool ilObjContentObjectGUI::$to_props = false
protected

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

◆ $ui

ILIAS DI UIServices ilObjContentObjectGUI::$ui
protected

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


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