mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 10:08:38 +00:00
23 lines
358 B
PHP
23 lines
358 B
PHP
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/*
|
|
Lookup functions for subdivisions
|
|
*/
|
|
|
|
|
|
class Subdivisions {
|
|
|
|
public function get_primary_subdivision_name($dxcc) {
|
|
switch($dxcc) {
|
|
case '1':
|
|
return 'Province';
|
|
case '291':
|
|
return 'US State';
|
|
case '339':
|
|
return 'Prefecture';
|
|
}
|
|
return 'State';
|
|
}
|
|
|
|
}
|