19 declare(strict_types=1);
    36         bool $a_call_by_reference,
    37         bool $a_prepare_output = 
true    41         $this->
lng = $DIC->language();
    42         $this->rbacsystem = $DIC->rbac()->system();
    43         $this->
access = $DIC->access();
    44         $this->rbacreview = $DIC->rbac()->review();
    45         $this->
ctrl = $DIC->ctrl();
    46         $this->tpl = $DIC[
"tpl"];
    47         $lng = $DIC->language();
    67         $this->
ctrl->setParameter($this, 
"ref_id", $this->
object->getRefId());
    69         if ($rbacsystem->
checkAccess(
"visible,read", $this->object->getRefId())) {
    70             $this->tabs_gui->addTarget(
    72                 $this->
ctrl->getLinkTarget($this, 
"view"),
    73                 array(
"editMaps", 
"editMathJax", 
""),
    77             $this->
lng->loadLanguageModule(
'ecs');
    80         if ($rbacsystem->
checkAccess(
'edit_permission', $this->object->getRefId())) {
    81             $this->tabs_gui->addTarget(
    83                 $this->
ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'), 
"perm"),
    84                 array(
"perm",
"info",
"owner"),
   110         $form->setFormAction($ilCtrl->getFormAction($this));
   111         $form->setTitle(
$lng->
txt(
"maps_settings"));
   116         $enable->setInfo(
$lng->
txt(
"maps_enable_maps_info"));
   117         $form->addItem($enable);
   122         $types->setValue(
$type);
   123         $form->addItem($types);
   126         if (
$type === 
"openlayers") {
   132             $geolocation->setInfo(
$lng->
txt(
"maps_custom_geolocation_server_info"));
   134             $form->addItem($tile);
   135             $form->addItem($geolocation);
   139             $key->setMaxLength(200);
   141             $form->addItem($key);
   146             $lng->
txt(
"maps_std_location"),
   151         $loc_prop->setLongitude($std_longitude);
   152         $loc_prop->setZoom((
int) $std_zoom);
   153         $form->addItem($loc_prop);
   155         if ($ilAccess->checkAccess(
"write", 
"", $this->object->getRefId())) {
   156             $form->addCommandButton(
"saveMaps", 
$lng->
txt(
"save"));
   157             $form->addCommandButton(
"view", 
$lng->
txt(
"cancel"));
   171         if ($form->checkInput()) {
   172             if ($form->getInput(
"type") === 
'openlayers' && 
'openlayers' === 
ilMapUtil::getType()) {
   175                     $form->getInput(
"geolocation")
   183             $location = $form->getInput(
"std_location");
   188         $ilCtrl->redirect($this, 
"editMaps");
   194         $maps = $a_cmd === 
'editMaps';
   195         $mathjax = $a_cmd === 
'editMathJax';
   196         $wopi = $a_cmd === self::EDIT_WOPI;
   198         $this->tabs_gui->addSubTabTarget(
   200             $this->
ctrl->getLinkTarget($this, 
"editMaps"),
   206         $this->tabs_gui->addSubTabTarget(
   208             $this->
ctrl->getLinkTargetByClass(
'ilMathJaxSettingsGUI'),
   214         $this->tabs_gui->addSubTabTarget(
   216             $this->
ctrl->getLinkTargetByClass(ilWOPIAdministrationGUI::class),
   226         $next_class = $this->
ctrl->getNextClass($this);
   227         $cmd = $this->
ctrl->getCmd();
   230         if (!$this->rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
   231             $this->
ilias->raiseError($this->
lng->txt(
"permission_denied"), $this->
ilias->error_obj->MESSAGE);
   234         switch ($next_class) {
   235             case 'ilmathjaxsettingsgui':
   236                 $this->tabs_gui->setTabActive(
'settings');
   239                     $this->rbacsystem->checkAccess(
'write', $this->object->getRefId())
   243             case 'ilecssettingsgui':
   244                 $this->tabs_gui->setTabActive(
'ecs_server_settings');
   248             case strtolower(ilWOPIAdministrationGUI::class):
   253             case 'ilpermissiongui':
   255                 $this->
ctrl->forwardCommand($perm_gui);
   256                 $this->tabs_gui->setTabActive(
'perm_settings');
   260                 $this->tabs_gui->setTabActive(
'settings');
   261                 if (!$cmd || $cmd === 
'view') {
 
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 setType(string $type)
 
static setActivated(bool $activated)
 
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
prepareOutput(bool $show_sub_objects=true)
 
loadLanguageModule(string $a_module)
Load language module. 
 
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 ...
 
static setStdTileServers(string $tile)
 
ilGlobalTemplateInterface $tpl
 
setContent(string $a_html)
Sets content for standard template. 
 
GUI for MathJax Settings This GUI maintains the MathJax config stored in the ILIAS settings Since ILI...
 
Class ilObjectGUI Basic methods of all Output classes. 
 
static setApiKey(string $api_key)
 
static setStdLongitude(string $lon)
 
Class ilObjForumAdministration. 
 
static getAvailableMapTypes()
Get a dict { $id => $name } for available maps services. 
 
static isActivated()
Checks whether Map feature is activated. 
 
static getStdGeolocationServer()
Returns the reverse geolocation server to be used in the installation. 
 
__construct(Container $dic, ilPlugin $plugin)
 
static setStdLatitude(string $lat)
 
static getStdTileServers()
Returns the tile server to be used in the installation. 
 
static setStdGeolocationServer($geolocation)
 
static setStdZoom(string $zoom)