Overview

Namespaces

  • None
  • WPGMZA
    • CustomFieldFilterWidget
    • Integration
    • MarkerListing
    • Selector

Classes

  • AddMapDialog
  • AdminMarkerDataTable
  • AjaxTable
  • AutoLoader
  • Categories
  • Category
  • CategoryTree
  • CategoryTreeNode
  • ContentEditorMapButton
  • Crud
  • CustomFieldFilter
  • CustomFieldFilterController
  • CustomFieldFilterWidget
  • CustomFields
  • CustomFieldsPage
  • CustomMapObjectFields
  • CustomMarkerFields
  • Database
  • DataTable
  • Distance
  • DOMDocument
  • DOMElement
  • Export
  • Factory
  • FontAwesomeIconPicker
  • GDPRCompliance
  • GlobalSettings
  • GoogleGeocoder
  • GoogleMap
  • GoogleMapsAPILoader
  • GoogleMapsLoader
  • GoogleProMapsLoader
  • Import
  • ImportCSV
  • ImportGPX
  • ImportJSON
  • ImportKML
  • LatLng
  • Map
  • MapSelect
  • MapsEngineDialog
  • Marker
  • MarkerDataTable
  • MarkerFilter
  • MarkerLibraryDialog
  • MarkerListing
  • ModalDialog
  • NominatimGeocodeCache
  • OLLoader
  • OLProLoader
  • Plugin
  • ProAdminMarkerDataTable
  • ProMap
  • ProMarker
  • ProMarkerFilter
  • ProPlugin
  • ProRestAPI
  • Query
  • QueryFragment
  • RestAPI
  • ScriptLoader
  • Strings
  • Table

Functions

  • add_custom_filter_widgets
  • create_marker_instance_delegate
  • custom_field_filter_get_filtered_marker_ids
  • get_custom_field_filter
  • get_custom_field_filter_controller
  • get_custom_field_filter_widget
  • get_marker_custom_fields
  • import_ajax_delete_schedule
  • import_ajax_file_options
  • import_ajax_handle_delete
  • import_ajax_handle_upload
  • import_ajax_import
  • import_ajax_schedule
  • import_cron_import
  • import_cron_schedules
  • import_export_admin_options
  • import_export_admin_tabs
  • import_export_download
  • import_export_get_maps_list
  • import_get_progress
  • import_get_schedule
  • import_mimes
  • import_wp_check_filetype_and_ext
  • load_advanced_menu_page_hooks
  • query_nominatim_cache
  • show_custom_fields_page
  • store_nominatim_cache
  • Overview
  • Namespace
  • Class

Class ImportCSV

CSV importer for WP Google Maps Pro

This handles importing of files.

WPGMZA\Import
Extended by WPGMZA\ImportCSV
Namespace: WPGMZA
Since: 7.0.0
Located at import-export/class.import-csv.php
Methods summary
public
# __construct( string $file = '', string $file_url = '', array $options = array() )

Import constructor.

Import constructor.

Parameters

$file
Optional. Absolute path to file.
$file_url
Optional. URL to file.
$options
Optional. Import options.

Throws

Exception
If unable to load file.

Overrides

WPGMZA\Import::__construct()
protected
# failure( $handle, $row_index )

Appends a line to the log

Appends a line to the log

protected string
# condense_row_ids( $ids )

Turns an array of numerical values, eg 2, 3, 4, 7, 8, 9, 10 and condenses them down insto a string eg 2 - 4, 7 - 10

Turns an array of numerical values, eg 2, 3, 4, 7, 8, 9, 10 and condenses them down insto a string eg 2 - 4, 7 - 10

Returns

string
public string
# get_admin_notices( )

Get the import failure notices

Get the import failure notices

Returns

string
The HTML

Overrides

WPGMZA\Import::get_admin_notices()
protected
# check_options( )

Check options.

Check options.

Throws

Exception
On malformed options.
protected
# parse_file( )

Parse file data.

Parse file data.

Throws

Exception
When no header data found in file.
public string
# admin_options( )

Output admin import options.

Output admin import options.

Returns

string
Options html.
public
# import( )

Import the CSV file.

Import the CSV file.

protected
# clear_map_data( )

Clear map data from applys.

Clear map data from applys.

protected
# create_map( )

Create map.

Create map.

protected
# import_maps( )
protected
# import_markers( )

Import markers.

Import markers.

protected
# import_circles( )

Import circles.

Import circles.

protected
# import_polygons( )

Import polygons.

Import polygons.

protected
# import_polylines( )

Import polylines.

Import polylines.

protected
# import_rectangles( )

Import rectangles.

Import rectangles.

protected
# import_datasets( )

Import datasets.

Import datasets.

Methods inherited from WPGMZA\Import
attempt_set_time_limit(), bail_if_near_time_limit(), check_ids(), geocode(), get_remaining_time(), get_time_limit(), load_file(), onImportComplete(), record_start_time(), set_progress()
Properties summary
protected string $import_type

Import type.

Import type.

The type of import ie. map, marker, polyline etc.

# ''
protected array $header_map

Header map.

Header map.

Maps header key string to array indexes.

# array()
protected $failure_message_by_handle

Error messages by handle

Error messages by handle

#
protected $failed_rows_by_handle
#
Properties inherited from WPGMZA\Import
$db_defaults, $file, $file_data, $file_url, $options
API documentation generated by ApiGen