# Class CustomMapObjectFields

This class deals with custom fields on a specific map object (marker, polygon, polyline, etc.)

  WPGMZA\CustomMapObjectFields implements IteratorAggregate, JsonSerializable, Countable

#### Direct known subclasses

WPGMZA\CustomMarkerFields
Namespace: WPGMZA
Located at custom-fields/class.custom-map-object-fields.php

Methods summary
`public `WPGMZA\CustomFields`` | # `__construct( $object_id )` Constructor. DO NOT call this directly. Use the hooks, for example wpgmza_get_marker_custom_fields Constructor. DO NOT call this directly. Use the hooks, for example wpgmza_get_marker_custom_fields #### Returns `WPGMZA\CustomFields`
`public` | # `count( )` #### Implementation of `Countable::count()`
`public ArrayIterator` | # `getIterator( )` Get iterator for looping over fields with foreach Get iterator for looping over fields with foreach #### Returns ArrayIterator #### Implementation of `IteratorAggregate::getIterator()`
`public array` | # `jsonSerialize( )` Gets the fields to be serialized as JSON, useful for export Gets the fields to be serialized as JSON, useful for export #### Returns array #### Implementation of `JsonSerializable::jsonSerialize()`
`public boolean` | # `__isset( $name )` Returns true if the named meta field is set Returns true if the named meta field is set #### Returns boolean
`public mixed` | # `__get( $name )` Gets the named meta field from this objects cache Gets the named meta field from this objects cache #### Returns mixed
`public` | # `__set( $name, $value )` Sets the named meta field in this objects cache and the database Sets the named meta field in this objects cache and the database
`public` | # `__unset( $name )` Removes the named meta field from the cache and deletes it from the database Removes the named meta field from the cache and deletes it from the database
`public` | # `remove( )`
`public string` | # `html( )` Returns the default HTML for the custom fields (front end) TODO: This should be changed to use DOMDocument instead of plain strings, it's vulnerable to XSS attacks through UGM at the moment. Returns the default HTML for the custom fields (front end) TODO: This should be changed to use DOMDocument instead of plain strings, it's vulnerable to XSS attacks through UGM at the moment. #### Returns string
`public static string` | # `adminHtml( )` Shows the admin controls for these custom fields Shows the admin controls for these custom fields #### Returns string

Properties summary
`protected static` | $field_names_by_id | # `null`
`protected static` | $field_ids_by_name | # `null`
`protected` | $meta_table_name | # `null`