ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilObjContentObjectGUI Class Reference

Class ilObjContentObjectGUI. More...

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

Public Member Functions

 __construct ( $a_data, int $a_id=0, bool $a_call_by_reference=true, bool $a_prepare_output=false)
 
 properties ()
 edit properties form More...
 
 initPropertiesForm ()
 Init properties form. More...
 
 getPropertiesFormValues ()
 Get values for properties form. More...
 
 saveProperties ()
 save properties More...
 
 initMenuForm ()
 
 editMenuProperties ()
 
 saveMenuProperties ()
 
 proceedDragDrop ()
 
 delete (int $a_parent_subobj_id=0)
 confirm deletion screen for free pages (other usages do not apply anymore) More...
 
 cancelDelete ()
 
 confirmedDelete (int $a_parent_subobj_id=0)
 delete page object or structure objects More...
 
 chapters ()
 show chapters More...
 
 pages ()
 
 listLinks ()
 List all broken links. More...
 
 showMaintenance ()
 Show maintenance. More...
 
 activatePages ()
 activates or deactivates pages More...
 
 copyPage ()
 
 getContextPath (int $a_endnode_id, int $a_startnode_id=1)
 
 showActions (array $a_actions)
 
 view ()
 
 moveChapter (int $a_parent_subobj_id=0)
 move a single chapter (selection) More...
 
 copyChapter ()
 
 pasteChapter ()
 
 movePage ()
 
 cancel ()
 
 export ()
 
 fixTreeConfirm ()
 
 fixTree ()
 
 exportHTML ()
 
 addLocations (bool $a_omit_obj_id=false)
 display locator More...
 
 listQuestions ()
 
 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
 
GlobalHttpState $http
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Refinery $refinery
 
ilFavouritesManager $favourites
 
CustomIconFactory $custom_icon_factory
 
UIFactory $ui_factory
 
UIRenderer $ui_renderer
 
Filesystem $temp_file_system
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Additional Inherited Members

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

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 86 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().

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

Member Function Documentation

◆ __initLMMenuEditor()

ilObjContentObjectGUI::__initLMMenuEditor ( )

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

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

1961  : void
1962  {
1963  $this->lmme_obj = new ilLMMenuEditor();
1964  $this->lmme_obj->setObjId($this->lm->getId());
1965  }
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 2238 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().

2238  : void
2239  {
2240  global $DIC;
2241  $main_tpl = $DIC->ui()->mainTemplate();
2242 
2243  $ilAccess = $DIC->access();
2244  $ilErr = $DIC["ilErr"];
2245  $lng = $DIC->language();
2246  $ctrl = $DIC->ctrl();
2247 
2248  if ($ilAccess->checkAccess("read", "", $a_target)) {
2249  $ctrl->setParameterByClass("ilLMPresentationGUI", "ref_id", $a_target);
2250  if (ilObjLearningModuleAccess::_lookupSetting("lm_starting_point") == "first") {
2251  $ctrl->redirectByClass("ilLMPresentationGUI", "");
2252  } else {
2253  $ctrl->redirectByClass("ilLMPresentationGUI", "resume");
2254  }
2255  } elseif ($ilAccess->checkAccess("visible", "", $a_target)) {
2256  $ctrl->setParameterByClass("ilLMPresentationGUI", "ref_id", $a_target);
2257  $ctrl->redirectByClass("ilLMPresentationGUI", "infoScreen");
2258  } elseif ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
2259  $main_tpl->setOnScreenMessage('failure', sprintf(
2260  $lng->txt("msg_no_perm_read_item"),
2262  ), true);
2264  }
2265 
2266 
2267  $ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
2268  }
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:26
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 1273 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().

1273  : void
1274  {
1275  $ids = $this->edit_request->getIds();
1276  foreach ($ids as $id) {
1277  $act = ilLMPage::_lookupActive($id, $this->lm->getType());
1278  ilLMPage::_writeActive($id, $this->lm->getType(), !$act);
1279  }
1280 
1281  $this->ctrl->redirect($this, "pages");
1282  }
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 1550 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().

1552  : void {
1554 
1555  $obj_id = 0;
1556  if (!$a_omit_obj_id) {
1558  }
1559  $lmtree = $this->lm->getTree();
1560  if (($obj_id != 0) && $lmtree->isInTree($obj_id)) {
1561  $path = $lmtree->getPathFull($obj_id);
1562  } else {
1563  $path = $lmtree->getPathFull($lmtree->getRootId());
1564  if ($obj_id != 0) {
1565  $path[] = array("type" => "pg", "child" => $this->obj_id,
1566  "title" => ilLMPageObject::_getPresentationTitle($this->obj_id));
1567  }
1568  }
1569 
1570  foreach ($path as $key => $row) {
1571  if ($row["child"] == 1) {
1572  $this->ctrl->setParameter($this, "obj_id", null);
1573  $locator->addItem($this->lm->getTitle(), $this->ctrl->getLinkTarget($this, "chapters"));
1574  } else {
1575  $title = $row["title"];
1576  switch ($row["type"]) {
1577  case "st":
1578  $this->ctrl->setParameterByClass("ilstructureobjectgui", "obj_id", $row["child"]);
1579  $locator->addItem($title, $this->ctrl->getLinkTargetByClass("ilstructureobjectgui", "view"));
1580  break;
1581 
1582  case "pg":
1583  $this->ctrl->setParameterByClass("illmpageobjectgui", "obj_id", $row["child"]);
1584  $locator->addItem($title, $this->ctrl->getLinkTargetByClass("illmpageobjectgui", "edit"));
1585  break;
1586  }
1587  }
1588  }
1589  if (!$a_omit_obj_id) {
1590  $this->ctrl->setParameter($this, "obj_id", $this->requested_obj_id);
1591  }
1592  }
$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 1970 of file class.ilObjContentObjectGUI.php.

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

Referenced by saveMenuEntry().

1970  : void
1971  {
1972  $ilTabs = $this->tabs;
1973  $ilToolbar = $this->toolbar;
1974  $ilCtrl = $this->ctrl;
1975 
1976  $this->setTabs();
1977 
1978  $ilTabs->setTabActive("settings");
1979  $this->setSubTabs("cont_lm_menu");
1980 
1981  $ilToolbar->addButton(
1982  $this->lng->txt("lm_menu_select_internal_object"),
1983  $ilCtrl->getLinkTarget($this, "showEntrySelector")
1984  );
1985 
1986  if (is_null($form)) {
1987  $form = $this->initMenuEntryForm("create");
1988  }
1989  $this->tpl->setContent($form->getHTML());
1990  }
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 1816 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().

1816  : void
1817  {
1819  $ilTabs = $this->tabs;
1820  $lng = $this->lng;
1821 
1822  // content -> pages
1823  $this->ctrl->setParameterByClass(static::class, "sub_type", "st");
1824  $ilTabs->addTab(
1825  "content",
1826  $lng->txt("content"),
1827  $this->ctrl->getLinkTargetByClass(EditSubObjectsGUI::class)
1828  );
1829 
1830  // info
1831  if ($this->object->isInfoEnabled()) {
1832  $ilTabs->addTab(
1833  "info",
1834  $lng->txt("info_short"),
1835  $this->ctrl->getLinkTargetByClass("ilinfoscreengui", 'showSummary')
1836  );
1837  }
1838 
1839  // settings
1840  $ilTabs->addTab(
1841  "settings",
1842  $lng->txt("settings"),
1843  $this->ctrl->getLinkTarget($this, 'properties')
1844  );
1845 
1846  // questions
1847  $ilTabs->addTab(
1848  "questions",
1849  $lng->txt("objs_qst"),
1850  $this->ctrl->getLinkTarget($this, "listQuestions")
1851  );
1852 
1853  // learning progress
1854  if (ilLearningProgressAccess::checkAccess($this->lm->getRefId()) and ($this->lm->getType() == 'lm')) {
1855  $ilTabs->addTab(
1856  'learning_progress',
1857  $lng->txt("learning_progress"),
1858  $this->ctrl->getLinkTargetByClass(array('illearningprogressgui'), '')
1859  );
1860  }
1861 
1862  // meta data
1863  $mdgui = new ilObjectMetaDataGUI($this->lm);
1864  $mdtab = $mdgui->getTab();
1865  if ($mdtab) {
1866  $ilTabs->addTab(
1867  "meta",
1868  $lng->txt("meta_data"),
1869  $mdtab
1870  );
1871  }
1872 
1873  // export
1874  $ilTabs->addTab(
1875  "export",
1876  $lng->txt("export"),
1877  $this->ctrl->getLinkTargetByClass("ilexportgui", "")
1878  );
1879 
1880  // permissions
1881  if ($rbacsystem->checkAccess('edit_permission', $this->lm->getRefId())) {
1882  $ilTabs->addTab(
1883  "perm",
1884  $lng->txt("perm_settings"),
1885  $this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm")
1886  );
1887  }
1888 
1889  if ($a_act != "") {
1890  $ilTabs->activateTab($a_act);
1891  }
1892 
1893  // presentation view
1894  $ilTabs->addNonTabbedLink(
1895  "pres_mode",
1896  $lng->txt("cont_presentation_view"),
1897  "ilias.php?baseClass=ilLMPresentationGUI&ref_id=" . $this->lm->getRefId()
1898  );
1899  }
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 2464 of file class.ilObjContentObjectGUI.php.

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

2464  : void
2465  {
2466  $lng = $this->lng;
2467  $ilCtrl = $this->ctrl;
2468 
2469  $tt_id = $this->edit_request->getTooltipId();
2470  if (trim($tt_id) != "") {
2471  if (is_int(strpos($tt_id, "_"))) {
2472  $this->help->internal()->domain()->tooltips()->addTooltip(trim($tt_id), "");
2473  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2474 
2475  $fu = strpos($tt_id, "_");
2476  $comp = substr($tt_id, 0, $fu);
2477  ilSession::set("help_tt_comp", ilUtil::stripSlashes($comp));
2478  } else {
2479  $this->tpl->setOnScreenMessage('failure', $lng->txt("cont_help_no_valid_tooltip_id"), true);
2480  }
2481  }
2482  $ilCtrl->redirect($this, "showTooltipList");
2483  }
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 1003 of file class.ilObjContentObjectGUI.php.

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

