/gp-includes/meta.php

Description
Functions
gp_append_meta (line 130)

Adds an objects meta data to the object

This is the only function that should add to user / topic - NOT gpdb::prepared

void gp_append_meta ( $object,  $type)
  • $object
  • $type
gp_cache_all_options (line 291)
void gp_cache_all_options ()
gp_delete_meta (line 74)

Deletes meta data from the database

void gp_delete_meta ([ $object_id = 0],  $meta_key,  $meta_value,  $type, [ $global = false])
  • $object_id
  • $meta_key
  • $meta_value
  • $type
  • $global
gp_delete_option (line 370)
void gp_delete_option ( $option, [ $value = ''])
  • $option
  • $value
gp_get_option (line 213)

Returns the requested bbPress option from the meta table or the $bb object

  • return: The value of the option
mixed gp_get_option (string $option)
  • string $option: The option to be echoed
gp_get_option_from_db (line 257)

Retrieves and returns the requested bbPress option from the meta table

void gp_get_option_from_db (string $option)
  • string $option: The option to be echoed
gp_option (line 202)

Echoes the requested bbPress option by calling gp_get_option()

void gp_option (string $option)
  • string $option: The option to be echoed
gp_sanitize_meta_key (line 9)

Meta and options functions

void gp_sanitize_meta_key ( $key)
  • $key
gp_update_meta (line 18)

Adds and updates meta data in the database

void gp_update_meta ([ $object_id = 0],  $meta_key,  $meta_value,  $type, [ $global = false])
  • $object_id
  • $meta_key
  • $meta_value
  • $type
  • $global
gp_update_option (line 366)
void gp_update_option ( $option,  $value)
  • $option
  • $value
_gp_append_meta_sort (line 187)

Sorts meta keys by length to ensure $appended_object->{$gpdb->prefix} key overwrites $appended_object->key as desired

void _gp_append_meta_sort ( $a,  $b)
  • $a
  • $b

Documentation generated on Fri, 18 May 2012 01:46:03 +0100 by phpDocumentor 1.4.3