ILIAS  Release_4_2_x_branch Revision 61807
 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 57 of file class.ilGoogleMapUtil.php.

Referenced by ilPersonalProfileGUI\addLocationToForm(), ilObjGroupGUI\editMapSettingsObject(), and ilObjCourseGUI\editMapSettingsObject().

{
$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\addLocationToForm(), ilObjGroupGUI\editMapSettingsObject(), ilObjCourseGUI\editMapSettingsObject(), ilPublicUserProfileGUI\getEmbeddable(), ilObjGroupGUI\membersMapObject(), ilObjCourseGUI\membersMapObject(), ilPersonalProfileGUI\savePersonalData(), ilObjCourseGUI\setSubTabs(), ilObjGroupGUI\setSubTabs(), and ilPersonalProfileGUI\showPublicProfileFields().

{
$gm_set = new ilSetting("google_maps");
if ($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: