xHTML-o-MATIC
A mini framework for handling PHP web frontends.
Loading...
Searching...
No Matches
xHTML_Text Class Reference
+ Inheritance diagram for xHTML_Text:
+ Collaboration diagram for xHTML_Text:

Public Member Functions

 __construct ($text="")
 
 ReplaceContent ($content)
 
 AddContent ($text)
 
 SetContent ($text)
 
 ClearContent ()
 
 GetContent ()
 
 Render ()
 
 ToString ()
 
- Public Member Functions inherited from xHTML_Item
 GetID ()
 
 SetID ($id)
 
 GetParent ()
 
 SetIDVisibility ($visible)
 

Protected Attributes

 $text
 
- Protected Attributes inherited from xHTML_Item
 $uniqid
 
 $tagname
 
 $contents
 
 $properties
 
 $autoclosed
 
 $bbenabled
 
 $parent
 

Additional Inherited Members

- Protected Member Functions inherited from xHTML_Item
 SetProperty ($name, $value)
 
 ClearProperty ($name)
 
 AddCSSClass ($classname)
 
 CompactText ($text)
 
 AddContentBefore ($newContent)
 
 AddContentAfter ($newContent)
 

Constructor & Destructor Documentation

◆ __construct()

xHTML_Text::__construct (   $text = "")

Default constructor

Reimplemented from xHTML_Item.

Reimplemented in xHTML_FilteredText, xHTML_BBCodeText, xHTML_UnfilteredText, and xHTML_Title.

Member Function Documentation

◆ AddContent()

xHTML_Text::AddContent (   $text)

Adds text to current one

Parameters
string$textText

Reimplemented from xHTML_Item.

◆ ClearContent()

xHTML_Text::ClearContent ( )

Clears content

Reimplemented from xHTML_Item.

◆ GetContent()

xHTML_Text::GetContent ( )

Gets content

Returns
string

◆ Render()

xHTML_Text::Render ( )

Renders text

Reimplemented from xHTML_Item.

Reimplemented in xHTML_Title, xHTML_FilteredText, and xHTML_BBCodeText.

◆ ReplaceContent()

xHTML_Text::ReplaceContent (   $content)

Replaces content

Parameters
string$content

Reimplemented from xHTML_Item.

◆ SetContent()

xHTML_Text::SetContent (   $text)

Sets content erasing previous content

Parameters
string$text

◆ ToString()

xHTML_Text::ToString ( )

Gets contents' string

Returns
string

Reimplemented from xHTML_Item.

Reimplemented in xHTML_Title, xHTML_FilteredText, and xHTML_BBCodeText.


The documentation for this class was generated from the following file: