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