\Horde_Script_File_External

This class represents an external script file to include.

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
$_url
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

External scripts are not cached.

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

By default, put external scripts as very low priority so it doesn't break-up caching collections (since a non-cached script will cause separate cache files to be created).

Type

integer

$_url

$_url : 

External URL.

Type

Methods

__construct()

__construct(string  $url) 

Adds an external javascript script to the output.

Parameters

string $url

The URL to the external script file.

__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.