1003  : void
1004  {
1005  $new_object->setCleanFrames(true);
1006  $new_object->update();
1007 
1008  // create content object tree
1009  $new_object->createLMTree();
1010 
1011  // create a first chapter
1012  $new_object->addFirstChapterAndPage();
1013 
1014  // always send a message
1015  $this->tpl->setOnScreenMessage('success', $this->lng->txt($this->type . "_added"), true);
1016  $this->ctrl->setParameterByClass(ilObjLearningModuleGUI::class, "ref_id", $new_object->getRefId());
1017  $this->ctrl->redirectByClass([ilLMEditorGUI::class, ilObjLearningModuleGUI::class], "");
1018  }
+ Here is the call graph for this function:

◆ buildExportOptionsFormHTML()

ilObjContentObjectGUI::buildExportOptionsFormHTML ( )
protected

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

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

Referenced by doExportHTML(), and showExportOptionsHTML().

490  {
491  $this->lng->loadLanguageModule('exp');
492  $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
493  $items = [];
494  if ($ot->getContentTranslationActivated()) {
495  $this->lng->loadLanguageModule("meta");
496  $langs = $ot->getLanguages();
497  foreach ($langs as $l => $ldata) {
498  $items["html_" . $l] = $this->lng->txt("meta_l_" . $l);
499  }
500  $items["html_all"] = $this->lng->txt("cont_all_languages");
501  }
502  if (!$ot->getContentTranslationActivated()) {
503  $items["exportHTML"] = "HTML";
504  }
505  $select = $this->ui->factory()->input()->field()->select($this->lng->txt("language"), $items)
506  ->withRequired(true);
507  $section = $this->ui->factory()->input()->field()->section(
508  [$select],
509  $this->lng->txt("export_options")
510  );
511  return $this->ui->factory()->input()->container()->form()->standard(
512  $this->ctrl->getLinkTargetByClass(ilObjContentObjectGUI::class, "doExportHTML"),
513  [$section]
514  )->withSubmitLabel($this->lng->txt("export"));
515  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildExportOptionsFormXML()

ilObjContentObjectGUI::buildExportOptionsFormXML ( )
protected

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

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

Referenced by doExportXML(), and showExportOptionsXML().

518  {
519  $this->lng->loadLanguageModule('exp');
520  $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
521  $items = [];
522  if ($ot->getContentTranslationActivated()) {
523  $items["xml_master"] = $this->lng->txt("cont_master_language_only");
524  $items["xml_masternomedia"] = $this->lng->txt("cont_master_language_only_no_media");
525  $this->lng->loadLanguageModule("meta");
526  $langs = $ot->getLanguages();
527  }
528  $select = $this->ui->factory()->input()->field()->select($this->lng->txt("export_type"), $items)
529  ->withRequired(true);
530  $section = $this->ui->factory()->input()->field()->section(
531  [$select],
532  $this->lng->txt("export_options")
533  );
534  return $this->ui->factory()->input()->container()->form()->standard(
535  $this->ctrl->getLinkTargetByClass(ilObjContentObjectGUI::class, "doExportXML"),
536  [$section]
537  )->withSubmitLabel($this->lng->txt("export"));
538  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cancel()

ilObjContentObjectGUI::cancel ( )

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

References ILIAS\Repository\ctrl().

1485  : void
1486  {
1487  if ($this->requested_new_type == "pg") {
1488  $this->ctrl->redirect($this, "pages");
1489  } else {
1490  $this->ctrl->redirect($this, "chapters");
1491  }
1492  }
+ Here is the call graph for this function:

◆ cancelDelete()

ilObjContentObjectGUI::cancelDelete ( )

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

References ILIAS\Repository\ctrl().

Referenced by delete().

1069  : void
1070  {
1071  $this->ctrl->redirect($this, $this->requested_backcmd);
1072  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ chapters()

ilObjContentObjectGUI::chapters ( )

show chapters

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

1131  : void
1132  {
1133  $this->gui->ctrl()->setParameterByClass(EditSubObjectsGUI::class, "sub_type", "st");
1134  $this->gui->ctrl()->redirectByClass(EditSubObjectsGUI::class);
1135  }

◆ checkCtrlPath()

ilObjContentObjectGUI::checkCtrlPath ( )
protected

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

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

155  : void
156  {
157  if (!$this->getCreationMode()) {
158  $baseclass = strtolower($this->requested_baseClass);
159  $next_class = strtolower($this->ctrl->getNextClass());
160  // all calls must be routed through illmpresentationgui or
161  // illmeditorgui...
162  if (!in_array($baseclass, ["illmpresentationgui", "illmeditorgui"])) {
163  // ...except the comman action handler routes to
164  // activation/condition GUI, see https://mantis.ilias.de/view.php?id=32858
165  if (in_array($next_class, ["ilcommonactiondispatchergui"])) {
166  return;
167  }
168  throw new ilLMException("Wrong ctrl path");
169  }
170  }
171  }
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 1081 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().

1081  : void
1082  {
1083  $tree = new ilLMTree($this->lm->getId());
1084 
1085  $ids = $this->edit_request->getIds();
1086 
1087  // check number of objects
1088  if (count($ids) == 0) {
1089  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"));
1090  $this->ctrl->redirect($this, "cancelDelete");
1091  }
1092 
1093  // delete all selected objects
1094  foreach ($ids as $id) {
1095  if ($id != ilTree::POS_FIRST_NODE) {
1096  $obj = ilLMObjectFactory::getInstance($this->lm, $id, false);
1097  $node_data = $tree->getNodeData($id);
1098  if (is_object($obj)) {
1099  $obj->setLMId($this->lm->getId());
1100 
1102  $this->lm->getId(),
1103  "delete_" . $obj->getType(),
1104  array(ilLMObject::_lookupTitle($id), $id),
1105  $this->lm->getType()
1106  );
1107 
1108  $obj->delete();
1109  }
1110  if ($tree->isInTree($id)) {
1111  $tree->deleteTree($node_data);
1112  }
1113  }
1114  }
1115 
1116  // check the tree
1117  $this->lm->checkTree();
1118 
1119  // feedback
1120  $this->tpl->setOnScreenMessage('success', $this->lng->txt("info_deleted"), true);
1121 
1122  if ($a_parent_subobj_id == 0) {
1123  $this->ctrl->redirect($this, $this->requested_backcmd);
1124  }
1125  }
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
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:
+ Here is the caller graph for this function:

◆ confirmGlossarySelection()

ilObjContentObjectGUI::confirmGlossarySelection ( )

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

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

2709  : void
2710  {
2711  $ilCtrl = $this->ctrl;
2712  $tpl = $this->tpl;
2713  $lng = $this->lng;
2714 
2715  $cgui = new ilConfirmationGUI();
2716  $ilCtrl->setParameter($this, "glo_ref_id", $this->requested_root_id);
2717  $cgui->setFormAction($ilCtrl->getFormAction($this));
2718  $cgui->setHeaderText($lng->txt("cont_link_glo_in_lm"));
2719  $cgui->setCancel($lng->txt("no"), "selectLMGlossary");
2720  $cgui->setConfirm($lng->txt("yes"), "selectLMGlossaryLink");
2721  $tpl->setContent($cgui->getHTML());
2722  }
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 1459 of file class.ilObjContentObjectGUI.php.

References copyItems().

1459  : void
1460  {
1461  $this->copyItems();
1462  }
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 2299 of file class.ilObjContentObjectGUI.php.

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

Referenced by copyChapter().

2299  : void
2300  {
2301  $ilCtrl = $this->ctrl;
2302  $lng = $this->lng;
2303 
2304  if (count($ids) == 0) {
2305  $this->tpl->setOnScreenMessage('failure', $lng->txt("no_checkbox"), true);
2306  $ilCtrl->redirect($this, "chapters");
2307  }
2308 
2309  $todel = array(); // delete IDs < 0 (needed for non-js editing)
2310  foreach ($ids as $k => $item) {
2311  if ($item < 0) {
2312  $todel[] = $k;
2313  }
2314  }
2315  foreach ($todel as $k) {
2316  unset($ids[$k]);
2317  }
2318  ilLMObject::clipboardCopy($this->lm->getId(), $ids);
2320  $this->tpl->setOnScreenMessage('info', $lng->txt("cont_selected_items_have_been_copied"), true);
2321  $ilCtrl->redirect($this, "chapters");
2322  }
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 1341 of file class.ilObjContentObjectGUI.php.

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

1341  : void
1342  {
1343  $ids = $this->edit_request->getIds();
1344  if (count($ids) == 0) {
1345  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"));
1346  $this->ctrl->redirect($this, "pages");
1347  }
1348 
1349  ilLMObject::clipboardCopy($this->lm->getId(), $ids);
1351 
1352  $this->tpl->setOnScreenMessage('info', $this->lng->txt("cont_selected_items_have_been_copied"), true);
1353 
1354  $this->ctrl->redirect($this, "pages");
1355  }
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 2327 of file class.ilObjContentObjectGUI.php.

References cutItems().

2327  : void
2328  {
2329  $this->cutItems("chapters");
2330  }
+ Here is the call graph for this function:

◆ cutItems()

ilObjContentObjectGUI::cutItems ( array  $ids)

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

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

Referenced by cutChapter().

2270  : void
2271  {
2272  $ilCtrl = $this->ctrl;
2273  $lng = $this->lng;
2274 
2275  if (count($ids) == 0) {
2276  $this->tpl->setOnScreenMessage('failure', $lng->txt("no_checkbox"), true);
2277  $ilCtrl->redirect($this, $this->edit_request->getBackCmd());
2278  }
2279 
2280  $todel = array(); // delete IDs < 0 (needed for non-js editing)
2281  foreach ($ids as $k => $item) {
2282  if ($item < 0) {
2283  $todel[] = $k;
2284  }
2285  }
2286  foreach ($todel as $k) {
2287  unset($ids[$k]);
2288  }
2289  ilLMObject::clipboardCut($this->lm->getId(), $ids);
2291  $this->tpl->setOnScreenMessage('info', $lng->txt("cont_selected_items_have_been_cut"), true);
2292 
2293  $ilCtrl->redirect($this, $this->edit_request->getBackCmd());
2294  }
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 1023 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().

1023  : void
1024  {
1025  $ids = $this->edit_request->getIds();
1026 
1027  if (count($ids) == 0) {
1028  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
1029  $this->cancelDelete();
1030  }
1031 
1032  if (count($ids) == 1 && $ids[0] == ilTree::POS_FIRST_NODE) {
1033  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_item"), true);
1034  $this->cancelDelete();
1035  }
1036 
1037  if ($a_parent_subobj_id == 0) {
1038  $this->setTabs("content");
1039  }
1040 
1041  if ($a_parent_subobj_id != 0) {
1042  $this->ctrl->setParameterByClass("ilStructureObjectGUI", "backcmd", $this->requested_backcmd);
1043  $this->ctrl->setParameterByClass("ilStructureObjectGUI", "obj_id", $a_parent_subobj_id);
1044  $form_action = $this->ctrl->getFormActionByClass("ilStructureObjectGUI");
1045  } else {
1046  $this->ctrl->setParameter($this, "backcmd", $this->requested_backcmd);
1047  $form_action = $this->ctrl->getFormAction($this);
1048  }
1049 
1050  // display confirmation message
1051  $cgui = new ilConfirmationGUI();
1052  $cgui->setFormAction($form_action);
1053  $cgui->setHeaderText($this->lng->txt("info_delete_sure"));
1054  $cgui->setCancel($this->lng->txt("cancel"), "cancelDelete");
1055  $cgui->setConfirm($this->lng->txt("confirm"), "confirmedDelete");
1056 
1057  foreach ($ids as $id) {
1058  if ($id != ilTree::POS_FIRST_NODE) {
1059  $obj = new ilLMObject($this->lm, $id);
1060  $caption = $obj->getTitle();
1061 
1062  $cgui->addItem("id[]", $id, $caption);
1063  }
1064  }
1065 
1066  $this->tpl->setContent($cgui->getHTML());
1067  }
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 2076 of file class.ilObjContentObjectGUI.php.

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

2076  : void
2077  {
2078  if (empty($this->requested_menu_entry)) {
2079  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_menu_entry_id"), true);
2080  $this->ctrl->redirect($this, "editMenuProperties");
2081  }
2082 
2083  $this->__initLMMenuEditor();
2084  $this->lmme_obj->delete($this->requested_menu_entry);
2085 
2086  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_entry_removed"), true);
2087  $this->ctrl->redirect($this, "editMenuProperties");
2088  }
+ Here is the call graph for this function:

◆ deleteTooltips()

ilObjContentObjectGUI::deleteTooltips ( )

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

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

2513  : void
2514  {
2515  $lng = $this->lng;
2516  $ilCtrl = $this->ctrl;
2517 
2518  $ids = $this->edit_request->getIds();
2519  if (count($ids) > 0) {
2520  foreach ($ids as $id) {
2521  $this->help->internal()->domain()->tooltips()->deleteTooltip($id);
2522  }
2523  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2524  }
2525  $ilCtrl->redirect($this, "showTooltipList");
2526  }
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 582 of file class.ilObjContentObjectGUI.php.

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

Referenced by showExportOptionsHTML().

582  : void
583  {
584  $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
585  $form = $this->buildExportOptionsFormHTML()->withRequest($this->request);
586  $lang = "";
587  if ($ot->getContentTranslationActivated() and !is_null($form->getData())) {
588  $format = explode("_", $form->getData()[0][0]);
589  $lang = ilUtil::stripSlashes($format[1]);
590  }
591  if ($ot->getContentTranslationActivated() and is_null($form->getData())) {
592  $this->addHeaderAction();
593  $this->addLocations(true);
594  $this->setTabs("export");
595  $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($form));
596  return;
597  }
598  $cont_exp = new ilContObjectExport($this->lm, "html", $lang);
599  $cont_exp->buildExportFile();
600  $this->ctrl->redirectByClass(ilExportGUI::class, ilExportGUI::CMD_LIST_EXPORT_FILES);
601  }
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...
$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 562 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().

562  : void
563  {
564  $form = $this->buildExportOptionsFormXML()->withRequest($this->request);
565  $format = "";
566  if (!is_null($form->getData())) {
567  $format = explode("_", $form->getData()[0][0]);
568  }
569  if (is_null($form->getData())) {
570  $this->addHeaderAction();
571  $this->addLocations(true);
572  $this->setTabs("export");
573  $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($form));
574  return;
575  }
576  $opt = ilUtil::stripSlashes($format[1]);
577  $cont_exp = new ilContObjectExport($this->lm);
578  $cont_exp->buildExportFile($opt);
579  $this->ctrl->redirectByClass(ilExportGUI::class, ilExportGUI::CMD_LIST_EXPORT_FILES);
580  }
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 2662 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().

