Static Public Member Functions

ilGoogleMapUtil Class Reference

Google Map Utility Class. More...

Static Public Member Functions

static isActivated ()
 Checks whether Google Map feature is activated.
static getDefaultSettings ()
 Get default longitude, latitude and zoom.

Detailed Description

Google Map Utility Class.

Author:
Alex Killing <alex.killing@gmx.de>
Version:
$Id$

Definition at line 32 of file class.ilGoogleMapUtil.php.


Member Function Documentation

static ilGoogleMapUtil::getDefaultSettings (  )  [static]

Get default longitude, latitude and zoom.

Returns:
array array("latitude", "longitude", "zoom")

Definition at line 58 of file class.ilGoogleMapUtil.php.

Referenced by ilObjCourseGUI::editMapSettingsObject(), ilObjGroupGUI::editMapSettingsObject(), and ilPersonalProfileGUI::showLocation().

        {
                $gm_set = new ilSetting("google_maps");

                return array(
                        "longitude" => $gm_set->get("std_longitude"),
                        "latitude" => $gm_set->get("std_latitude"),
                        "zoom" => $gm_set->get("std_zoom"));
        }

Here is the caller graph for this function:

static ilGoogleMapUtil::isActivated (  )  [static]

Checks whether Google Map feature is activated.

API key must be provided.

Returns:
boolean activated true/false

Definition at line 41 of file class.ilGoogleMapUtil.php.

Referenced by ilPersonalProfileGUI::__initSubTabs(), ilObjGroupGUI::__setSubTabs(), ilObjCourseGUI::editMapSettingsObject(), ilObjGroupGUI::editMapSettingsObject(), ilObjUserGUI::getPublicProfile(), ilObjCourseGUI::membersMapObject(), ilObjGroupGUI::membersMapObject(), ilObjCourseGUI::setSubTabs(), and ilPersonalProfileGUI::showLocation().

        {
                $gm_set = new ilSetting("google_maps");
                if (trim($gm_set->get("api_key")) != "" &&
                        $gm_set->get("enable"))
                {
                        return true;
                }

                return false;
        }

Here is the caller graph for this function:


The documentation for this class was generated from the following file: