private function debugData() {

		$state           = new \stdClass;
		$state->names    = isset( $_REQUEST['geot_state'] ) ? [ filter_var( $_REQUEST['geot_state'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ] : '';
		$state->iso_code = isset( $_REQUEST['geot_state_code'] ) ? filter_var( $_REQUEST['geot_state_code'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : '';

		$country = new \stdClass;

		$country->names = [ filter_var( $_REQUEST['geot_debug'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ];
		$continent      = new \stdClass;

		$continent->names  = isset( $_REQUEST['geot_continent'] ) ? [ filter_var( $_REQUEST['geot_continent'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ] : '';
		$country->iso_code = isset( $_REQUEST['geot_debug_iso'] ) ? filter_var( $_REQUEST['geot_debug_iso'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : '';
		$city              = new \stdClass;

		$city->names = isset( $_REQUEST['geot_city'] ) ? [ filter_var( $_REQUEST['geot_city'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ] : '';
		$city->zip   = isset( $_REQUEST['geot_zip'] ) ? filter_var( $_REQUEST['geot_zip'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : '';

		$geolocation                  = new \stdClass();
		$geolocation->accuracy_radius = '';
		$geolocation->longitude       = '';
		$geolocation->latitude        = '';
		$geolocation->time_zone       = '';

		$this->user_data[ $this->cache_key ] = new GeotRecord( (object) [
			'country'     => $country,
			'city'        => $city,
			'state'       => $state,
			'continent'   => $continent,
			'geolocation' => $geolocation,
		] );

		return $this->user_data[ $this->cache_key ];
	}
private function debugData() {

		$state           = new \stdClass;
		$state->names    = isset( $_REQUEST['geot_state'] ) ? [ filter_var( $_REQUEST['geot_state'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ] : '';
		$state->iso_code = isset( $_REQUEST['geot_state_code'] ) ? filter_var( $_REQUEST['geot_state_code'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : '';

		$country = new \stdClass;

		$country->names = [ filter_var( $_REQUEST['geot_debug'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ];
		$continent      = new \stdClass;

		$continent->names  = isset( $_REQUEST['geot_continent'] ) ? [ filter_var( $_REQUEST['geot_continent'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ] : '';
		$country->iso_code = isset( $_REQUEST['geot_debug_iso'] ) ? filter_var( $_REQUEST['geot_debug_iso'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : '';
		$city              = new \stdClass;

		$city->names = isset( $_REQUEST['geot_city'] ) ? [ filter_var( $_REQUEST['geot_city'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ] : '';
		$city->zip   = isset( $_REQUEST['geot_zip'] ) ? filter_var( $_REQUEST['geot_zip'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : '';

		$geolocation                  = new \stdClass();
		$geolocation->accuracy_radius = '';
		$geolocation->longitude       = '';
		$geolocation->latitude        = '';
		$geolocation->time_zone       = '';

		$this->user_data[ $this->cache_key ] = new GeotRecord( (object) [
			'country'     => $country,
			'city'        => $city,
			'state'       => $state,
			'continent'   => $continent,
			'geolocation' => $geolocation,
		] );

		return $this->user_data[ $this->cache_key ];
	}
private function debugData ( ) { $ state = new \ stdClass ; $ state -> names = isset ( $ _REQUEST [ 'geot_state' ] ) ? [ filter_var ( $ _REQUEST [ 'geot_state' ] , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ] : '' ; $ state -> iso_code = isset ( $ _REQUEST [ 'geot_state_code' ] ) ? filter_var ( $ _REQUEST [ 'geot_state_code' ] , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : '' ; $ country = new \ stdClass ; $ country -> names = [ filter_var ( $ _REQUEST [ 'geot_debug' ] , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ] ; $ continent = new \ stdClass ; $ continent -> names = isset ( $ _REQUEST [ 'geot_continent' ] ) ? [ filter_var ( $ _REQUEST [ 'geot_continent' ] , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ] : '' ; $ country -> iso_code = isset ( $ _REQUEST [ 'geot_debug_iso' ] ) ? filter_var ( $ _REQUEST [ 'geot_debug_iso' ] , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : '' ; $ city = new \ stdClass ; $ city -> names = isset ( $ _REQUEST [ 'geot_city' ] ) ? [ filter_var ( $ _REQUEST [ 'geot_city' ] , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) ] : '' ; $ city -> zip = isset ( $ _REQUEST [ 'geot_zip' ] ) ? filter_var ( $ _REQUEST [ 'geot_zip' ] , FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : '' ; $ geolocation = new \ stdClass ( ) ; $ geolocation -> accuracy_radius = '' ; $ geolocation -> longitude = '' ; $ geolocation -> latitude = '' ; $ geolocation -> time_zone = '' ; $ this -> user_data [ $ this -> cache_key ] = new GeotRecord ( ( object ) [ 'country' => $ country , 'city' => $ city , 'state' => $ state , 'continent' => $ continent , 'geolocation' => $ geolocation , ] ) ; return $ this -> user_data [ $ this -> cache_key ] ; }
Return debug data set in query vars
Return debug data set in query vars