2662  : void
2663  {
2664  $tpl = $this->tpl;
2665  $ilToolbar = $this->toolbar;
2666  $lng = $this->lng;
2667  $ilCtrl = $this->ctrl;
2668  $ilTabs = $this->tabs;
2669 
2670  $this->setTabs();
2671  $ilTabs->setTabActive("settings");
2672  $this->setSubTabs("cont_glossaries");
2673 
2674  $ilToolbar->addButton(
2675  $lng->txt("add"),
2676  $ilCtrl->getLinkTarget($this, "showLMGlossarySelector")
2677  );
2678 
2679  $tab = new ilLMGlossaryTableGUI($this->lm, $this, "editGlossaries");
2680 
2681  $tpl->setContent($tab->getHTML());
2682  }
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 2761 of file class.ilObjContentObjectGUI.php.

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

2761  : void
2762  {
2763  $ilCtrl = $this->ctrl;
2764 
2765  $ilCtrl->setParameter($this, "transl", "-");
2766  if ($this->lang_switch_mode == "short_titles") {
2767  $ilCtrl->redirectByClass("illmeditshorttitlesgui", "");
2768  }
2769  $ilCtrl->redirect($this, "chapters");
2770  }
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 2090 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().

2090  : void
2091  {
2092  $ilToolbar = $this->toolbar;
2093  $ilCtrl = $this->ctrl;
2094  $ilTabs = $this->tabs;
2095 
2096  $this->setTabs();
2097 
2098  $ilTabs->setTabActive("settings");
2099  $this->setSubTabs("cont_lm_menu");
2100 
2101 
2102  if (empty($this->requested_menu_entry)) {
2103  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_menu_entry_id"), true);
2104  $this->ctrl->redirect($this, "editMenuProperties");
2105  }
2106 
2107  $ilCtrl->saveParameter($this, array("menu_entry"));
2108  $ilToolbar->addButton(
2109  $this->lng->txt("lm_menu_select_internal_object"),
2110  $ilCtrl->getLinkTarget($this, "showEntrySelector")
2111  );
2112 
2113  if (is_null($form)) {
2114  $form = $this->initMenuEntryForm("edit");
2115  }
2116  $this->tpl->setContent($form->getHTML());
2117  }
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 941 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().

941  : void
942  {
943  $lng = $this->lng;
944  $ilTabs = $this->tabs;
945  $ilCtrl = $this->ctrl;
946  $tpl = $this->tpl;
947  $ilToolbar = $this->toolbar;
948 
949  $lng->loadLanguageModule("style");
950  $this->setTabs();
951  $ilTabs->setTabActive("settings");
952  $this->setSubTabs("cont_lm_menu");
953 
954  $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
955  $ilToolbar->addFormButton($this->lng->txt("add_menu_entry"), "addMenuEntry");
956  $ilToolbar->setCloseFormTag(false);
957 
958  $form = $this->initMenuForm();
959  $form->setOpenTag(false);
960  $form->setCloseTag(false);
961 
962  $this->__initLMMenuEditor();
963  $entries = $this->lmme_obj->getMenuEntries();
964  $table = new ilLMMenuItemsTableGUI($this, "editMenuProperties", $this->lmme_obj);
965  $table->setOpenFormTag(false);
966 
967  $tpl->setContent($form->getHTML() . "<br />" . $table->getHTML());
968  }
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 1494 of file class.ilObjContentObjectGUI.php.

References ilUtil\stripSlashes().

1494  : void
1495  {
1496  $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
1497  $opt = "";
1498  if ($ot->getContentTranslationActivated()) {
1499  $format = explode("_", $this->edit_request->getFormat());
1500  $opt = ilUtil::stripSlashes($format[1]);
1501  }
1502 
1503 
1504  $cont_exp = new ilContObjectExport($this->lm);
1505  $cont_exp->buildExportFile($opt);
1506  }
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...
+ Here is the call graph for this function:

◆ exportHTML()

ilObjContentObjectGUI::exportHTML ( )

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

References $lang, and ilUtil\stripSlashes().

1534  : void
1535  {
1536  $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
1537  $lang = "";
1538  if ($ot->getContentTranslationActivated()) {
1539  $format = explode("_", $this->edit_request->getFormat());
1540  $lang = ilUtil::stripSlashes($format[1]);
1541  }
1542  $cont_exp = new ilContObjectExport($this->lm, "html", $lang);
1543  $cont_exp->buildExportFile();
1544  }
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...
$lang
Definition: xapiexit.php:25
+ Here is the call graph for this function:

◆ filterHelpChapters()

ilObjContentObjectGUI::filterHelpChapters ( )

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

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

2369  : void
2370  {
2371  $ilCtrl = $this->ctrl;
2372  ilSession::set("help_chap", $this->edit_request->getHelpChap());
2373  $ilCtrl->redirect($this, "showExportIDsOverview");
2374  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ filterTooltips()

ilObjContentObjectGUI::filterTooltips ( )

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

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

2485  : void
2486  {
2487  $ilCtrl = $this->ctrl;
2488 
2490  "help_tt_comp",
2491  $this->edit_request->getTooltipComponent()
2492  );
2493  $ilCtrl->redirect($this, "showTooltipList");
2494  }
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ fixTree()

ilObjContentObjectGUI::fixTree ( )

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

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

1527  : void
1528  {
1529  $this->lm->fixTree();
1530  $this->tpl->setOnScreenMessage('success', $this->lng->txt("cont_tree_fixed"), true);
1531  $this->ctrl->redirect($this, "showMaintenance");
1532  }
+ Here is the call graph for this function:

◆ fixTreeConfirm()

ilObjContentObjectGUI::fixTreeConfirm ( )

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

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

1508  : void
1509  {
1510  $this->setTabs();
1511  $this->setContentSubTabs("maintenance");
1512 
1513  // display confirmation message
1514  $cgui = new ilConfirmationGUI();
1515  $cgui->setFormAction($this->ctrl->getFormAction($this));
1516  $cgui->setHeaderText($this->lng->txt("cont_fix_tree_confirm"));
1517  $cgui->setCancel($this->lng->txt("cancel"), "showMaintenance");
1518  $cgui->setConfirm($this->lng->txt("cont_fix_tree"), "fixTree");
1519  $issues = $this->lm->checkStructure();
1520  $mess = "";
1521  if (count($issues) > 0) {
1522  $mess = "Found Issues: <br>" . implode("<br>", $issues);
1523  }
1524  $this->tpl->setContent($cgui->getHTML() . $mess);
1525  }
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ getBlockedUsersMailSignature()

