silverorange Code


Swat.SwatContentBlock
/Swat/SwatContentBlock.php at line 15

Class SwatContentBlock

SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatContentBlock

public class SwatContentBlock
extends SwatControl

A block of content in the widget tree

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

Field Summary
string

$content

User visible textual content of this widget.

string

$content_type

Optional content type.

Method Summary
void

display()

Displays this content.

Methods inherited from Swat.SwatControl
addMessage, getNote, printWidgetTree
Methods inherited from Swat.SwatWidget
addCompositeWidget, addMessage, confirmCompositeWidgets, copy, createCompositeWidgets, display, displayHtmlHeadEntries, getCSSClassNames, getCompositeWidget, getCompositeWidgets, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, isDisplayed, isInitialized, isProcessed, isSensitive, printWidgetTree, process, replaceWithContainer
Methods inherited from Swat.SwatUIObject
addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible

Field Detail

/Swat/SwatContentBlock.php at line 24

content

public string $content = ''

User visible textual content of this widget


/Swat/SwatContentBlock.php at line 33

content_type

public string $content_type = 'text/plain'

Optional content type

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


Method Detail

/Swat/SwatContentBlock.php at line 43

display

public void display()

Displays this content

Merely performs an echo of the content.


silverorange Code