SwatObject
└─SwatHtmlHeadEntry
└─SwatLinkHtmlHeadEntry
public class SwatLinkHtmlHeadEntry
extends SwatHtmlHeadEntry
| Field Summary | |
|---|---|
| protected string | How this link relates to the containing document. |
| protected string | The title of this link. |
| protected string | The media type of the content linked to by this link. |
| protected string | The URI linked to by this link. |
| Fields inherited from Swat.SwatHtmlHeadEntry | |
|---|---|
| package_id, uri | |
| Constructor Summary | |
|---|---|
SwatLinkHtmlHeadEntry(string uri, string relationship, string type, string title, integer package_id) Creates a new link HTML head entry. |
|
| Method Summary | |
|---|---|
| void | display(string uri_prefix) Displays this html head entry. |
| void | displayInline(string path) Displays the resource referenced by this html head entry inline. |
| Methods inherited from Swat.SwatHtmlHeadEntry | |
|---|---|
| display, displayInline, getPackageId, getType, getUri | |
protected string $relationship
How this link relates to the containing document
protected string $title
The title of this link
protected string $type
The media type of the content linked to by this link
protected string $uri
The URI linked to by this link
public SwatLinkHtmlHeadEntry(string uri, string relationship, string type, string title, integer package_id)
Creates a new link HTML head entry
uri - the URI linked to by this link.relationship - optional. How this link relates to the containing document.type - optional. The media type of the content linked to by this link.title - optional. The title of this link.package_id - the package id of the package this HTML head entry belongs to.public 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 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.
Stores and outputs an HTML head entry for an XHTML link element