$ajax
$ajax : boolean
Output code necessary to perform AJAX operations?
This object consolidates the elements needed to output a page to the browser.
$css : \Horde_Themes_Css
Stylesheet object.
$hsl : \Horde_Script_List
Script list.
addScriptFile(mixed $file, string $app = null) : \Horde_Script_File
Adds a single javascript script to the output (if output has already started), or to the list of script files to include in the output.
mixed | $file | Either a Horde_Script_File object, or the full javascript file name. |
string | $app | If $file is a file name, this is the application where the file is located. Defaults to the current registry application. |
Script file object.
addScriptPackage(mixed $package) : \Horde_Script_Package
Adds a javascript package to the browser output.
mixed | $package | Either a classname, basename of a Horde_Core_Script_Package class, or a Horde_Script_Package object. |
Package object.
addInlineScript(string|array $script, boolean|string $onload = false, boolean $top = false)
Add inline javascript to the output buffer.
string|array | $script | The script text(s) to add. |
boolean|string | $onload | Load the script after the page (DOM) has loaded? If a string (either 'prototype' or 'jquery'), that JS framework's method is used. Defaults to Prototype. @since Horde_Core 2.28.0 |
boolean | $top | Add script to top of stack? |
addInlineJsVars(array $data, mixed $opts = array()) : array
Add inline javascript variable definitions to the output buffer.
array | $data | Keys are the variable names, values are the data to JSON encode. If the key begins with a '-', the data will be added to the output as-is. |
mixed | $opts | If boolean true, equivalent to setting the 'onload' option to true. Other options:
|
Returns the variable list of 'ret_vars' option is true.
addStylesheet(\Horde_Themes_Element|string $file, string $url = null)
Adds an external stylesheet to the output.
\Horde_Themes_Element|string | $file | Either a Horde_Themes_Element object or the CSS filepath. |
string | $url | If $file is a string, this must be a CSS URL. |