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

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from xHTML_Item
 SetProperty ($name, $value)
 
 ClearProperty ($name)
 
 AddCSSClass ($classname)
 
 CompactText ($text)
 
- Protected Attributes inherited from xHTML_Item
 $uniqid
 
 $tagname
 
 $contents
 
 $properties
 
 $autoclosed
 
 $bbenabled
 
 $parent
 

Constructor & Destructor Documentation

◆ __construct()

xHTML_UnparsedCode::__construct (   $htmlcode = "")

Constructor

Reimplemented from xHTML_Item.

Reimplemented in xHTML_CDATA_Javascript, and xHTML_CDATA.

Member Function Documentation

◆ AddContent()

xHTML_UnparsedCode::AddContent (   $content)

Adds unparsed content

Parameters
string$content

Reimplemented from xHTML_Item.

◆ AddContentAfter()

xHTML_UnparsedCode::AddContentAfter (   $newContent)

Adds content after this one

Parameters
string | xHTML_Item | array$newContent

Reimplemented from xHTML_Item.

◆ AddContentBefore()

xHTML_UnparsedCode::AddContentBefore (   $newContent)

Adds content before this one

Parameters
string | xHTML_Item | array$newContent

Reimplemented from xHTML_Item.

◆ ClearContent()

xHTML_UnparsedCode::ClearContent ( )

Clears its content

Reimplemented from xHTML_Item.

◆ GetContent()

xHTML_UnparsedCode::GetContent ( )

Gets content without rendering it

Returns
string

Reimplemented in xHTML_CDATA_Javascript, and xHTML_CDATA.

◆ IsEmpty()

xHTML_UnparsedCode::IsEmpty ( )

Checks if is empty

Returns
bool

◆ Render()

xHTML_UnparsedCode::Render ( )

Overrides parent's render to prevent parsing

Reimplemented from xHTML_Item.

Reimplemented in xHTML_CDATA_Javascript, and xHTML_CDATA.

◆ ReplaceContent()

xHTML_UnparsedCode::ReplaceContent (   $content)

Replaces content

Parameters
string$contentContent to replace

Reimplemented from xHTML_Item.

◆ SetContent()

xHTML_UnparsedCode::SetContent (   $content)

Sets unparsed content and erases previous content

Parameters
string$content

◆ ToString()

xHTML_UnparsedCode::ToString ( )

Gets contents' string

Returns
string

Reimplemented from xHTML_Item.

Reimplemented in xHTML_CDATA_Javascript, and xHTML_CDATA.


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