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

Class: GeoMashupQuery

Source Location: /geo-query.php

Class Overview


Class for query handling namespace


Author(s):

Methods



Class Details

[line 23]
Class for query handling namespace



Tags:

since:  1.2
access:  public


[ Top ]


Class Methods


static method generate_location_json [line 226]

static void generate_location_json( )

Run a query for object locations from GET parameters and print JSON results.



Tags:

since:  1.2
access:  public


[ Top ]

static method generate_object_html [line 57]

static void generate_object_html( )

Use templates to output content for objects.



Tags:

since:  1.3
access:  public


[ Top ]

static method have_comments [line 128]

static bool have_comments( )

Wrap access to comments global.



Tags:

return:  Whether there are any comments to be listed.
since:  1.3
access:  public


[ Top ]

static method have_users [line 187]

static bool have_users( )

Wrap access to users global.

Probably only Geo Mashup using it here for a templated list of users.




Tags:

return:  Whether there are any users to be listed.
since:  1.3
access:  public


[ Top ]

static method list_comments [line 143]

static void list_comments( [string|array $args = ''])

A wrapper for wp_list_comments when it exists, otherwise a simple comment loop.



Tags:

see:  wp_list_comments()
since:  1.3
access:  public


Parameters:

string|array   $args   Formatting options

[ Top ]

static method list_users [line 200]

static void list_users( [string|array $args = ''])

A simple user loop that takes a callback option for formatting.



Tags:

since:  1.3
access:  public


Parameters:

string|array   $args   Formatting options

[ Top ]

static method set_the_comment [line 117]

static void set_the_comment( object $comment)

Set the comment global.

Not sure why WP 2.7 comment templating requires this for callbacks, but it does.




Tags:

since:  1.3
access:  public


Parameters:

object   $comment   The comment object to make global.

[ Top ]

static method set_the_user [line 174]

static void set_the_user( object $user)

Set the user global.

Probably only Geo Mashup using it here for a templated list of users.




Tags:

since:  1.3
access:  public


Parameters:

object   $user   The user object to make global.

[ Top ]

static method strip_brackets [line 36]

static string strip_brackets( string $content)

Strip content in square brackets.

Shortcodes are not registered in the bare-bones query environments, but we can strip all bracketed content.




Tags:

return:  Content minus square brackets
since:  1.3
access:  public


Parameters:

string   $content   Content to strip square brackets from

[ Top ]

static method strip_map_shortcodes [line 48]

static string strip_map_shortcodes( string $content)

Strip map shortcodes.



Tags:

return:  Content without map shortcodes.
since:  1.3
access:  public


Parameters:

string   $content  

[ Top ]


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