ilObjContentObjectGUI::getBlockedUsersMailSignature ( )
protected

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

References ILIAS\Repository\lng().

Referenced by sendMailToBlockedUsers().

1683  : string
1684  {
1685  $link = chr(13) . chr(10) . chr(13) . chr(10);
1686  $link .= $this->lng->txt('cont_blocked_users_mail_link');
1687  $link .= chr(13) . chr(10) . chr(13) . chr(10);
1688  $link .= ilLink::_getLink($this->lm->getRefId());
1689  return rawurlencode(base64_encode($link));
1690  }
+ 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 1357 of file class.ilObjContentObjectGUI.php.

References $path.

1360  : string {
1361  $path = "";
1362 
1363  $tmpPath = $this->lm_tree->getPathFull($a_endnode_id, $a_startnode_id);
1364 
1365  // count -1, to exclude the learning module itself
1366  for ($i = 1; $i < (count($tmpPath) - 1); $i++) {
1367  if ($path != "") {
1368  $path .= " > ";
1369  }
1370 
1371  $path .= $tmpPath[$i]["title"];
1372  }
1373 
1374  return $path;
1375  }
$path
Definition: ltiservices.php:29

◆ getLayoutOption()

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

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

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

Referenced by ilStructureObjectGUI\initSetPageLayoutForm().

2537  global $DIC;
2538 
2539  $im_tag = "";
2540 
2541  $lng = $DIC->language();
2542 
2543  // default layout
2544  $layout = new ilRadioGroupInputGUI($a_txt, $a_var);
2545  if ($a_def_option != "") {
2546  if (is_file($im = ilUtil::getImagePath("layout_" . $a_def_option . ".png"))) {
2547  $im_tag = ilUtil::img($im, $a_def_option);
2548  }
2549  $layout->addOption(new ilRadioOption("<table><tr><td>" . $im_tag . "</td><td><strong>" .
2550  $lng->txt("cont_lm_default_layout") .
2551  "</strong>: " . $lng->txt("cont_layout_" . $a_def_option) .
2552  "</td></tr></table>", ""));
2553  }
2554  foreach (ilObjContentObject::getAvailableLayouts() as $l) {
2555  $im_tag = "";
2556  if (is_file($im = ilUtil::getImagePath("layout_" . $l . ".png"))) {
2557  $im_tag = ilUtil::img($im, $l);
2558  }
2559  $layout->addOption(new ilRadioOption("<table><tr><td style='padding: 0px 5px 5px;'>" .
2560  $im_tag . "</td><td style='padding:5px;'><strong>" . $lng->txt("cont_layout_" . $l) . "</strong>: " .
2561  $lng->txt("cont_layout_" . $l . "_desc") . "</td></tr></table>", $l));
2562  }
2563 
2564  return $layout;
2565  }
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:26
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 1137 of file class.ilObjContentObjectGUI.php.

References $DIC, $ilDB, $lang, ilObjectGUI\$lng, ilObjectGUI\$ui_factory, ilObjectGUI\$ui_renderer, 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().

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

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

Referenced by properties().

756  : void
757  {
758  $ilUser = $this->user;
759 
760  $values = array();
761 
762  $title = $this->lm->getTitle();
763  $description = $this->lm->getLongDescription();
764  $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
765  if ($ot->getContentTranslationActivated()) {
766  $title = $ot->getDefaultTitle();
767  $description = $ot->getDefaultDescription();
768  }
769 
770  $values["title"] = $title;
771  $values["description"] = $description;
772  if (!$this->lm->getOfflineStatus()) {
773  $values["cobj_online"] = true;
774  }
775  //$values["lm_layout"] = $this->lm->getLayout();
776  $values["lm_pg_header"] = $this->lm->getPageHeader();
777  if ($this->lm->isActiveNumbering()) {
778  $values["cobj_act_number"] = true;
779  }
780  $values["toc_mode"] = $this->lm->getTOCMode();
781  if ($this->lm->publicNotes()) {
782  $values["cobj_pub_notes"] = true;
783  }
784  if ($this->lm->cleanFrames()) {
785  $values["cobj_clean_frames"] = true;
786  }
787  //$values["layout_per_page"] = $this->lm->getLayoutPerPage();
788  $values["rating"] = $this->lm->hasRating();
789  $values["rating_pages"] = $this->lm->hasRatingPages();
790  $values["disable_def_feedback"] = $this->lm->getDisableDefaultFeedback();
791  $values["progr_icons"] = $this->lm->getProgressIcons();
792  $values["store_tries"] = (string) (int) $this->lm->getStoreTries();
793  $values["restrict_forw_nav"] = $this->lm->getRestrictForwardNavigation();
794 
795  $values["notification_blocked_users"] = ilNotification::hasNotification(
797  $ilUser->getId(),
798  $this->lm->getId()
799  );
800 
801  $values["cont_show_info_tab"] = $this->object->isInfoEnabled();
802  $this->form->setValuesByArray($values, true);
803  }
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:

◆ initMenuEntryForm()

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

Definition at line 1992 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().

1993  {
1994  $lng = $this->lng;
1995  $ilCtrl = $this->ctrl;
1996 
1997  $form = new ilPropertyFormGUI();
1998 
1999  // title
2000  $ti = new ilTextInputGUI($this->lng->txt("lm_menu_entry_title"), "title");
2001  $ti->setMaxLength(255);
2002  $ti->setSize(40);
2003  $ti->setRequired(true);
2004  $form->addItem($ti);
2005 
2006  // target
2007  $ta = new ilTextInputGUI($this->lng->txt("lm_menu_entry_target"), "target");
2008  $ta->setMaxLength(255);
2009  $ta->setSize(40);
2010  $ta->setRequired(true);
2011  $form->addItem($ta);
2012 
2013  if ($a_mode == "edit") {
2014  $this->__initLMMenuEditor();
2015  $this->lmme_obj->readEntry($this->edit_request->getMenuEntry());
2016  $ti->setValue($this->lmme_obj->getTitle());
2017  $ta->setValue($this->lmme_obj->getTarget());
2018  }
2019 
2020  if ($this->requested_link_ref_id > 0) {
2021  $link_ref_id = $this->requested_link_ref_id;
2022  $obj_type = ilObject::_lookupType($link_ref_id, true);
2023  $obj_id = ilObject::_lookupObjectId($link_ref_id);
2024  $title = ilObject::_lookupTitle($obj_id);
2025 
2026  $target_link = $obj_type . "_" . $link_ref_id;
2027  $ti->setValue($title);
2028  $ta->setValue($target_link);
2029 
2030  // link ref id
2031  $hi = new ilHiddenInputGUI("link_ref_id");
2032  $hi->setValue($link_ref_id);
2033  $form->addItem($hi);
2034  }
2035 
2036 
2037  // save and cancel commands
2038  if ($a_mode == "create") {
2039  $form->addCommandButton("saveMenuEntry", $lng->txt("save"));
2040  $form->addCommandButton("editMenuProperties", $lng->txt("cancel"));
2041  $form->setTitle($lng->txt("lm_menu_new_entry"));
2042  } else {
2043  $form->addCommandButton("updateMenuEntry", $lng->txt("save"));
2044  $form->addCommandButton("editMenuProperties", $lng->txt("cancel"));
2045  $form->setTitle($lng->txt("lm_menu_edit_entry"));
2046  }
2047 
2048  $form->setFormAction($ilCtrl->getFormAction($this));
2049 
2050  return $form;
2051  }
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 899 of file class.ilObjContentObjectGUI.php.

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

Referenced by editMenuProperties(), and saveMenuProperties().

900  {
901  $lng = $this->lng;
902  $ilCtrl = $this->ctrl;
903 
904  $form = new ilPropertyFormGUI();
905 
906  // enable menu
907  $menu = new ilCheckboxInputGUI($this->lng->txt("cont_active"), "cobj_act_lm_menu");
908  $menu->setChecked($this->lm->isActiveLMMenu());
909  $form->addItem($menu);
910 
911  // toc
912  /*
913  $toc = new ilCheckboxInputGUI($this->lng->txt("cont_toc"), "cobj_act_toc");
914 
915  $toc->setChecked($this->lm->isActiveTOC());
916  $form->addItem($toc);*/
917 
918  // print view
919  $print = new ilCheckboxInputGUI($this->lng->txt("cont_print_view"), "cobj_act_print");
920  $print->setChecked($this->lm->isActivePrintView());
921  $form->addItem($print);
922 
923  // prevent glossary appendix
924  $glo = new ilCheckboxInputGUI($this->lng->txt("cont_print_view_pre_glo"), "cobj_act_print_prev_glo");
925  $glo->setChecked($this->lm->isActivePreventGlossaryAppendix());
926  $print->addSubItem($glo);
927 
928  // hide header and footer in print view
929  $hhfp = new ilCheckboxInputGUI($this->lng->txt("cont_hide_head_foot_print"), "hide_head_foot_print");
930  $hhfp->setChecked($this->lm->getHideHeaderFooterPrint());
931  $print->addSubItem($hhfp);
932 
933  $form->addCommandButton("saveMenuProperties", $lng->txt("save"));
934 
935  $form->setTitle($lng->txt("cont_lm_menu"));
936  $form->setFormAction($ilCtrl->getFormAction($this));
937 
938  return $form;
939  }
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 628 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().

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

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

Referenced by setPageLayout().

2604  : void
2605  {
2606  $lng = $this->lng;
2607  $ilCtrl = $this->ctrl;
2608 
2609  $this->form = new ilPropertyFormGUI();
2610 
2611  $ids = $this->edit_request->getIds();
2612  foreach ($ids as $id) {
2613  $hi = new ilHiddenInputGUI("id[]");
2614  $hi->setValue($id);
2615  $this->form->addItem($hi);
2616  }
2617  $layout = self::getLayoutOption(
2618  $lng->txt("cont_layout"),
2619  "layout",
2620  $this->lm->getLayout()
2621  );
2622  $this->form->addItem($layout);
2623 
2624  $this->form->addCommandButton("savePageLayout", $lng->txt("save"));
2625  $this->form->addCommandButton("pages", $lng->txt("cancel"));
2626 
2627  $this->form->setTitle($lng->txt("cont_set_layout"));
2628  $this->form->setFormAction($ilCtrl->getFormAction($this));
2629  }
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 2792 of file class.ilObjContentObjectGUI.php.

References ILIAS\Repository\ctrl().

2792  : void
2793  {
2794  $this->ctrl->redirectByClass(array('illearningprogressgui'), '');
2795  }
+ Here is the call graph for this function:

