function getDbValue() { if ($this->value) { $value = geodb::getCityId($this->value) . ':' . $this->value; } else { $value = '0:'; } return $value; }
static function __init() { self::$db = new PDO('sqlite:' . patchworkPath('data/geodb.sqlite3')); }