3declare(strict_types=1);
35 bool $a_call_by_reference,
36 bool $a_prepare_output =
true
40 $this->
lng = $DIC->language();
41 $this->rbacsystem =
$DIC->rbac()->system();
42 $this->
access = $DIC->access();
43 $this->rbacreview =
$DIC->rbac()->review();
44 $this->
ctrl = $DIC->ctrl();
45 $this->tpl =
$DIC[
"tpl"];
65 $this->
ctrl->setParameter($this,
"ref_id", $this->
object->getRefId());
67 if ($rbacsystem->
checkAccess(
"visible,read", $this->object->getRefId())) {
68 $this->tabs_gui->addTarget(
70 $this->
ctrl->getLinkTarget($this,
"view"),
71 array(
"editMaps",
"editMathJax",
""),
75 $this->
lng->loadLanguageModule(
'ecs');
78 if ($rbacsystem->
checkAccess(
'edit_permission', $this->object->getRefId())) {
79 $this->tabs_gui->addTarget(
81 $this->
ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"),
82 array(
"perm",
"info",
"owner"),
108 $form->setFormAction($ilCtrl->getFormAction($this));
109 $form->setTitle(
$lng->
txt(
"maps_settings"));
114 $enable->setInfo(
$lng->
txt(
"maps_enable_maps_info"));
115 $form->addItem($enable);
120 $types->setValue(
$type);
121 $form->addItem($types);
124 if (
$type ===
"openlayers") {
130 $geolocation->setInfo(
$lng->
txt(
"maps_custom_geolocation_server_info"));
132 $form->addItem($tile);
133 $form->addItem($geolocation);
137 $key->setMaxLength(200);
139 $form->addItem(
$key);
144 $lng->
txt(
"maps_std_location"),
148 $loc_prop->setLatitude($std_latitude);
149 $loc_prop->setLongitude($std_longitude);
150 $loc_prop->setZoom((
int) $std_zoom);
151 $form->addItem($loc_prop);
153 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId())) {
154 $form->addCommandButton(
"saveMaps",
$lng->
txt(
"save"));
155 $form->addCommandButton(
"view",
$lng->
txt(
"cancel"));
169 if ($form->checkInput()) {
170 if ($form->getInput(
"type") ===
'openlayers' &&
'openlayers' ===
ilMapUtil::getType()) {
173 $form->getInput(
"geolocation")
181 $location = $form->getInput(
"std_location");
186 $ilCtrl->redirect($this,
"editMaps");
192 $maps = $a_cmd ===
'editMaps';
193 $mathjax = $a_cmd ===
'editMathJax';
195 $this->tabs_gui->addSubTabTarget(
197 $this->
ctrl->getLinkTarget($this,
"editMaps"),
203 $this->tabs_gui->addSubTabTarget(
205 $this->
ctrl->getLinkTargetByClass(
'ilMathJaxSettingsGUI'),
215 $next_class = $this->
ctrl->getNextClass($this);
216 $cmd = $this->
ctrl->getCmd();
219 if (!$this->rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
220 $this->
ilias->raiseError($this->
lng->txt(
"permission_denied"), $this->ilias->error_obj->MESSAGE);
223 switch ($next_class) {
225 case 'ilmathjaxsettingsgui':
226 $this->tabs_gui->setTabActive(
'settings');
231 case 'ilecssettingsgui':
232 $this->tabs_gui->setTabActive(
'ecs_server_settings');
236 case 'ilpermissiongui':
238 $this->
ctrl->forwardCommand($perm_gui);
239 $this->tabs_gui->setTabActive(
'perm_settings');
243 $this->tabs_gui->setTabActive(
'settings');
244 if (!$cmd || $cmd ===
'view') {
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
loadLanguageModule(string $a_module)
Load language module.
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 setActivated(bool $activated)
static getStdGeolocationServer()
Returns the reverse geolocation server to be used in the installation.
static setStdLongitude(string $lon)
static setStdTileServers(string $tile)
static setStdLatitude(string $lat)
static getStdTileServers()
Returns the tile server to be used in the installation.
static setStdGeolocationServer($geolocation)
static setStdZoom(string $zoom)
static isActivated()
Checks whether Map feature is activated.
static setType(string $type)
static getAvailableMapTypes()
Get a dict { $id => $name } for available maps services.
static setApiKey(string $api_key)
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.
ilGlobalTemplateInterface $tpl
prepareOutput(bool $show_sub_objects=true)
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
class ilRbacReview Contains Review functions of core Rbac.
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
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 ...
This class represents a text property in a property form.
setContent(string $a_html)
Sets content for standard template.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
header include for all ilias files.