silverorange Code


Swat.SwatLinkCellRenderer
/Swat/SwatLinkCellRenderer.php at line 15

Class SwatLinkCellRenderer

SwatObject
└─SwatUIObject
└─SwatCellRenderer
└─SwatLinkCellRenderer

public class SwatLinkCellRenderer
extends SwatCellRenderer

A link cell renderer

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

Field Summary
string

$content_type

Optional content type.

string

$link

The href attribute in the XHTML anchor tag.

mixed

$link_value

A value or array of values to substitute into the link of this cell.

string

$text

The visible content to place within the XHTML anchor tag.

mixed

$value

A value or array of values to substitute into the text of this cell.

Fields inherited from Swat.SwatCellRenderer
id, sensitive
Fields inherited from Swat.SwatUIObject
classes, html_head_entry_set, parent, visible
Method Summary
array

getDataSpecificCSSClassNames()

Gets the data specific CSS class names for this cell renderer.

protected void

getLink()

protected void

getText()

protected void

getTitle()

protected boolean

isSensitive()

Whether or not this link is sensitive.

void

render()

Renders the contents of this cell.

protected void

renderInsensitive()

Renders this link as not sensitive.

protected void

renderSensitive()

Renders this link as sensitive.

Methods inherited from Swat.SwatCellRenderer
getBaseCSSClassNames, getDataSpecificCSSClassNames, getHtmlHeadEntrySet, getInheritanceCSSClassNames, getInlineJavaScript, getMessages, getPropertyNameToMap, hasMessage, init, isPropertyStatic, makePropertyStatic, process, render
Methods inherited from Swat.SwatUIObject
addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible

Field Detail

/Swat/SwatLinkCellRenderer.php at line 54

content_type

public string $content_type = 'text/plain'

Optional content type

Default text/plain, use text/xml for XHTML fragments.


/Swat/SwatLinkCellRenderer.php at line 31
public string $link

The href attribute in the XHTML anchor tag

Optionally uses vsprintf() syntax, for example:

<?php
$renderer
->link 'MySection/MyPage/%s?id=%s';
?>

See Also:
SwatLinkCellRenderer::$link_value

/Swat/SwatLinkCellRenderer.php at line 79
public mixed $link_value = null

A value or array of values to substitute into the link of this cell. The value will automatically be url encoded when it is included in the link.

See Also:
SwatLinkCellRenderer::$link
SwatLinkCellRenderer::$value

/Swat/SwatLinkCellRenderer.php at line 45

text

public string $text = ''

The visible content to place within the XHTML anchor tag

Optionally uses vsprintf() syntax, for example:

<?php
$renderer
->text 'Page %s of %s';
?>

See Also:
SwatLinkCellRenderer::$value

/Swat/SwatLinkCellRenderer.php at line 68

value

public mixed $value = null

A value or array of values to substitute into the text of this cell

The value property may be specified either as an array of values or as a single value. If an array is passed, a call to vsprintf() is done on the SwatLinkCellRenderer::$text property. If the value is a string a single sprintf() call is made.

See Also:
SwatLinkCellRenderer::$text

Method Detail

/Swat/SwatLinkCellRenderer.php at line 203

getDataSpecificCSSClassNames

public array getDataSpecificCSSClassNames()

Gets the data specific CSS class names for this cell renderer

Returns:
the array of base CSS class names for this cell renderer.

/Swat/SwatLinkCellRenderer.php at line 176

getLink

protected void getLink()

/Swat/SwatLinkCellRenderer.php at line 161

getText

protected void getText()

/Swat/SwatLinkCellRenderer.php at line 153

getTitle

protected void getTitle()

/Swat/SwatLinkCellRenderer.php at line 114

isSensitive

protected boolean isSensitive()

Whether or not this link is sensitive

Depends on the value of the sensitive property and whether or not a link is set.

Returns:
true if this link cell renderer is sensitive and false if it is not.

/Swat/SwatLinkCellRenderer.php at line 89

render

public void render()

Renders the contents of this cell

See Also:
SwatCellRenderer::render()

/Swat/SwatLinkCellRenderer.php at line 141

renderInsensitive

protected void renderInsensitive()

Renders this link as not sensitive


/Swat/SwatLinkCellRenderer.php at line 125

renderSensitive

protected void renderSensitive()

Renders this link as sensitive


silverorange Code