◆ listBlockedUsers()

ilObjContentObjectGUI::listBlockedUsers ( )

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

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

1610  : void
1611  {
1612  $tpl = $this->tpl;
1613 
1614  $this->setTabs("questions");
1615  $this->setQuestionsSubTabs("blocked_users");
1616 
1617  $table = new ilLMBlockedUsersTableGUI($this, "listBlockedUsers", $this->lm);
1618  $tpl->setContent($table->getHTML());
1619  }
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 1237 of file class.ilObjContentObjectGUI.php.

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

1237  : void
1238  {
1239  $tpl = $this->tpl;
1240 
1241  $this->setTabs();
1242  $this->setContentSubTabs("internal_links");
1243 
1244  $table_gui = new ilLinksTableGUI(
1245  $this,
1246  "listLinks",
1247  $this->lm->getId(),
1248  $this->lm->getType()
1249  );
1250 
1251  $tpl->setContent($table_gui->getHTML());
1252  }
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 1599 of file class.ilObjContentObjectGUI.php.

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

1599  : void
1600  {
1601  $tpl = $this->tpl;
1602 
1603  $this->setTabs("questions");
1604  $this->setQuestionsSubTabs("question_stats");
1605 
1606  $table = new ilLMQuestionListTableGUI($this, "listQuestions", $this->lm);
1607  $tpl->setContent($table->getHTML());
1608  }
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 1424 of file class.ilObjContentObjectGUI.php.

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

1424  : void
1425  {
1426  $ids = $this->edit_request->getIds();
1427  if (count($ids) == 0) {
1428  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"));
1429  if ($a_parent_subobj_id == 0) {
1430  $this->ctrl->redirect($this, "chapters");
1431  }
1432  return;
1433  }
1434  if (count($ids) > 1) {
1435  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_max_one_item"));
1436  if ($a_parent_subobj_id == 0) {
1437  $this->ctrl->redirect($this, "chapters");
1438  }
1439  return;
1440  }
1441 
1442  if (count($ids) == 1 && $ids[0] == ilTree::POS_FIRST_NODE) {
1443  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_item"));
1444  if ($a_parent_subobj_id == 0) {
1445  $this->ctrl->redirect($this, "chapters");
1446  }
1447  }
1448 
1449  // SAVE POST VALUES
1450  ilEditClipboard::storeContentObject("st", $ids[0], "move");
1451 
1452  $this->tpl->setOnScreenMessage('info', $this->lng->txt("cont_chap_select_target_now"), true);
1453 
1454  if ($a_parent_subobj_id == 0) {
1455  $this->ctrl->redirect($this, "chapters");
1456  }
1457  }
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 1469 of file class.ilObjContentObjectGUI.php.

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

1469  : void
1470  {
1471  $ids = $this->edit_request->getIds();
1472  if (count($ids) == 0) {
1473  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
1474  $this->ctrl->redirect($this, "pages");
1475  }
1476 
1477  $this->tpl->setOnScreenMessage('info', $this->lng->txt("cont_selected_items_have_been_cut"), true);
1478 
1479  ilLMObject::clipboardCut($this->lm->getId(), $ids);
1481 
1482  $this->ctrl->redirect($this, "pages");
1483  }
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 1212 of file class.ilObjContentObjectGUI.php.

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

1212  : void
1213  {
1214  $tpl = $this->tpl;
1215  $ilToolbar = $this->toolbar;
1216  $ilCtrl = $this->ctrl;
1217  $lng = $this->lng;
1218 
1219  $this->setTabs();
1220  $this->setContentSubTabs("pages");
1221 
1222  $ilCtrl->setParameter($this, "backcmd", "pages");
1223  $ilCtrl->setParameterByClass("illmpageobjectgui", "new_type", "pg");
1224  $ilToolbar->addButton(
1225  $lng->txt("pg_add"),
1226  $ilCtrl->getLinkTargetByClass("illmpageobjectgui", "create")
1227  );
1228  $ilCtrl->setParameterByClass("illmpageobjectgui", "new_type", "");
1229 
1230  $t = new ilLMPagesTableGUI($this, "pages", $this->lm);
1231  $tpl->setContent($t->getHTML());
1232  }
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 1464 of file class.ilObjContentObjectGUI.php.

1464  : void
1465  {
1466  $this->insertChapterClip();
1467  }

◆ proceedDragDrop()

ilObjContentObjectGUI::proceedDragDrop ( )

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

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

989  : void
990  {
991  $ilCtrl = $this->ctrl;
992 
994  $this->lm->executeDragDrop(
995  $req->getHFormPar("source_id"),
996  $req->getHFormPar("target_id"),
997  $req->getHFormPar("fc"),
998  $req->getHFormPar("as_subitem")
999  );
1000  $ilCtrl->redirect($this, "chapters");
1001  }
catch(\Exception $e) $req
Definition: xapiproxy.php:91

◆ properties()

ilObjContentObjectGUI::properties ( )

edit properties form

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

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

Referenced by ilObjLearningModuleGUI\view().

606  : void
607  {
608  $lng = $this->lng;
609 
610  $lng->loadLanguageModule("style");
611  $this->setTabs("settings");
612  $this->setSubTabs("settings");
613 
614  // lm properties
615  $this->initPropertiesForm();
616  $this->getPropertiesFormValues();
617 
618  // Edit ecs export settings
619  $ecs = new ilECSLearningModuleSettings($this->lm);
620  $ecs->addSettingsToForm($this->form, 'lm');
621 
622  $this->tpl->setContent($this->form->getHTML());
623  }
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:

◆ redrawHeaderAction()

ilObjContentObjectGUI::redrawHeaderAction ( )

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

2783  : void
2784  {
2785  // #12281
2786  parent::redrawHeaderActionObject();
2787  }

◆ removeLMGlossary()

ilObjContentObjectGUI::removeLMGlossary ( )

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

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

2749  : void
2750  {
2751  $ilCtrl = $this->ctrl;
2752  $lng = $this->lng;
2753 
2754  $this->lm->removeAutoGlossary($this->requested_glo_id);
2755  $this->lm->update();
2756 
2757  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2758  $ilCtrl->redirect($this, "editGlossaries");
2759  }
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 1621 of file class.ilObjContentObjectGUI.php.

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

1621  : void
1622  {
1623  $lng = $this->lng;
1624  $ilCtrl = $this->ctrl;
1625 
1626  $user_q_ids = $this->edit_request->getUserQuestionIds();
1627  if (count($user_q_ids) > 0) {
1628  foreach ($user_q_ids as $uqid) {
1629  $uqid = explode(":", $uqid);
1630  ilPageQuestionProcessor::resetTries((int) $uqid[0], (int) $uqid[1]);
1631  }
1632  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1633  }
1634  $ilCtrl->redirect($this, "listBlockedUsers");
1635  }
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 2224 of file class.ilObjContentObjectGUI.php.

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

2224  : void
2225  {
2226  $ilCtrl = $this->ctrl;
2227 
2229  $this->lm,
2230  $this->edit_request->getTitles(),
2232  );
2233 
2234  $this->tpl->setOnScreenMessage('success', $this->lng->txt("lm_save_titles"), true);
2235  $ilCtrl->redirect($this, "chapters");
2236  }
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 2376 of file class.ilObjContentObjectGUI.php.

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

2376  : void
2377  {
2378  $ilCtrl = $this->ctrl;
2379  $lng = $this->lng;
2380 
2381  // check all export ids
2382  $ok = true;
2383  foreach ($this->edit_request->getExportIds() as $exp_id) {
2384  if ($exp_id != "" && !preg_match(
2385  "/^([a-zA-Z]+)[0-9a-zA-Z_]*$/",
2386  trim($exp_id)
2387  )) {
2388  $ok = false;
2389  }
2390  }
2391  if (!$ok) {
2392  $this->tpl->setOnScreenMessage('failure', $lng->txt("cont_exp_ids_not_resp_format1") . ": a-z, A-Z, 0-9, '_'. " .
2393  $lng->txt("cont_exp_ids_not_resp_format3") . " " .
2394  $lng->txt("cont_exp_ids_not_resp_format2"));
2395  $this->showExportIDsOverview(true);
2396  return;
2397  }
2398 
2399 
2400  foreach ($this->edit_request->getExportIds() as $pg_id => $exp_id) {
2402  $this->lm->getId(),
2403  $pg_id,
2404  ilUtil::stripSlashes($exp_id),
2405  ilLMObject::_lookupType($pg_id)
2406  );
2407  }
2408 
2409  $this->tpl->setOnScreenMessage('success', $lng->txt("cont_saved_export_ids"), true);
2410  $ilCtrl->redirect($this, "showExportIdsOverview");
2411  }
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 2413 of file class.ilObjContentObjectGUI.php.

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

2413  : void
2414  {
2415  $lng = $this->lng;
2416  $ilCtrl = $this->ctrl;
2417  $help_map = $this->help->internal()->domain()->map();
2418 
2419  foreach ($this->edit_request->getScreenIds() as $chap => $ids) {
2420  $ids = explode("\n", $ids);
2421  $help_map->saveScreenIdsForChapter($chap, $ids);
2422  }
2423  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2424  $ilCtrl->redirect($this, "showExportIdsOverview");
2425  }
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 2053 of file class.ilObjContentObjectGUI.php.

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

2053  : void
2054  {
2055  $form = $this->initMenuEntryForm("create");
2056  if ($form->checkInput()) {
2057  $this->__initLMMenuEditor();
2058  $this->lmme_obj->setTitle($form->getInput("title"));
2059  $this->lmme_obj->setTarget($form->getInput("target"));
2060  $this->lmme_obj->setLinkRefId((int) $form->getInput("link_ref_id"));
2061 
2062  if ($form->getInput("link_ref_id")) {
2063  $this->lmme_obj->setLinkType("intern");
2064  }
2065 
2066  $this->lmme_obj->create();
2067 
2068  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_entry_added"), true);
2069  $this->ctrl->redirect($this, "editMenuProperties");
2070  } else {
2072  $this->addMenuEntry($form);
2073  }
2074  }
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 970 of file class.ilObjContentObjectGUI.php.

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

