36         $this->tpl = $DIC[
"tpl"];
    37         $this->
ctrl = $DIC->ctrl();
    38         $this->
lng = $DIC->language();
    45         $next_class = $this->
ctrl->getNextClass($this);
    48         $cmd = $this->
ctrl->getCmd();
    50         switch ($next_class) {
    66     public function edit(): void
    79         $values[
"location"][
"latitude"] = $this->content_obj->getLatitude();
    80         $values[
"location"][
"longitude"] = $this->content_obj->getLongitude();
    81         $values[
"location"][
"zoom"] = $this->content_obj->getZoom();
    82         $values[
"width"] = $this->content_obj->getWidth();
    83         $values[
"height"] = $this->content_obj->getHeight();
    85         $values[
"horizontal_align"] = $this->content_obj->getHorizontalAlign();
    87         $this->
form->setValuesByArray($values);
    97         $this->
form->setFormAction($ilCtrl->getFormAction($this));
    98         if ($a_mode == 
"create") {
    99             $this->
form->setTitle($this->
lng->txt(
"cont_insert_map"));
   101             $this->
form->setTitle($this->
lng->txt(
"cont_update_map"));
   106             $this->
lng->txt(
"cont_location"),
   110         $this->
form->addItem($loc_prop);
   114             $this->
lng->txt(
"cont_width"),
   117         $width_prop->setSize(4);
   118         $width_prop->setMaxLength(4);
   119         $width_prop->setRequired(
true);
   120         $width_prop->setMinValue(250);
   121         $this->
form->addItem($width_prop);
   125             $this->
lng->txt(
"cont_height"),
   128         $height_prop->setSize(4);
   129         $height_prop->setMaxLength(4);
   130         $height_prop->setRequired(
true);
   131         $height_prop->setMinValue(200);
   132         $this->
form->addItem($height_prop);
   136             $this->
lng->txt(
"cont_align"),
   140             "Left" => 
$lng->
txt(
"cont_left"),
   141             "Center" => 
$lng->
txt(
"cont_center"),
   142             "Right" => 
$lng->
txt(
"cont_right"),
   143             "LeftFloat" => 
$lng->
txt(
"cont_left_float"),
   144             "RightFloat" => 
$lng->
txt(
"cont_right_float"));
   146         $this->
form->addItem($align_prop);
   150             $this->
lng->txt(
"cont_caption"),
   153         $this->
form->addItem($caption_prop);
   156         if ($a_mode == 
"create") {
   157             $this->
form->addCommandButton(
"create_map", 
$lng->
txt(
"save"));
   158             $this->
form->addCommandButton(
"cancelCreate", 
$lng->
txt(
"cancel"));
   160             $this->
form->addCommandButton(
"update_map", 
$lng->
txt(
"save"));
   161             $this->
form->addCommandButton(
"cancelUpdate", 
$lng->
txt(
"cancel"));
   170         if ($this->
form->checkInput()) {
   173             $this->content_obj->create($this->pg_obj, $this->hier_id, $this->pc_id);
   174             $this->content_obj->setLatitude(
$location[
"latitude"]);
   175             $this->content_obj->setLongitude(
$location[
"longitude"]);
   176             $this->content_obj->setZoom((
int) 
$location[
"zoom"]);
   177             $this->content_obj->setLayout(
   178                 $this->
form->getInput(
"width"),
   179                 $this->
form->getInput(
"height"),
   180                 $this->
form->getInput(
"horizontal_align")
   182             $this->content_obj->setCaption(
   183                 $this->content_obj->handleCaptionInput($this->form->getInput(
"caption"))
   185             $this->updated = $this->pg_obj->update();
   186             if ($this->updated === 
true) {
   187                 $this->
ctrl->returnToParent($this, 
"jump" . $this->hier_id);
   192         $this->
form->setValuesByPost();
   201         if ($this->
form->checkInput()) {
   203             $this->content_obj->setLatitude(
$location[
"latitude"]);
   204             $this->content_obj->setLongitude(
$location[
"longitude"]);
   205             $this->content_obj->setZoom((
int) 
$location[
"zoom"]);
   206             $this->content_obj->setLayout(
   207                 $this->
form->getInput(
"width"),
   208                 $this->
form->getInput(
"height"),
   209                 $this->
form->getInput(
"horizontal_align")
   211             $this->content_obj->setCaption(
   212                 $this->content_obj->handleCaptionInput($this->form->getInput(
"caption"))
   214             $this->updated = $this->pg_obj->update();
   215             if ($this->updated === 
true) {
   216                 $this->
ctrl->returnToParent($this, 
"jump" . $this->hier_id);
   221         $this->
form->setValuesByPost();
 
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...
 
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(ilPageObject $a_pg_obj, ?ilPageContent $a_content_obj, string $a_hier_id, string $a_pc_id="")
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Content object of ilPageObject (see ILIAS DTD). 
 
User Interface for Editing of Page Content Objects (Paragraphs, Tables, ...) 
 
static handleCaptionFormOutput(string $a_text)
 
setContent(string $a_html)
Sets content for standard template. 
 
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD) 
 
ilGlobalTemplateInterface $tpl
 
form( $class_path, string $cmd, string $submit_caption="")
 
This class represents a text area property in a property form. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...