/** * Get the country data * * @param object $event the event object * @param string $ipAddress the ip address * @return array the details requested */ public function onGetCountry($event, $ipAddress = null) { $IpLocation = new IpLocation(); $return = $IpLocation->getCountryData($ipAddress); unset($IpLocation); return $return; }