BackPress enqueued dependiences class.
package | BackPress |
---|---|
uses | |
since | r74 |
WP_Dependencies()
__construct()
add(string $handle, string $src, array $deps= array()
, string $ver= false
, $args= null
) : array
Adds the item only if no item of that name already exists
string
handle Script name
string
src Script url
array
deps (optional) Array of script names on which this script depends
string
ver (optional) Script version (used for cache busting)
array
Hierarchical array of dependenciesadd_data(string $handle, string $data_name, array $data) : boolean
Adds data only if script has already been added
string
handle Script name
string
data_name Name of object in which to store extra data
array
data Array of extra data
boolean
successall_deps(mixed $handles, boolean $recursion= false
, $group= false
)
Recursively builds array of items to process taking dependencies into account. Does NOT catch infinite loops.
mixed
handles Accepts (string) dep name or (array of strings) dep names
boolean
recursion Used internally when function calls itself
dequeue($handles)
do_item($handle)
do_items(mixed $handles= false
, $group= false
) : array
Process the items passed to it or the queue. Processes all dependencies.
mixed
handles (optional) items to be processed. (void) processes queue, (string) process that item, (array of strings) process those items
array
Items that have been processedenqueue($handles)
query($handle, $list = 'registered'
)
remove($handles)
set_group($handle, $recursion, $group)
$args
array()
$done
array()
$group
0
$groups
array()
$queue
array()
$registered
array()
$to_do
array()