PKPUsageStatsPlugin::getGeoLocationTool PHP Method

getGeoLocationTool() public method

Get the geolocation tool to process geo localization data.
public getGeoLocationTool ( ) : mixed
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;
        }
    }