[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-forums/bbpress/bb-includes/backpress/ -> class.wp-dependencies.php (summary)

BackPress Scripts enqueue. These classes were refactored from the WordPress WP_Scripts and WordPress script enqueue API.

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

Defines 2 classes

WP_Dependencies:: (12 methods):
  __construct()
  WP_Dependencies()
  do_items()
  do_item()
  all_deps()
  add()
  add_data()
  remove()
  enqueue()
  dequeue()
  query()
  set_group()

_WP_Dependency:: (3 methods):
  __construct()
  _WP_Dependency()
  add_data()


Class: WP_Dependencies  - X-Ref

BackPress enqueued dependiences class.

__construct()   X-Ref
No description

WP_Dependencies()   X-Ref
No description

do_items( $handles = false, $group = false )   X-Ref
Do the dependencies

Process the items passed to it or the queue.  Processes all dependencies.

param: mixed handles (optional) items to be processed.  (void) processes queue, (string) process that item, (array of strings) process those items
return: array Items that have been processed

do_item( $handle )   X-Ref
No description

all_deps( $handles, $recursion = false, $group = false )   X-Ref
Determines dependencies

Recursively builds array of items to process taking dependencies into account.  Does NOT catch infinite loops.

param: mixed handles Accepts (string) dep name or (array of strings) dep names
param: bool recursion Used internally when function calls itself

add( $handle, $src, $deps = array()   X-Ref
Adds item

Adds the item only if no item of that name already exists

param: string handle Script name
param: string src Script url
param: array deps (optional) Array of script names on which this script depends
param: string ver (optional) Script version (used for cache busting)
return: array Hierarchical array of dependencies

add_data( $handle, $data_name, $data )   X-Ref
Adds extra data

Adds data only if script has already been added

param: string handle Script name
param: string data_name Name of object in which to store extra data
param: array data Array of extra data
return: bool success

remove( $handles )   X-Ref
No description

enqueue( $handles )   X-Ref
No description

dequeue( $handles )   X-Ref
No description

query( $handle, $list = 'registered' )   X-Ref
No description

set_group( $handle, $recursion, $group )   X-Ref
No description

Class: _WP_Dependency  - X-Ref

__construct()   X-Ref
No description

_WP_Dependency()   X-Ref
No description

add_data( $name, $data )   X-Ref
No description



Generated: Sun Dec 22 01:00:54 2024 Cross-referenced by PHPXref 0.7.1