\Horde_Script_File

This class represents a javascript script file to output to the browser.

Summary

Methods
Properties
Constants
__construct()
__get()
__set()
__toString()
$cache
$jsvars
$priority
$app
$file
$full_path
$hash
$modified
$path
$tag
$tag_full
$uncompressed
$url
$url_full
PRIORITY_HIGH
PRIORITY_NORMAL
PRIORITY_LOW
_url()
$_app
$_file
$_priority
N/A
No private methods found
No private properties found
N/A

Constants

PRIORITY_HIGH

PRIORITY_HIGH

Priority constants.

PRIORITY_NORMAL

PRIORITY_NORMAL

PRIORITY_LOW

PRIORITY_LOW

Properties

$cache

$cache : string

The cache group this file should be output in.

Type

string

$jsvars

$jsvars : array

Javascript variables that should be output to the page.

Type

array

$priority

$priority : integer

Script priority

Type

integer

$app

$app : string

Application.

Type

string

$file

$file : string

Filename.

Type

string

$full_path

$full_path : string

Full path to file on filesystem.

Type

string

$hash

$hash : string

Hash value of this file.

Type

string

$modified

$modified : integer

Last modification time of the file.

Type

integer

$path

$path : string

Full filesystem path to script.

Type

string

$tag

$tag : string

HTML script tag to relative URL.

Type

string

$tag_full

$tag_full : string

HTML script tag to full URL.

Type

string

$uncompressed

$uncompressed : \Horde_Script_File

Return the object representing the uncompressed script.

Type

\Horde_Script_File

$url

$url : \Horde_Url

URL to script.

Type

\Horde_Url

$url_full

$url_full : \Horde_Url

Full URL to script.

Type

\Horde_Url

$_app

$_app : string

Application.

Type

string

$_file

$_file : string

Filename.

Type

string

$_priority

$_priority : integer

Priority.

Type

integer

Methods

__construct()

__construct(string  $file, string  $app = null) 

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.

Parameters

string $file

The full javascript file name.

string $app

The application name. Defaults to the current application.

__get()

__get(  $name) 

Parameters

$name

__set()

__set(  $name,   $value) 

Parameters

$name
$value

__toString()

__toString() 

_url()

_url(string  $file, boolean  $full) : \Horde_Url

Create a static javascript URL.

Parameters

string $file

File name.

boolean $full

Return full URL?

Returns

\Horde_Url —

URL.