Lines Matching refs:record
73 $record = new geoiprecord;
76 $record->country_code = $gi->GEOIP_COUNTRY_CODES[$char];
77 $record->country_code3 = $gi->GEOIP_COUNTRY_CODES3[$char];
78 $record->country_name = $gi->GEOIP_COUNTRY_NAMES[$char];
79 $record->continent_code = $gi->GEOIP_CONTINENT_CODES[$char];
90 $record->region = substr($record_buf, $record_buf_pos, $str_length);
101 $record->city = substr($record_buf, $record_buf_pos, $str_length);
112 $record->postal_code = substr($record_buf, $record_buf_pos, $str_length);
123 $record->latitude = ($latitude / 10000) - 180;
128 $record->longitude = ($longitude / 10000) - 180;
131 if ($record->country_code == "US") {
136 $record->metro_code = $record->dma_code = floor($metroarea_combo / 1000);
137 $record->area_code = $metroarea_combo % 1000;
143 return $record;