silverorange Code


Swat.SwatHtmlHeadEntry
/Swat/SwatHtmlHeadEntry.php at line 17

Class SwatHtmlHeadEntry

SwatObject
└─SwatHtmlHeadEntry

public abstract class SwatHtmlHeadEntry
extends SwatObject

Stores and outputs an HTML head entry

Head entries are things like scripts and styles that belong in the HTML head section.

Copyright:
2005-2006 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
protected string

$package_id

The package this HTML head entry belongs to.

protected string

$uri

The uri of this head entry.

Constructor Summary

SwatHtmlHeadEntry(string uri, integer package_id)

Creates a new HTML head entry.

Method Summary
abstract void

display(string uri_prefix)

Displays this html head entry.

abstract void

displayInline(string path)

Displays the resource referenced by this html head entry inline.

string

getPackageId()

Gets the package id of this HTML head entry.

string

getType()

Gets the type of this HTML head entry.

string

getUri()

Gets the URI of this HTML head entry.

Field Detail

/Swat/SwatHtmlHeadEntry.php at line 36

package_id

protected string $package_id = null

The package this HTML head entry belongs to.

When HTML head entries are displayed, they are grouped by package and groups are order by inter-package dependencies.


/Swat/SwatHtmlHeadEntry.php at line 26

uri

protected string $uri = ''

The uri of this head entry


Constructor Detail

/Swat/SwatHtmlHeadEntry.php at line 48

SwatHtmlHeadEntry

public SwatHtmlHeadEntry(string uri, integer package_id)

Creates a new HTML head entry

Parameters:
uri - the uri of the entry.
package_id - the package id of the package this HTML head entry belongs to.

Method Detail

/Swat/SwatHtmlHeadEntry.php at line 64

display

public abstract void display(string uri_prefix)

Displays this html head entry

Entries are displayed differently based on type.

Parameters:
uri_prefix - an optional string to prefix the URI with.

/Swat/SwatHtmlHeadEntry.php at line 76

displayInline

public abstract void displayInline(string path)

Displays the resource referenced by this html head entry inline

Entries are displayed differently based on type.

Parameters:
path - the path containing the resource files.

/Swat/SwatHtmlHeadEntry.php at line 112

getPackageId

public string getPackageId()

Gets the package id of this HTML head entry

Returns:
the package id of this HTML head entry.

/Swat/SwatHtmlHeadEntry.php at line 99

getType

public string getType()

Gets the type of this HTML head entry

Returns:
the type of this HTML head entry.

/Swat/SwatHtmlHeadEntry.php at line 86

getUri

public string getUri()

Gets the URI of this HTML head entry

Returns:
the URI of this HTML head entry.

silverorange Code