\GeoMashupQuery

Class for query handling namespace

Summary

Methods
Properties
Constants
strip_brackets()
strip_map_shortcodes()
generate_object_html()
set_the_comment()
have_comments()
list_comments()
set_the_user()
have_users()
list_users()
generate_location_json()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

strip_brackets()

strip_brackets(string $content) : string

Strip content in square brackets.

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

Parameters

string $content

Content to strip square brackets from

Returns

string —

Content minus square brackets

strip_map_shortcodes()

strip_map_shortcodes(string $content) : string

Strip map shortcodes.

Parameters

string $content

Returns

string —

Content without map shortcodes.

generate_object_html()

generate_object_html()

Use templates to output content for objects.

set_the_comment()

set_the_comment(object $comment)

Set the comment global.

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

Parameters

object $comment

The comment object to make global.

have_comments()

have_comments() : boolean

Wrap access to comments global.

Returns

boolean —

Whether there are any comments to be listed.

list_comments()

list_comments(string|array $args)

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

Parameters

string|array $args

Formatting options

set_the_user()

set_the_user(object $user)

Set the user global.

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

Parameters

object $user

The user object to make global.

have_users()

have_users()

Wrap access to users global.

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

list_users()

list_users(string|array $args)

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

Parameters

string|array $args

Formatting options

generate_location_json()

generate_location_json()

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