Class WP_Scripts

Description

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

WP_Dependencies
   |
   --WP_Scripts
Variable Summary
Method Summary
 WP_Scripts __construct ()
 void all_deps ( $handles, [ $recursion = false])
 void do_item ( $handle)
 bool localize (string $handle, string $object_name, array $l10n)
 array print_scripts ([mixed $handles = false])
 void print_scripts_l10n ( $handle)
Variables
mixed $base_url (line 4)
mixed $default_version (line 5)

Inherited Variables

Inherited from WP_Dependencies

WP_Dependencies::$args
WP_Dependencies::$done
WP_Dependencies::$queue
WP_Dependencies::$registered
WP_Dependencies::$to_do
Methods
Constructor __construct (line 7)
WP_Scripts __construct ()

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

Redefinition of:
WP_Dependencies::all_deps()
Determines dependencies
do_item (line 44)
void do_item ( $handle)
  • $handle

Redefinition of:
WP_Dependencies::do_item()
localize (line 77)

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 19)

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])
  • mixed $handles: handles (optional) Scripts to be printed. (void) prints queue, (string) prints that script, (array of strings) prints those scripts.
print_scripts_l10n (line 23)
void print_scripts_l10n ( $handle)
  • $handle

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()

Documentation generated on Fri, 12 Sep 2008 21:09:01 -0400 by phpDocumentor 1.4.1