\GeoMashupUIManager

A base class for managing user interfaces for collecting and storing location.

This could be extended to make the existing editor work for new objects in a separate plugin.

Summary

Methods
Properties
Constants
get_instance()
enqueue_jquery_styles()
enqueue_form_client_items()
save_posted_object_location()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
get_submit_action()
No private properties found
N/A

Methods

get_instance()

get_instance(string $name) : \GeoMashupUIPostManager|\GeoMashupUIUserManager|\GeoMashupUICommentManager

Retrieve a single instaniated subclass by name.

Parameters

string $name

The class name of the manager.

Returns

\GeoMashupUIPostManager|\GeoMashupUIUserManager|\GeoMashupUICommentManager —

The singleton object.

enqueue_jquery_styles()

enqueue_jquery_styles()

Queue UI styles to match the jQuery version.

enqueue_form_client_items()

enqueue_form_client_items()

Queue styles and scripts for the location editor form.

save_posted_object_location()

save_posted_object_location(string $object_name, string $object_id) : boolean|\WP_Error

Save an object location from data posted by the location editor.

Parameters

string $object_name

The name of the object being edited.

string $object_id

The ID of the object being edited.

Returns

boolean|\WP_Error —

True or a WordPress error.

get_submit_action()

get_submit_action()

Determine the appropriate action from posted data.