|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| distance (Net_GeoIP_Location $loc) | |
| serialize () | |
| unserialize ($serialized) | |
| set ($name, $val) | |
| __set ($name, $val) | |
| getData () | |
| __get ($name) | |
| __toString () | |
| __isset ($name) | |
Protected Attributes | |
| $aData | |
Definition at line 50 of file Location.php.
| __get | ( | $ | name | ) |
Magic method to get value from $this->aData array
| string | $name | The var to get |
Definition at line 166 of file Location.php.

| __isset | ( | $ | name | ) |
Magic method makes it possible to check if specific record exists and also makes it possible to use empty() on any property
| strign | $name | The name of the var to check |
Definition at line 196 of file Location.php.

| __set | ( | $ | name, |
| $ | val | ||
| ) |
Definition at line 142 of file Location.php.
| __toString | ( | ) |
String representation of the object
Definition at line 181 of file Location.php.
| distance | ( | Net_GeoIP_Location $ | loc | ) |
Calculate the distance in km between two points.
| Net_GeoIP_Location | $loc | The other point to which distance will be calculated. |
Definition at line 73 of file Location.php.
| getData | ( | ) |
| serialize | ( | ) |
magic method to make it possible to store this object in cache when automatic serialization is on Specifically it makes it possible to store this object in memcache
Definition at line 107 of file Location.php.
| set | ( | $ | name, |
| $ | val | ||
| ) |
Setter for elements of $this->aData array
| string | $name | The variable to set |
| string | $val | The value |
Definition at line 133 of file Location.php.
| unserialize | ( | $ | serialized | ) |
unserialize a representation of the object
| array | $serialized | The serialized representation of the location |
Definition at line 119 of file Location.php.
$aData [protected] |
array( 'countryCode' => null, 'countryCode3' => null, 'countryName' => null, 'region' => null, 'city' => null, 'postalCode' => null, 'latitude' => null, 'longitude' => null, 'areaCode' => null, 'dmaCode' => null )
Definition at line 52 of file Location.php.