ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilGoogleMapUtil Class Reference

Google Map Utility Class. More...

+ Collaboration diagram for ilGoogleMapUtil:

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..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
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 ilObjGroupGUI\editMapSettingsObject(), ilObjCourseGUI\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\editMapSettingsObject(), ilObjCourseGUI\editMapSettingsObject(), ilPublicUserProfileGUI\getHTML(), ilObjGroupGUI\membersMapObject(), ilObjCourseGUI\membersMapObject(), ilObjCourseGUI\setSubTabs(), ilObjGroupGUI\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: