silverorange Code


Swat.SwatLinkHtmlHeadEntry
/Swat/SwatLinkHtmlHeadEntry.php at line 15

Class SwatLinkHtmlHeadEntry

SwatObject
└─SwatHtmlHeadEntry
└─SwatLinkHtmlHeadEntry

public class SwatLinkHtmlHeadEntry
extends SwatHtmlHeadEntry

Stores and outputs an HTML head entry for an XHTML link element

Copyright:
2008 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Field Summary
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.

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

Field Detail

/Swat/SwatLinkHtmlHeadEntry.php at line 38

relationship

protected string $relationship

How this link relates to the containing document


/Swat/SwatLinkHtmlHeadEntry.php at line 31

title

protected string $title

The title of this link


/Swat/SwatLinkHtmlHeadEntry.php at line 45

type

protected string $type

The media type of the content linked to by this link


/Swat/SwatLinkHtmlHeadEntry.php at line 24

uri

protected string $uri

The URI linked to by this link


Constructor Detail

/Swat/SwatLinkHtmlHeadEntry.php at line 63

SwatLinkHtmlHeadEntry

public SwatLinkHtmlHeadEntry(string uri, string relationship, string type, string title, integer package_id)

Creates a new link HTML head entry

Parameters:
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.

Method Detail

/Swat/SwatLinkHtmlHeadEntry.php at line 78

display

public 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/SwatLinkHtmlHeadEntry.php at line 91

displayInline

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

silverorange Code