Class Horde_Script_Files

Description

The Horde_Script_Files:: class provides a coherent way to manage script files for inclusion in Horde output. This class is meant to be used internally by Horde:: only.

Located in /Horde/Horde.php (line 1783)


	
			
Variable Summary
 array $_files
 array $_fromhorde
 array $_ignored
 array $_included
 boolean $_loadhordejs
 array $_ptversions
Method Summary
 void add (string $file, [string $app = null], [boolean $direct = false], [boolean $full = false])
 void includeFiles ()
 array listFiles ()
 void &singleton ()
 void _add ( $file,  $app,  $direct, [ $full = false])
Variables
array $_files = array() (line 1790)

The list of script files to add.

array $_fromhorde = array('prototype.js', 'onDomReady.js') (line 1813)

The list of javascript files to always load from Horde.

array $_ignored = array(
'horde' => array('tooltip.js'))
(line 1804)

The list of deprecated files.

array $_included = array() (line 1797)

The list of files we have already included.

boolean $_loadhordejs = true (line 1827)

Auto load horde.js/horde-prototype.js?

array $_ptversions = array('tables.js', 'stripe.js') (line 1820)

The list of javscript files in Horde that have prototypejs'd versions.

Methods
add (line 1854)

Adds the javascript code to the output (if output has already started) or to the list of script files to include.

void add (string $file, [string $app = null], [boolean $direct = false], [boolean $full = false])
  • string $file: The full javascript file name.
  • string $app: The application name. Defaults to the current application.
  • boolean $direct: Include the file directly without passing it through javascript.php?
  • boolean $full: Output a full url
disableAutoloadHordeJS (line 2028)

Disable auto-loading of the horde.js script.

Needs to auto-load by default for BC.

  • todo: Remove for Horde 4
void disableAutoloadHordeJS ()
includeFiles (line 1930)

Includes javascript files that are needed before any headers are sent.

void includeFiles ()
listFiles (line 1944)

Prepares the list of javascript files to include.

array listFiles ()
singleton (line 1832)

Singleton.

void &singleton ()
_add (line 1869)

Helper function to determine if given file needs to be output.

void _add ( $file,  $app,  $direct, [ $full = false])
  • $file
  • $app
  • $direct
  • $full

Documentation generated on Sun, 30 Jan 2011 05:18:10 +0000 by phpDocumentor 1.4.3