/** * _getLocationData * * @return array with location data from Request::post * */ private static function _getLocationData() { $address = (string) Request::post('location_address'); $coordinates = $address ? EventsAdmin::_getCoordinates($address) : Null; return array('deleted' => 0, 'title' => (string) htmlspecialchars(Request::post('location_title')), 'website' => (string) Request::post('location_website'), 'address' => $address, 'lon' => $coordinates ? $coordinates['lon'] : '', 'lat' => $coordinates ? $coordinates['lat'] : ''); }