[ Index ]

PHP Cross Reference of BackPress

title

Body

[close]

/includes/ -> 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

since: r132
param: string $option Option name.

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

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

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

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

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

since: r132
param: string $option Option name.

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.

since: r205
param: string $transient Transient name.

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

since: r205
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.

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

since: r205
param: string $transient Transient name.



Generated: Wed Dec 19 01:01:51 2018 Cross-referenced by PHPXref 0.7.1