SwatObject
└─SwatHtmlHeadEntry
public abstract class SwatHtmlHeadEntry
extends SwatObject
| Field Summary | |
|---|---|
| protected string | The package this HTML head entry belongs to. |
| protected string | 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 | 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. |
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.
protected string $uri = ''
The uri of this head entry
public SwatHtmlHeadEntry(string uri, integer package_id)
Creates a new HTML head entry
uri - the uri of the entry.package_id - the package id of the package this HTML head entry belongs to.public abstract void display(string uri_prefix)
Displays this html head entry
Entries are displayed differently based on type.
uri_prefix - an optional string to prefix the URI with.public abstract void displayInline(string path)
Displays the resource referenced by this html head entry inline
Entries are displayed differently based on type.
path - the path containing the resource files.public string getPackageId()
Gets the package id of this HTML head entry
public string getType()
Gets the type of this HTML head entry
public string getUri()
Gets the URI of this HTML head entry
Stores and outputs an HTML head entry
Head entries are things like scripts and styles that belong in the HTML head section.