19 declare(strict_types=1);
    36         string $a_postvar = 
""    40         $this->
lng = $DIC->language();
    41         $this->rbacsystem = $DIC->rbac()->system();
    48         $this->latitude = $a_latitude;
    58         $this->longitude = $a_longitude;
    66     public function setZoom(?
int $a_zoom): void
    68         $this->zoom = $a_zoom;
    78         $this->address = $a_address;
    88         $lat = (isset($a_values[$this->
getPostVar()][
"latitude"]) && $a_values[$this->
getPostVar()][
"latitude"] != 
"")
    89             ? (
float) $a_values[$this->
getPostVar()][
"latitude"]
    91         $lon = (isset($a_values[$this->
getPostVar()][
"longitude"]) && $a_values[$this->
getPostVar()][
"longitude"] != 
"")
    92             ? (
float) $a_values[$this->
getPostVar()][
"longitude"]
   105             !isset($val[
"latitude"]) || trim($val[
"latitude"]) == 
"" ||
   106             !isset($val[
"longitude"]) || trim($val[
"longitude"]) == 
""   118             "latitude" => (float) ($val[
"latitude"] ?? 0),
   119             "longitude" => (float) ($val[
"longitude"] ?? 0),
   120             "zoom" => (
int) ($val[
"zoom"] ?? 0),
   121             "address" => ($val[
"address"] ?? 
"")
   132         $tpl = 
new ilTemplate(
"tpl.prop_location.html", 
true, 
true, 
"Services/Form");
   133         $tpl->setVariable(
"POST_VAR", $this->
getPostVar());
   134         $tpl->setVariable(
"TXT_ZOOM", 
$lng->
txt(
"maps_zoom_level"));
   135         $tpl->setVariable(
"TXT_LATITUDE", 
$lng->
txt(
"maps_latitude"));
   136         $tpl->setVariable(
"TXT_LONGITUDE", 
$lng->
txt(
"maps_longitude"));
   137         $tpl->setVariable(
"LOC_DESCRIPTION", 
$lng->
txt(
"maps_std_location_desc"));
   145         $tpl->setVariable(
"PROPERTY_VALUE_LAT", $lat);
   146         $tpl->setVariable(
"PROPERTY_VALUE_LONG", $long);
   147         for ($i = 0; $i <= 18; $i++) {
   151         $map_id = 
"map_" . md5(uniqid());
   163                 array(
"id" => $map_id . 
"_zoom",
   164                 "onchange" => 
"ilUpdateMap('" . $map_id . 
"');")
   167         $tpl->setVariable(
"MAP_ID", $map_id);
   174             $tpl->setVariable(
"TXT_ADDR", 
$lng->
txt(
"address"));
   175             $tpl->setVariable(
"TXT_LOOKUP", 
$lng->
txt(
"maps_lookup_address"));
   176             $tpl->setVariable(
"TXT_ADDRESS", $this->
getAddress());
   177             $tpl->setVariable(
"MAP_ID_ADDR", $map_id);
   178             $tpl->setVariable(
"POST_VAR_ADDR", $this->
getPostVar());
   181                 $tpl->setVariable(
"TEXT", 
$lng->
txt(
"configure_geolocation"));
   186         $map_gui->setMapId($map_id)
   187                 ->setLatitude((
string) $lat)
   188                 ->setLongitude((
string) $long)
   190                 ->setEnableTypeControl(
true)
   191                 ->setEnableLargeMapControl(
true)
   192                 ->setEnableUpdateListener(
true)
   193                 ->setEnableCentralMarker(
true);
   195         $tpl->setVariable(
"MAP", $map_gui->getHtml());
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
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. 
 
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 getMapGUI()
Get an instance of the GUI class. 
 
setVariable($variable, $value='')
Sets a variable value. 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
static getStdGeolocationServer()
Returns the reverse geolocation server to be used in the installation.