GeoMashup
[ class tree: GeoMashup ] [ index: GeoMashup ] [ all elements ]

Class: GeoMashupPostUIManager

Source Location: /geo-mashup-ui-managers.php

Class Overview

GeoMashupUIManager
   |
   --GeoMashupPostUIManager

A manager for post/page location user interfaces.


Author(s):

Methods


Inherited Methods

Class: GeoMashupUIManager

GeoMashupUIManager::enqueue_form_client_items()
Queue styles and scripts for the location editor form.
GeoMashupUIManager::enqueue_jquery_styles()
Queue UI styles to match the jQuery version.
GeoMashupUIManager::get_instance()
Retrieve a single instaniated subclass by name.
GeoMashupUIManager::save_posted_object_location()
Save an object location from data posted by the location editor.

Class Details

[line 360]
A manager for post/page location user interfaces.

Singleton instantiated immediately.




Tags:

since:  1.3
access:  public


[ Top ]


Class Methods


static method get_instance [line 377]

static GeoMashupPostUIManager get_instance( )

Get the single instance of this class.



Tags:

return:  The instance.
since:  1.3
access:  public
uses:  GeoMashupUIManager::get_instance()


Overrides GeoMashupUIManager::get_instance() (Retrieve a single instaniated subclass by name.)

[ Top ]

constructor __construct [line 386]

GeoMashupPostUIManager __construct( )

PHP5 Constructor



Tags:

since:  1.3
access:  public


[ Top ]

method admin_menu [line 488]

void admin_menu( )

Add a location meta box to the post editors.

admin_menu action called by Wordpress.




Tags:

since:  1.3
access:  public


[ Top ]

method admin_print_scripts [line 641]

void admin_print_scripts( $not_used)

Add Browser-uploaded KML to the location editor map.

admin_print_scripts action called by WordPress.




Tags:

since:  1.3
access:  public


Parameters:

   $not_used  

[ Top ]

method content_save_pre [line 568]

void content_save_pre( $content)

Extract inline save location shortcodes from post content before it is saved.

content_save_pre filter called by Wordpress.




Tags:

since:  1.3
access:  public


Parameters:

   $content  

[ Top ]

method enqueue_scripts [line 457]

void enqueue_scripts( )



Tags:

access:  public


[ Top ]

method init [line 403]

void init( )

Initialize for use in relevant post editing requests.

init action called by WordPress.




Tags:

since:  1.3
access:  public
uses:  apply_filters - geo_mashup_load_location_editor Returns a boolean that loads the editor when true.


[ Top ]

method media_meta [line 623]

void media_meta( $content, $post)

Add Flash-uploaded KML to the location editor map.

media_meta filter called by WordPress.




Tags:

since:  1.3
access:  public


Parameters:

   $content  
   $post  

[ Top ]

method print_form [line 502]

void print_form( )

Print the post editor form.



Tags:

since:  1.3
access:  public
uses:  edit-form.php


[ Top ]

method replace_save_pre_shortcode [line 583]

The replace_save_pre_shortcode( array $shortcode_match)

Store the inline location from a save location shortcode before it is removed.



Tags:

return:  matched content, or an empty string if it was a save location shortcode.
since:  1.3
access:  public


Parameters:

array   $shortcode_match  

[ Top ]

method save_post [line 535]

bool|WP_Error save_post( id $post_id, object $post)

When a post is saved, save any posted location for it.

save_post action called by WordPress.




Tags:

since:  1.3
access:  public
uses:  GeoMashupDB::set_object_location()


Parameters:

id   $post_id  
object   $post  

[ Top ]

method save_posted_object_location [line 518]

bool|WP_Error save_posted_object_location( id $post_id)

Save a posted post or page location.



Tags:

since:  1.3
access:  public
uses:  GeoMashupUIManager::save_posted_object_location()


Overrides GeoMashupUIManager::save_posted_object_location() (Save an object location from data posted by the location editor.)

Parameters:

id   $post_id  

[ Top ]

method upload_mimes [line 664]

void upload_mimes( $mimes)

Add geo mime types to allowable uploads.

upload_mimes filter called by WordPress.




Tags:

since:  1.3
access:  public


Parameters:

   $mimes  

[ Top ]

method wp_handle_upload [line 679]

void wp_handle_upload( $args)

If an upload is KML, put the URL in an option to be loaded in the response

wp_handle_upload filter called by WordPress.




Tags:

since:  1.3
access:  public


Parameters:

   $args  

[ Top ]


Documentation generated on Sat, 09 Jul 2011 21:54:47 -0700 by phpDocumentor 1.4.3