3declare(strict_types=1);
 
   38            "tpl.google_map.html",
 
   55        foreach ($this->user_marker as $user_id) {
 
   58                if ($user->getLatitude() != 0 && $user->getLongitude() != 0 &&
 
   59                    $user->getPref(
"public_location") == 
"y") {
 
   60                    $js_tpl->setCurrentBlock(
"user_marker");
 
   65                    $js_tpl->setVariable(
"CNT", $cnt);
 
   67                    $js_tpl->setVariable(
"ULAT", htmlspecialchars($user->getLatitude()));
 
   68                    $js_tpl->setVariable(
"ULONG", htmlspecialchars($user->getLongitude()));
 
   69                    $info = htmlspecialchars($user->getFirstName() . 
" " . $user->getLastName());
 
   71                    if ($user->getPref(
"public_institution") == 
"y") {
 
   72                        $info .= $delim . htmlspecialchars($user->getInstitution());
 
   75                    if ($user->getPref(
"public_department") == 
"y") {
 
   76                        $info .= $delim . htmlspecialchars($user->getDepartment());
 
   79                    if ($user->getPref(
"public_street") == 
"y") {
 
   80                        $info .= $delim . htmlspecialchars($user->getStreet());
 
   82                    if ($user->getPref(
"public_zip") == 
"y") {
 
   83                        $info .= $delim . htmlspecialchars($user->getZipcode());
 
   86                    if ($user->getPref(
"public_city") == 
"y") {
 
   87                        $info .= $delim . htmlspecialchars($user->getCity());
 
   90                    if ($user->getPref(
"public_country") == 
"y") {
 
   91                        $info .= $delim . htmlspecialchars($user->getCountry());
 
   99                        $user->getPersonalPicturePath(
"xsmall")
 
  101                    $js_tpl->parseCurrentBlock();
 
  107        $html_tpl->setVariable(
"MAP_ID", $this->
getMapId());
 
  108        $html_tpl->setVariable(
"WIDTH", $this->
getWidth());
 
  109        $html_tpl->setVariable(
"HEIGHT", $this->
getHeight());
 
  111        $js_tpl->setVariable(
"MAP_ID", $this->
getMapId());
 
  114        $js_tpl->setVariable(
"ZOOM", (
int) $this->
getZoom());
 
  118        $js_tpl->setVariable(
"TYPE_CONTROL", $type_control);
 
  122        $js_tpl->setVariable(
"NAV_CONTROL", $nav_control);
 
  126        $js_tpl->setVariable(
"UPDATE_LISTENER", $update_listener);
 
  136        $this->tpl->addOnLoadCode($js_tpl->get());
 
  138        return $html_tpl->get();
 
  147            "tpl.google_map_user_list.html",
 
  154        foreach ($this->user_marker as $user_id) {
 
  157                $this->css_row = ($this->css_row != 
"tblrow1_mo")
 
  160                if ($user->getLatitude() != 0 && $user->getLongitude() != 0
 
  161                    && $user->getPref(
"public_location") == 
"y") {
 
  162                    $list_tpl->setCurrentBlock(
"item");
 
  163                    $list_tpl->setVariable(
"MARKER_CNT", $cnt);
 
  164                    $list_tpl->setVariable(
"MAP_ID", $this->
getMapId());
 
  167                    $list_tpl->setCurrentBlock(
"item_no_link");
 
  169                $list_tpl->setVariable(
"CSS_ROW", $this->css_row);
 
  170                $list_tpl->setVariable(
"TXT_USER", $user->getLogin());
 
  171                $list_tpl->setVariable(
 
  173                    $user->getPersonalPicturePath(
"xxsmall")
 
  175                $list_tpl->parseCurrentBlock();
 
  176                $list_tpl->touchBlock(
"row");
 
  180        return $list_tpl->get();
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getUserListHtml()
Get User List HTML (to be displayed besides the map)
 
User interface class for maps.
 
getEnableLargeMapControl()
 
getEnableNavigationControl()
 
getEnableUpdateListener()
 
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data
 
special template class to simplify handling of ITX/PEAR
 
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc