[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-forums/bbpress/bb-includes/backpress/ -> interface.bp-options.php (summary)

BackPress Options API. This is in place for the multiple projects that use BackPress to have options and transients but not rely on the WordPress options API.

File Size: 128 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

BP_Options_Interface:: (5 methods):
  prefix()
  get()
  add()
  update()
  delete()

BP_Transients_Interface:: (4 methods):
  prefix()
  get()
  set()
  delete()


Interface: BP_Options_Interface  - X-Ref

Interface for BP_Options;

A BP_Options class must be implemented by the host application for
BackPress to operate. This interface supplies a boilerplate for that
class but can only be implemented in PHP 5 environments.

prefix()   X-Ref
Retrieve the prefix to be appended to the beginning of the option key.

since: r132

get( $option )   X-Ref
Retrieve the value of the option.

Here is a minimum set of values required (from bbPress)
- application_id     : An id for the application, use this when running multiple applications from the same code
- application_uri    : The base URI of the application
- cron_uri           : The URI that processes cron jobs
- wp_http_version    : This is the version sent when making remote HTTP requests
- hash_function_name : The function used to create unique hashes ( see wp_hash() )
- language_locale    : The current locale
- language_directory : The directory containing language (po, mo) files
- charset            : The charset to use when appropriate (usually UTF-8)
- gmt_offset         : The GMT offset as a positive or negative float
- timezone_string    : The timezone in Zoneinfo format

param: string $option Option name.
since: r132

add( $option, $value )   X-Ref
Adds an option with given value.

param: string $option Option name.
param: mixed $value Option value.
since: r132

update( $option, $value )   X-Ref
Updates an existing option with a given value.

param: string $option Option name.
param: mixed $value Option value.
since: r132

delete( $option )   X-Ref
Deletes an existing option.

param: string $option Option name.
since: r132

Interface: BP_Transients_Interface  - X-Ref

Interface for BP_Transients;

A BP_Transients class must be implemented by the host application for
BackPress to operate. This interface supplies a boilerplate for that
class but can only be implemented in PHP 5 environments.

prefix()   X-Ref
Retrieve the prefix to be appended to the beginning of the transient key.

since: r205

get( $transient )   X-Ref
Retrieve the value of the transient.

param: string $transient Transient name.
since: r205

set( $transient, $value, $expiration = 0 )   X-Ref
Sets the value of a transient with a given value.

param: string $transient Transient name.
param: mixed $value Transient value.
param: integer $expiration The time in seconds the transient will be held for. Default is 0, meaning it is held indefinitely.
since: r205

delete( $transient )   X-Ref
Deletes an existing transient.

param: string $transient Transient name.
since: r205



Generated: Fri Nov 22 01:00:56 2024 Cross-referenced by PHPXref 0.7.1