Exemplo n.º 1
0
 /**
  * Get the geolocation tool to process geo localization
  * data.
  * @return mixed GeoLocationTool object or null
  */
 function &getGeoLocationTool()
 {
     /** Geo location tool wrapper class. If changing the geo location tool
      * is required, change the code inside this class, keeping the public
      * interface. */
     $this->import('GeoLocationTool');
     $null = null;
     $tool = new GeoLocationTool();
     if ($tool->isPresent()) {
         return $tool;
     } else {
         return $null;
     }
 }