protected function getFieldValue(kScope $scope = null)
 {
     if (!$scope) {
         $scope = new kScope();
     }
     return $scope->getIp();
 }
Exemplo n.º 2
0
 protected function getFieldValue(kScope $scope = null)
 {
     kApiCache::addExtraField(kApiCache::ECF_IP);
     if (!$scope) {
         $scope = new kScope();
     }
     return $scope->getIp();
 }
Exemplo n.º 3
0
 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");
 }
Exemplo n.º 4
0
 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);
 }