function getDbValue() { if ($this->value) { $value = geodb::getCityId($this->value) . ':' . $this->value; } else { $value = '0:'; } return $value; }