Class WP_Scripts

Description

BackPress Scripts enqueue class.

Located in /includes/class.wp-scripts.php (line 19)

WP_Dependencies
   |
   --WP_Scripts
Variable Summary
Method Summary
WP_Scripts __construct ()
void all_deps ( $handles, [ $recursion = false], [ $group = false])
void do_footer_items ()
void do_head_items ()
void do_item ( $handle, [ $group = false])
void in_default_dir ( $src)
bool localize (string $handle, string $object_name, array $l10n)
array print_scripts ([mixed $handles = false], [int $group = false])
void print_scripts_l10n ( $handle, [ $echo = true])
void reset ()
void set_group ( $handle,  $recursion, [ $group = false])
Variables
mixed $base_url (line 20)
mixed $concat = '' (line 24)
mixed $concat_version = '' (line 25)
mixed $content_url (line 21)
mixed $default_dirs (line 31)
mixed $default_version (line 22)
mixed $do_concat = false (line 26)
mixed $ext_handles = '' (line 29)
mixed $ext_version = '' (line 30)
mixed $in_footer = array() (line 23)
mixed $print_code = '' (line 28)
mixed $print_html = '' (line 27)

Inherited Variables

Inherited from WP_Dependencies

WP_Dependencies::$args
WP_Dependencies::$done
WP_Dependencies::$group
WP_Dependencies::$groups
WP_Dependencies::$queue
WP_Dependencies::$registered
WP_Dependencies::$to_do
Methods
Constructor __construct (line 33)
WP_Scripts __construct ()

Redefinition of:
WP_Dependencies::__construct()
all_deps (line 157)
void all_deps ( $handles, [ $recursion = false], [ $group = false])
  • $handles
  • $recursion
  • $group

Redefinition of:
WP_Dependencies::all_deps()
Determines dependencies
do_footer_items (line 169)
void do_footer_items ()
do_head_items (line 164)
void do_head_items ()
do_item (line 81)
void do_item ( $handle, [ $group = false])
  • $handle
  • $group

Redefinition of:
WP_Dependencies::do_item()
in_default_dir (line 182)
void in_default_dir ( $src)
  • $src
localize (line 143)

Localizes a script

Localizes only if script has already been added

  • return: Successful localization
bool localize (string $handle, string $object_name, array $l10n)
  • string $handle: handle Script name
  • string $object_name: object_name Name of JS object to hold l10n info
  • array $l10n: l10n Array of JS var name => localized string
print_scripts (line 46)

Prints scripts

Prints the scripts passed to it or the print queue. Also prints all necessary dependencies.

  • return: Scripts that have been printed
array print_scripts ([mixed $handles = false], [int $group = false])
  • mixed $handles: handles (optional) Scripts to be printed. (void) prints queue, (string) prints that script, (array of strings) prints those scripts.
  • int $group: group (optional) If scripts were queued in groups prints this group number.
print_scripts_l10n (line 50)
void print_scripts_l10n ( $handle, [ $echo = true])
  • $handle
  • $echo
reset (line 193)
void reset ()
set_group (line 149)
void set_group ( $handle,  $recursion, [ $group = false])
  • $handle
  • $recursion
  • $group

Redefinition of:
WP_Dependencies::set_group()

Inherited Methods

Inherited From WP_Dependencies

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

Documentation generated on Fri, 18 May 2012 01:33:53 +0100 by phpDocumentor 1.4.3