970  : void
971  {
972  $form = $this->initMenuForm();
973  if ($form->checkInput()) {
974  $this->lm->setActiveLMMenu((int) $form->getInput("cobj_act_lm_menu"));
975  //$this->lm->setActiveTOC((int) $form->getInput("cobj_act_toc"));
976  $this->lm->setActivePrintView((int) $form->getInput("cobj_act_print"));
977  $this->lm->setActivePreventGlossaryAppendix((int) $form->getInput("cobj_act_print_prev_glo"));
978  $this->lm->setHideHeaderFooterPrint((int) $form->getInput("hide_head_foot_print"));
979  $this->lm->updateProperties();
980  }
981 
982  $this->__initLMMenuEditor();
983  $this->lmme_obj->updateActiveStatus($this->edit_request->getMenuEntries());
984 
985  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified"), true);
986  $this->ctrl->redirect($this, "editMenuProperties");
987  }
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 2631 of file class.ilObjContentObjectGUI.php.

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

2631  : void
2632  {
2633  $lng = $this->lng;
2634  $ilCtrl = $this->ctrl;
2635 
2636  $ilCtrl->setParameter($this, "hierarchy", $this->requested_hierarchy);
2637 
2638  $ids = $this->edit_request->getIds();
2639  foreach ($ids as $id) {
2641  $id,
2642  $this->edit_request->getLayout(),
2643  $this->lm
2644  );
2645  }
2646  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2647 
2648  if ($this->requested_hierarchy) {
2649  $ilCtrl->redirect($this, "chapters");
2650  } else {
2651  $ilCtrl->redirect($this, "pages");
2652  }
2653  }
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 808 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(), ilObjectServiceSettingsGUI\INFO_TAB_VISIBILITY, initPropertiesForm(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\object(), ilNotification\setNotification(), setSubTabs(), ilObjectGUI\setTabs(), ilPropertyFormGUI\setTitle(), ilLanguage\txt(), ilNotification\TYPE_LM_BLOCKED_USERS, and ilObjectServiceSettingsGUI\updateServiceSettingsForm().

808  : void
809  {
810  $lng = $this->lng;
811  $ilUser = $this->user;
813  $obj_service = $this->object_service;
814 
815  $add_info = "";
816 
817  $valid = false;
818  $this->initPropertiesForm();
819  $form = $this->form;
820  if ($form->checkInput()) {
821  $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
822  if ($ot->getContentTranslationActivated()) {
823  $this->lm->getObjectProperties()->storePropertyTranslations(
824  $ot->withDefaultTitle($form->getInput('title'))
825  ->withDefaultDescription($form->getInput('description'))
826  );
827  }
828 
829  $this->lm->setTitle($form->getInput('title'));
830  $this->lm->setDescription($form->getInput('description'));
831  $this->lm->setPageHeader($form->getInput("lm_pg_header"));
832  $this->lm->setTOCMode($form->getInput("toc_mode"));
833  $this->lm->setOfflineStatus(!($form->getInput('cobj_online')));
834  $this->lm->setActiveNumbering((bool) $form->getInput("cobj_act_number"));
835  $this->lm->setCleanFrames((bool) $form->getInput("cobj_clean_frames"));
836  if (!$ilSetting->get('disable_comments')) {
837  $this->lm->setPublicNotes($form->getInput("cobj_pub_notes"));
838  }
839  $this->lm->setRating((bool) $form->getInput("rating"));
840  $this->lm->setRatingPages((bool) $form->getInput("rating_pages"));
841  $this->lm->setDisableDefaultFeedback((int) $form->getInput("disable_def_feedback"));
842  $this->lm->setProgressIcons((int) $form->getInput("progr_icons"));
843  $this->reading_time_gui->saveSettingFromForm($this->form);
844 
845  $add_info = "";
846  $store_tries = $form->getInput("store_tries");
847  if ($form->getInput("restrict_forw_nav") && !$form->getInput("store_tries")) {
848  $store_tries = 1;
849  $add_info = "</br>" . $lng->txt("cont_automatically_set_store_tries");
850  $add_info = str_replace("$1", $lng->txt("cont_tries_store"), $add_info);
851  $add_info = str_replace("$2", $lng->txt("cont_restrict_forw_nav"), $add_info);
852  }
853 
854  $this->lm->setStoreTries((int) $store_tries);
855  $this->lm->setRestrictForwardNavigation((int) $form->getInput("restrict_forw_nav"));
856  $this->lm->updateProperties();
857  $this->lm->update();
858 
859  // tile image
860  $obj_service->commonSettings()->legacyForm($this->form, $this->lm)->saveTileImage();
861 
864  $ilUser->getId(),
865  $this->lm->getId(),
866  (bool) $this->form->getInput("notification_blocked_users")
867  );
868 
869  // services
871  $this->object->getId(),
872  $this->form,
873  array(
875  )
876  );
877 
878 
879  // Update ecs export settings
880  $ecs = new ilECSLearningModuleSettings($this->lm);
881  if ($ecs->handleSettingsUpdate($form)) {
882  $valid = true;
883  }
884  }
885 
886  if ($valid) {
887  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_obj_modified") . $add_info, true);
888  $this->ctrl->redirect($this, "properties");
889  } else {
890  $lng->loadLanguageModule("style");
891  $this->setTabs("settings");
892  $this->setSubTabs("cont_general_properties");
893 
894  $this->form->setValuesByPost();
895  $this->tpl->setContent($this->form->getHTML());
896  }
897  }
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.
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 2496 of file class.ilObjContentObjectGUI.php.

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

2496  : void
2497  {
2498  $ilCtrl = $this->ctrl;
2499  $lng = $this->lng;
2500 
2501  $tooltip_ids = $this->edit_request->getTooltipIds();
2502  foreach ($this->edit_request->getTooltipTexts() as $id => $text) {
2503  $this->help->internal()->domain()->tooltips()->updateTooltip(
2504  (int) $id,
2505  $text,
2506  $tooltip_ids[(int) $id]
2507  );
2508  }
2509  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2510  $ilCtrl->redirect($this, "showTooltipList");
2511  }
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 2201 of file class.ilObjContentObjectGUI.php.

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

2201  : void
2202  {
2203  $ids = $this->edit_request->getIds();
2204  if (count($ids) == 0) {
2205  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
2206  $this->ctrl->redirect($this, "pages");
2207  }
2208  if (count($ids) > 1) {
2209  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_max_one_item"), true);
2210  $this->ctrl->redirect($this, "pages");
2211  }
2212  if ($ids[0] != $this->lm->getFooterPage()) {
2213  $this->lm->setFooterPage($ids[0]);
2214  } else {
2215  $this->lm->setFooterPage(0);
2216  }
2217  $this->lm->updateProperties();
2218  $this->ctrl->redirect($this, "pages");
2219  }
+ Here is the call graph for this function:

◆ selectHeader()

ilObjContentObjectGUI::selectHeader ( )

select page as header

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

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

2178  : void
2179  {
2180  $ids = $this->edit_request->getIds();
2181  if (count($ids) == 0) {
2182  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), true);
2183  $this->ctrl->redirect($this, "pages");
2184  }
2185  if (count($ids) > 1) {
2186  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("cont_select_max_one_item"), true);
2187  $this->ctrl->redirect($this, "pages");
2188  }
2189  if ($ids[0] != $this->lm->getHeaderPage()) {
2190  $this->lm->setHeaderPage($ids[0]);
2191  } else {
2192  $this->lm->setHeaderPage(0);
2193  }
2194  $this->lm->updateProperties();
2195  $this->ctrl->redirect($this, "pages");
2196  }
+ Here is the call graph for this function:

◆ selectLMGlossary()

ilObjContentObjectGUI::selectLMGlossary ( )

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

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

Referenced by selectLMGlossaryLink().

2731  : void
2732  {
2733  $ilCtrl = $this->ctrl;
2734  $lng = $this->lng;
2735 
2736  $glos = $this->lm->getAutoGlossaries();
2737  $glo_ref_id = $this->requested_glo_ref_id;
2738  $glo_id = ilObject::_lookupObjId($glo_ref_id);
2739  if (!in_array($glo_id, $glos)) {
2740  $glos[] = $glo_id;
2741  }
2742  $this->lm->setAutoGlossaries($glos);
2743  $this->lm->update();
2744 
2745  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
2746  $ilCtrl->redirect($this, "editGlossaries");
2747  }
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 2724 of file class.ilObjContentObjectGUI.php.

References $requested_glo_ref_id, and selectLMGlossary().

2724  : void
2725  {
2726  $glo_ref_id = $this->requested_glo_ref_id;
2727  $this->lm->autoLinkGlossaryTerms($glo_ref_id);
2728  $this->selectLMGlossary();
2729  }
+ Here is the call graph for this function:

◆ sendMailToBlockedUsers()

ilObjContentObjectGUI::sendMailToBlockedUsers ( )

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

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

1653  : void
1654  {
1655  $ilCtrl = $this->ctrl;
1656 
1657  $user_q_ids = $this->edit_request->getUserQuestionIds();
1658  if (count($user_q_ids) == 0) {
1659  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_checkbox"), 1);
1660  $ilCtrl->redirect($this, "listBlockedUsers");
1661  }
1662 
1663  $rcps = array();
1664  foreach ($user_q_ids as $uqid) {
1665  $uqid = explode(":", $uqid);
1666  $login = ilObjUser::_lookupLogin($uqid[1]);
1667  if (!in_array($login, $rcps)) {
1668  $rcps[] = $login;
1669  }
1670  }
1672  $this,
1673  'listBlockedUsers',
1674  array(),
1675  array(
1676  'type' => 'new',
1677  'rcp_to' => implode(',', $rcps),
1678  'sig' => $this->getBlockedUsersMailSignature()
1679  )
1680  ));
1681  }
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 1705 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().

