protected function getFieldValue(kScope $scope = null) { if (!$scope) { $scope = new kScope(); } return $scope->getIp(); }
protected function getFieldValue(kScope $scope = null) { kApiCache::addExtraField(kApiCache::ECF_IP); if (!$scope) { $scope = new kScope(); } return $scope->getIp(); }
protected function getFieldValue(kScope $scope = null) { kApiCache::addExtraField(kApiCache::ECF_COUNTRY); if (!$scope) { $scope = new kScope(); } $ip = $scope->getIp(); $ipGeo = kGeoCoderManager::getGeoCoder($this->getGeoCoderType()); $country = $ipGeo->getCountry($ip); return trim(strtolower($country), " \n\r\t"); }
protected function getFieldValue(kScope $scope = null) { kApiCache::addExtraField(kApiCache::ECF_COORDINATES); if (!$scope) { $scope = new kScope(); } $ip = $scope->getIp(); $ipGeo = kGeoCoderManager::getGeoCoder($this->getGeoCoderType()); $coordinates = $ipGeo->getCoordinates($ip); return implode(",", $coordinates); }