[ Index ] |
PHP Cross Reference of BuddyPress |
[Source view] [Print] [Project Stats]
BuddyPress bbPress 1.x integration.
File Size: | 552 lines (18 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
BP_Forums_BB_Auth:: (1 method):
update_meta()
BPDB:: (6 methods):
__construct()
has_cap()
init()
escape_deep()
backpress_convert_object()
bp_bb_dbDelta()
Class: BP_Forums_BB_Auth - X-Ref
The bbPress plugin needs this class for its usermeta manipulation.update_meta( $args = '' ) X-Ref |
Update usermeta data. param: string $args Array of arguments. return: bool since: 1.1.0 |
__construct( $dbuser, $dbpassword, $dbname, $dbhost ) X-Ref |
Constructor. since: 1.1.0 |
has_cap( $db_cap, $_table_name='' ) X-Ref |
Determine if a database supports a particular feature. Overridden here to work around differences between bbPress's and WordPress's implementations. In particular, when BuddyPress tries to run bbPress' SQL installation script, the collation check always failed. The capability is long supported by WordPress' minimum required MySQL version, so this is safe. param: string $db_cap See {@link WPDB::has_cap()}. param: string $_table_name See {@link WPDB::has_cap()}. return: bool See {@link WPDB::has_cap()}. since: 1.1.0 |
init( $args ) X-Ref |
Initialize the class variables based on provided arguments. Based on, and taken from, the BackPress class in turn taken from the 1.0 branch of bbPress. param: array $args Array of args to parse. return: array $args. |
escape_deep( $data ) X-Ref |
Stub for escape_deep() compatibility. param: mixed $data See {@link WPDB::escape_deep()}. return: mixed $data See {@link WPDB::escape_deep()}. since: 1.1.0 |
backpress_convert_object( &$object, $output ) X-Ref |
Convert object to given output format. The bbPress plugin needs this to convert vars. param: object $object Object to convert. param: string $output Type of object to return. OBJECT, ARRAY_A, or ARRAY_N. since: 1.1.0 |
bp_bb_dbDelta($queries, $execute = true) X-Ref |
Parse and execute queries for updating a set of database tables. Copied from wp-admin/includes/upgrade.php, this will take care of creating the bbPress stand-alone tables without loading a conflicting WP Admin. param: array $queries See {@link dbDelta()}. param: bool $execute See {@link dbDelta()}. return: array See {@link dbDelta()}. since: 1.5.0 |
bp_forums_load_bbpress() X-Ref |
Bootstrap bbPress 1.x, and manipulate globals to integrate with BuddyPress. return: bool|null Returns false on failure. since: 1.1.0 |
bb_get_current_user() X-Ref |
Get the current bbPress user. return: object $current_user Current user object from WordPress. since: 1.1.0 |
bb_get_user( $user_id ) X-Ref |
Get userdata for a bbPress user. param: int $user_id User ID. return: object User data from WordPress. since: 1.1.0 |
bb_cache_users( $users ) X-Ref |
Cache users. Noop. param: array $users Array of users. since: 1.1.0 |
Generated: Thu Dec 7 01:01:35 2017 | Cross-referenced by PHPXref 0.7.1 |