1705  : void
1706  {
1707  $ilTabs = $this->tabs;
1708  $lng = $this->lng;
1709  $ilCtrl = $this->ctrl;
1710 
1711  $lm_set = new ilSetting("lm");
1712 
1713  // chapters
1714  $this->ctrl->setParameterByClass(static::class, "sub_type", "st");
1715  $ilTabs->addSubTab(
1716  "sub_chapters",
1717  $lng->txt("objs_st"),
1718  $this->ctrl->getLinkTargetByClass(EditSubObjectsGUI::class)
1719  );
1720 
1721 
1722  // all pages
1723  $ilTabs->addSubTab(
1724  "pages",
1725  $lng->txt("cont_all_pages"),
1726  $ilCtrl->getLinkTarget($this, "pages")
1727  );
1728 
1729  // all pages
1730  $ilTabs->addSubTab(
1731  "short_titles",
1732  $lng->txt("cont_short_titles"),
1733  $ilCtrl->getLinkTargetByClass("illmeditshorttitlesgui", "")
1734  );
1735 
1736  // export ids
1737  if ($lm_set->get("html_export_ids")) {
1738  if (!ilObjContentObject::isOnlineHelpModule($this->lm->getRefId())) {
1739  $ilTabs->addSubTab(
1740  "export_ids",
1741  $lng->txt("cont_html_export_ids"),
1742  $ilCtrl->getLinkTarget($this, "showExportIDsOverview")
1743  );
1744  }
1745  }
1746  if (ilObjContentObject::isOnlineHelpModule($this->lm->getRefId())) {
1747  $lng->loadLanguageModule("help");
1748  $ilTabs->addSubTab(
1749  "export_ids",
1750  $lng->txt("cont_online_help_ids"),
1751  $ilCtrl->getLinkTarget($this, "showExportIDsOverview")
1752  );
1753 
1754  $ilTabs->addSubTab(
1755  "help_tooltips",
1756  $lng->txt("help_tooltips"),
1757  $ilCtrl->getLinkTarget($this, "showTooltipList")
1758  );
1759  }
1760 
1761  // list links
1762  $ilTabs->addSubTab(
1763  "internal_links",
1764  $lng->txt("cont_internal_links"),
1765  $ilCtrl->getLinkTarget($this, "listLinks")
1766  );
1767 
1768  // maintenance
1769  $ilTabs->addSubTab(
1770  "maintenance",
1771  $lng->txt("cont_maintenance"),
1772  $ilCtrl->getLinkTarget($this, "showMaintenance")
1773  );
1774 
1775  // srt files
1776  $ilTabs->addSubTab(
1777  "srt_files",
1778  $lng->txt("cont_subtitle_files"),
1779  $ilCtrl->getLinkTargetByClass("ilmobmultisrtuploadgui", "")
1780  );
1781 
1782  // srt files
1783  $ilTabs->addSubTab(
1784  "import",
1785  $lng->txt("cont_import"),
1786  $ilCtrl->getLinkTargetByClass("illmimportgui", "")
1787  );
1788 
1789  $ilTabs->activateSubTab($a_active);
1790  $ilTabs->activateTab("content");
1791  }
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 2581 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().

2583  : void {
2584  $tpl = $this->tpl;
2585  $ilCtrl = $this->ctrl;
2586  $lng = $this->lng;
2587 
2588  $ids = $this->edit_request->getIds();
2589  if (count($ids) == 0) {
2590  $this->tpl->setOnScreenMessage('failure', $lng->txt("no_checkbox"), true);
2591 
2592  if ($a_in_hierarchy) {
2593  $ilCtrl->redirect($this, "chapters");
2594  } else {
2595  $ilCtrl->redirect($this, "pages");
2596  }
2597  }
2598 
2599  $this->initSetPageLayoutForm();
2600 
2601  $tpl->setContent($this->form->getHTML());
2602  }
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 2570 of file class.ilObjContentObjectGUI.php.

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

2570  : void
2571  {
2572  $ilCtrl = $this->ctrl;
2573  $ilCtrl->setParameter($this, "hierarchy", "1");
2574  $this->setPageLayout(true);
2575  }
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 1793 of file class.ilObjContentObjectGUI.php.

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

Referenced by listBlockedUsers(), and listQuestions().

1793  : void
1794  {
1795  $ilTabs = $this->tabs;
1796  $lng = $this->lng;
1797  $ilCtrl = $this->ctrl;
1798 
1799  // chapters
1800  $ilTabs->addSubTab(
1801  "question_stats",
1802  $lng->txt("cont_question_stats"),
1803  $ilCtrl->getLinkTarget($this, "listQuestions")
1804  );
1805 
1806  // blocked users
1807  $ilTabs->addSubTab(
1808  "blocked_users",
1809  $lng->txt("cont_blocked_users"),
1810  $ilCtrl->getLinkTarget($this, "listBlockedUsers")
1811  );
1812 
1813  $ilTabs->activateSubTab($a_active);
1814  }
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 1901 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().

1901  : void
1902  {
1903  $ilTabs = $this->tabs;
1905 
1906  if (in_array(
1907  $a_active,
1908  array("settings", "cont_style", "cont_lm_menu", "public_section",
1909  "cont_glossaries", "cont_multilinguality", "obj_multilinguality",
1910  "lti_provider")
1911  )) {
1912  // general properties
1913  $ilTabs->addSubTabTarget(
1914  "settings",
1915  $this->ctrl->getLinkTarget($this, 'properties'),
1916  "",
1917  ""
1918  );
1919 
1920  // style properties
1921  $ilTabs->addSubTabTarget(
1922  "cont_style",
1923  $this->ctrl->getLinkTargetByClass("ilObjectContentStyleSettingsGUI", ""),
1924  "",
1925  "ilObjectContentStyleSettingsGUI"
1926  );
1927 
1928  // menu properties
1929  $ilTabs->addSubTabTarget(
1930  "cont_lm_menu",
1931  $this->ctrl->getLinkTarget($this, 'editMenuProperties'),
1932  "",
1933  ""
1934  );
1935 
1936  // glossaries
1937  $ilTabs->addSubTabTarget(
1938  "cont_glossaries",
1939  $this->ctrl->getLinkTarget($this, 'editGlossaries'),
1940  "",
1941  ""
1942  );
1943 
1944  $ilTabs->addSubTabTarget(
1945  "obj_multilinguality",
1946  $this->ctrl->getLinkTargetByClass(TranslationGUI::class, "")
1947  );
1948 
1949  $lti_settings = new ilLTIProviderObjectSettingGUI($this->lm->getRefId());
1950  if ($lti_settings->hasSettingsAccess()) {
1951  $ilTabs->addSubTabTarget(
1952  'lti_provider',
1953  $this->ctrl->getLinkTargetByClass(ilLTIProviderObjectSettingGUI::class)
1954  );
1955  }
1956 
1957  $ilTabs->setSubTabActive($a_active);
1958  }
1959  }
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 1697 of file class.ilObjContentObjectGUI.php.

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

1697  : void
1698  {
1699  parent::setTitleAndDescription();
1700  $ilHelp = $this->help;
1701  $ilHelp->setScreenIdComponent("lm");
1702  $this->addTabs($a_act);
1703  }
setScreenIdComponent(string $a_comp)
+ Here is the call graph for this function:

◆ showActions()

ilObjContentObjectGUI::showActions ( array  $a_actions)

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

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

1377  : void
1378  {
1379  $d = null;
1380  foreach ($a_actions as $name => $lng) {
1381  $d[$name] = array("name" => $name, "lng" => $lng);
1382  }
1383 
1384  $notoperations = array();
1385 
1386  $operations = array();
1387 
1388  if (is_array($d)) {
1389  foreach ($d as $row) {
1390  if (!in_array($row["name"], $notoperations)) {
1391  $operations[] = $row;
1392  }
1393  }
1394  }
1395 
1396  if (count($operations) > 0) {
1397  foreach ($operations as $val) {
1398  $this->tpl->setCurrentBlock("operation_btn");
1399  $this->tpl->setVariable("BTN_NAME", $val["name"]);
1400  $this->tpl->setVariable("BTN_VALUE", $this->lng->txt($val["lng"]));
1401  $this->tpl->parseCurrentBlock();
1402  }
1403 
1404  $this->tpl->setCurrentBlock("operation");
1405  $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("nav/arrow_downright.svg"));
1406  $this->tpl->parseCurrentBlock();
1407  }
1408  }
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 2147 of file class.ilObjContentObjectGUI.php.

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

2147  : void
2148  {
2149  $ilTabs = $this->tabs;
2150  $ilCtrl = $this->ctrl;
2151 
2152  $this->setTabs();
2153 
2154  $ilTabs->setTabActive("settings");
2155  $this->setSubTabs("cont_lm_menu");
2156 
2157  $ilCtrl->saveParameter($this, array("menu_entry"));
2158 
2159  $this->tpl->setOnScreenMessage('info', $this->lng->txt("lm_menu_select_object_to_add"));
2160 
2162  $this,
2163  "showEntrySelector",
2164  $this,
2165  "addMenuEntry",
2166  "link_ref_id"
2167  );
2168  //$exp->setTypeWhiteList(array("root", "cat", "grp", "crs", "glo", "fold"));
2169  $exp->setClickableTypes(array('mcst', 'mep', 'cat', 'lm','glo','frm','exc','tst','svy', 'chat', 'wiki', 'sahs', "crs", "grp", "book", "tst", "file"));
2170  if (!$exp->handleCommand()) {
2171  $this->tpl->setContent($exp->getHTML());
2172  }
2173  }
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ showExportIDsOverview()

ilObjContentObjectGUI::showExportIDsOverview ( bool  $a_validation = false)

Definition at line 2336 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().

2336  : void
2337  {
2338  $tpl = $this->tpl;
2339  $ilToolbar = $this->toolbar;
2340  $lng = $this->lng;
2341  $ilCtrl = $this->ctrl;
2342 
2343  $this->setTabs();
2344  $this->setContentSubTabs("export_ids");
2345 
2346  if (ilObjContentObject::isOnlineHelpModule($this->lm->getRefId())) {
2347  // toolbar
2348  $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
2349  $lm_tree = $this->lm->getTree();
2350  $childs = $lm_tree->getChilds($lm_tree->readRootId());
2351  $options = array("" => $lng->txt("all"));
2352  foreach ($childs as $c) {
2353  $options[$c["child"]] = $c["title"];
2354  }
2355  $si = new ilSelectInputGUI($this->lng->txt("help_component"), "help_chap");
2356  $si->setOptions($options);
2357  $si->setValue(ilSession::get("help_chap"));
2358  $ilToolbar->addInputItem($si, true);
2359  $ilToolbar->addFormButton($lng->txt("help_filter"), "filterHelpChapters");
2360 
2361  $tbl = new ilHelpMappingTableGUI($this, "showExportIDsOverview", $a_validation);
2362  } else {
2363  $tbl = new ilExportIDTableGUI($this, "showExportIDsOverview", $a_validation, false);
2364  }
2365 
2366  $tpl->setContent($tbl->getHTML());
2367  }
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 548 of file class.ilObjContentObjectGUI.php.

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

548  : void
549  {
550  $ot = $this->lm->getObjectProperties()->getPropertyTranslations();
551  if ($ot->getContentTranslationActivated()) {
552  $this->addHeaderAction();
553  $this->addLocations(true);
554  $this->setTabs("export");
555  $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($this->buildExportOptionsFormHTML()));
556  }
557  if (!$ot->getContentTranslationActivated()) {
558  $this->doExportHTML();
559  }
560  }
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:

◆ showExportOptionsXML()

