PKPUsageStatsPlugin::getGeoLocationTool PHP Méthode

getGeoLocationTool() public méthode

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