ilObjContentObjectGUI::showExportOptionsXML ( )
protected

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

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

540  : void
541  {
542  $this->addHeaderAction();
543  $this->addLocations(true);
544  $this->setTabs("export");
545  $this->ui->mainTemplate()->setContent($this->ui->renderer()->render($this->buildExportOptionsFormXML()));
546  }
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 2684 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().

2684  : void
2685  {
2686  $tpl = $this->tpl;
2687  $ilCtrl = $this->ctrl;
2688  $tree = $this->tree;
2689  $ilTabs = $this->tabs;
2690 
2691  $this->setTabs();
2692  $ilTabs->setTabActive("settings");
2693  $this->setSubTabs("cont_glossaries");
2694 
2695  $exp = new ilSearchRootSelector($ilCtrl->getLinkTarget($this, 'showLMGlossarySelector'));
2696  $exp->setExpand($this->requested_search_root_expand ?: $tree->readRootId());
2697  $exp->setPathOpen($this->object->getRefId());
2698  $exp->setExpandTarget($ilCtrl->getLinkTarget($this, 'showLMGlossarySelector'));
2699  $exp->setTargetClass(get_class($this));
2700  $exp->setCmd('confirmGlossarySelection');
2701  $exp->setClickableTypes(array("glo"));
2702  $exp->addFilter("glo");
2703 
2704  // build html-output
2705  $exp->setOutput(0);
2706  $tpl->setContent($exp->getOutput());
2707  }
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 1257 of file class.ilObjContentObjectGUI.php.

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

1257  : void
1258  {
1259  $ilToolbar = $this->toolbar;
1260 
1261  $this->setTabs();
1262  $this->setContentSubTabs("maintenance");
1263 
1264  $ilToolbar->addButton(
1265  $this->lng->txt("cont_fix_tree"),
1266  $this->ctrl->getLinkTarget($this, "fixTreeConfirm")
1267  );
1268  }
ilToolbarGUI $toolbar
setTabs()
set admin tabs
+ Here is the call graph for this function:

◆ showTooltipList()

ilObjContentObjectGUI::showTooltipList ( )

Definition at line 2431 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().

2431  : void
2432  {
2433  $tpl = $this->tpl;
2434  $ilToolbar = $this->toolbar;
2435  $ilCtrl = $this->ctrl;
2436  $lng = $this->lng;
2437 
2438  $this->setTabs();
2439  $this->setContentSubTabs("help_tooltips");
2440 
2441  $ilToolbar->setFormAction($ilCtrl->getFormAction($this));
2442  $ti = new ilTextInputGUI($this->lng->txt("help_tooltip_id"), "tooltip_id");
2443  $ti->setMaxLength(200);
2444  $ti->setSize(20);
2445  $ilToolbar->addInputItem($ti, true);
2446  $ilToolbar->addFormButton($lng->txt("add"), "addTooltip");
2447  $ilToolbar->addSeparator();
2448 
2449  $options = $this->help->internal()->domain()->tooltips()->getTooltipComponents();
2450  if (ilSession::get("help_tt_comp") != "") {
2451  $options[ilSession::get("help_tt_comp")] = ilSession::get("help_tt_comp");
2452  }
2453  $si = new ilSelectInputGUI($this->lng->txt("help_component"), "help_tt_comp");
2454  $si->setOptions($options);
2455  $si->setValue(ilSession::get("help_tt_comp"));
2456  $ilToolbar->addInputItem($si, true);
2457  $ilToolbar->addFormButton($lng->txt("help_filter"), "filterTooltips");
2458 
2459  $tbl = new ilHelpTooltipTableGUI($this, "showTooltipList", (string) ilSession::get("help_tt_comp"));
2460 
2461  $tpl->setContent($tbl->getHTML());
2462  }
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 2772 of file class.ilObjContentObjectGUI.php.

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

2772  : void
2773  {
2774  $ilCtrl = $this->ctrl;
2775 
2776  $ilCtrl->setParameter($this, "transl", $this->requested_totransl);
2777  if ($this->lang_switch_mode == "short_titles") {
2778  $ilCtrl->redirectByClass("illmeditshorttitlesgui", "");
2779  }
2780  $ilCtrl->redirect($this, "chapters");
2781  }
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
+ Here is the call graph for this function:

◆ unlockQuestion()

ilObjContentObjectGUI::unlockQuestion ( )

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

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

1637  : void
1638  {
1639  $lng = $this->lng;
1640  $ilCtrl = $this->ctrl;
1641 
1642  $user_q_ids = $this->edit_request->getUserQuestionIds();
1643  if (count($user_q_ids) > 0) {
1644  foreach ($user_q_ids as $uqid) {
1645  $uqid = explode(":", $uqid);
1646  ilPageQuestionProcessor::unlock((int) $uqid[0], (int) $uqid[1]);
1647  }
1648  $this->tpl->setOnScreenMessage('success', $lng->txt("msg_obj_modified"), true);
1649  }
1650  $ilCtrl->redirect($this, "listBlockedUsers");
1651  }
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 2119 of file class.ilObjContentObjectGUI.php.

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

2119  : void
2120  {
2121  $form = $this->initMenuEntryForm("edit");
2122  if ($form->checkInput()) {
2123  if ($this->edit_request->getMenuEntry() == "") {
2124  $this->tpl->setOnScreenMessage('failure', $this->lng->txt("no_menu_entry_id"), true);
2125  $this->ctrl->redirect($this, "editMenuProperties");
2126  }
2127 
2128  $this->__initLMMenuEditor();
2129  $this->lmme_obj->readEntry($this->edit_request->getMenuEntry());
2130  $this->lmme_obj->setTitle($form->getInput("title"));
2131  $this->lmme_obj->setTarget($form->getInput("target"));
2132  if ($form->getInput("link_ref_id")) {
2133  $this->lmme_obj->setLinkType("intern");
2134  }
2135  if (is_int(strpos($form->getInput("target"), "."))) {
2136  $this->lmme_obj->setLinkType("extern");
2137  }
2138  $this->lmme_obj->update();
2139  $this->tpl->setOnScreenMessage('success', $this->lng->txt("msg_entry_updated"), true);
2140  $this->ctrl->redirect($this, "editMenuProperties");
2141  } else {
2143  $this->editMenuEntry($form);
2144  }
2145  }
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 1410 of file class.ilObjContentObjectGUI.php.

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

1410  : void
1411  {
1412  if (strtolower($this->requested_baseClass) == "iladministrationgui") {
1413  $this->prepareOutput();
1414  parent::viewObject();
1415  } else {
1416  $this->viewObject();
1417  }
1418  }
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 51 of file class.ilObjContentObjectGUI.php.

◆ $content_style_service

ILIAS Style Content Service ilObjContentObjectGUI::$content_style_service
protected

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

◆ $db

ilDBInterface ilObjContentObjectGUI::$db
protected

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

◆ $domain

ILIAS LearningModule InternalDomainService ilObjContentObjectGUI::$domain
protected

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

◆ $edit_request

EditingGUIRequest ilObjContentObjectGUI::$edit_request
protected

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

◆ $help

ilHelpGUI ilObjContentObjectGUI::$help
protected

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

Referenced by setTabs().

◆ $lang_switch_mode

string ilObjContentObjectGUI::$lang_switch_mode
protected

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

◆ $lm

ilObjLearningModule ilObjContentObjectGUI::$lm
protected

◆ $lm_obj

ilObjLearningModule ilObjContentObjectGUI::$lm_obj
protected

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

◆ $lm_tree

ilLMTree ilObjContentObjectGUI::$lm_tree
protected

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

◆ $lmme_obj

ilLMMenuEditor ilObjContentObjectGUI::$lmme_obj
protected

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

◆ $log

ilLogger ilObjContentObjectGUI::$log
protected

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

◆ $rbacsystem

ilRbacSystem ilObjContentObjectGUI::$rbacsystem
protected

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

Referenced by addTabs().

◆ $reading_time_gui

ILIAS LearningModule ReadingTime SettingsGUI ilObjContentObjectGUI::$reading_time_gui
protected

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

◆ $requested_active_node

int ilObjContentObjectGUI::$requested_active_node = 0
protected

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

◆ $requested_backcmd

string ilObjContentObjectGUI::$requested_backcmd = ""
protected

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

◆ $requested_baseClass

string ilObjContentObjectGUI::$requested_baseClass = ""
protected

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

◆ $requested_glo_id

int ilObjContentObjectGUI::$requested_glo_id = 0
protected

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

◆ $requested_glo_ref_id

int ilObjContentObjectGUI::$requested_glo_ref_id = 0
protected

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

Referenced by selectLMGlossary(), and selectLMGlossaryLink().

◆ $requested_hierarchy

bool ilObjContentObjectGUI::$requested_hierarchy = false
protected

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

◆ $requested_lang_switch_mode

string ilObjContentObjectGUI::$requested_lang_switch_mode = ""
protected

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

◆ $requested_link_ref_id

int ilObjContentObjectGUI::$requested_link_ref_id = 0
protected

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

Referenced by initMenuEntryForm().

◆ $requested_lm_menu_expand

int ilObjContentObjectGUI::$requested_lm_menu_expand = 0
protected

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

◆ $requested_lmexpand

int ilObjContentObjectGUI::$requested_lmexpand = 0
protected

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

◆ $requested_lmmovecopy

bool ilObjContentObjectGUI::$requested_lmmovecopy = false
protected

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

◆ $requested_menu_entry

int ilObjContentObjectGUI::$requested_menu_entry = 0
protected

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

◆ $requested_new_type

string ilObjContentObjectGUI::$requested_new_type = ""
protected

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

Referenced by checkCtrlPath().

◆ $requested_obj_id

int ilObjContentObjectGUI::$requested_obj_id = 0
protected

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

Referenced by addLocations().

◆ $requested_ref_id

int ilObjContentObjectGUI::$requested_ref_id = 0
protected

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

◆ $requested_root_id

int ilObjContentObjectGUI::$requested_root_id = 0
protected

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

◆ $requested_search_root_expand

int ilObjContentObjectGUI::$requested_search_root_expand = 0
protected

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

◆ $requested_totransl

string ilObjContentObjectGUI::$requested_totransl = ""
protected

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

◆ $requested_transl

string ilObjContentObjectGUI::$requested_transl = ""
protected

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

Referenced by saveAllTitles().

◆ $tabs

◆ $to_props

bool ilObjContentObjectGUI::$to_props = false
protected

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

◆ $ui

ILIAS DI UIServices ilObjContentObjectGUI::$ui
protected

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


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