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

Public Member Functions

 __construct ($content=NULL)
 
 GetID ()
 
 SetID ($id)
 
 Render ()
 
 ToString ()
 
 GetParent ()
 
 ClearContent ()
 
 SetIDVisibility ($visible)
 

Protected Member Functions

 SetProperty ($name, $value)
 
 ClearProperty ($name)
 
 ReplaceContent ($content)
 
 AddContent ($content)
 
 AddCSSClass ($classname)
 
 CompactText ($text)
 
 AddContentBefore ($newContent)
 
 AddContentAfter ($newContent)
 

Protected Attributes

 $uniqid
 
 $tagname
 
 $contents
 
 $properties
 
 $autoclosed
 
 $bbenabled
 
 $parent
 

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ AddContent()

xHTML_Item::AddContent (   $content)
protected

Adds contents to tag

Parameters
string | HTMLItem | array$content

Reimplemented in xHTML_A, xHTML_Body, xHTML_Comment, xHTML_Div, xHTML_Form, xHTML_HGeneric, xHTML_Head, xHTML_LI, xHTML_GenericList, xHTML_P, xHTML_Script, xHTML_Span, xHTML_Style, xHTML_UnparsedCode, and xHTML_Text.

◆ AddContentAfter()

xHTML_Item::AddContentAfter (   $newContent)
protected

Add content before this once

Parameters
string | xHTML_Item | array$newContentNew content to add

Reimplemented in xHTML_A, xHTML_Body, xHTML_Comment, xHTML_Div, xHTML_Form, xHTML_HGeneric, xHTML_Img, xHTML_LI, xHTML_P, xHTML_Script, xHTML_Span, xHTML_Style, xHTML_Table, and xHTML_UnparsedCode.

◆ AddContentBefore()

xHTML_Item::AddContentBefore (   $newContent)
protected

Adds content before this one

Parameters
string | xHTML_Item | array$newContent
Exceptions
NullParent

Reimplemented in xHTML_A, xHTML_Body, xHTML_Comment, xHTML_Div, xHTML_Form, xHTML_HGeneric, xHTML_Img, xHTML_LI, xHTML_P, xHTML_Script, xHTML_Span, xHTML_Style, xHTML_Table, and xHTML_UnparsedCode.

◆ AddCSSClass()

xHTML_Item::AddCSSClass (   $classname)
protected

Adds CSS Class to this object

Parameters
string$classnameCSS class name

Reimplemented in xHTML_A, xHTML_Body, xHTML_Div, xHTML_Form, xHTML_Input, xHTML_Img, xHTML_LI, xHTML_GenericList, xHTML_P, xHTML_Span, and xHTML_Table.

◆ ClearContent()

xHTML_Item::ClearContent ( )

Clear content

Reimplemented in xHTML_Comment, xHTML_Script, xHTML_Table, xHTML_Text, and xHTML_UnparsedCode.

◆ ClearProperty()

xHTML_Item::ClearProperty (   $name)
protected

Clears a given property

Parameters
string$nameProperty name

Reimplemented in xHTML_A, xHTML_Body, xHTML_Div, xHTML_Img, xHTML_P, and xHTML_Script.

◆ CompactText()

xHTML_Item::CompactText (   $text)
protected

Compact text

Parameters
string$textText

◆ GetID()

xHTML_Item::GetID ( )

Gets ID for this container

◆ Render()

◆ ReplaceContent()

xHTML_Item::ReplaceContent (   $content)
protected

Replaces content

Parameters
string | xHTML_Item | array$content

Reimplemented in xHTML_A, xHTML_Body, xHTML_Comment, xHTML_Div, xHTML_Form, xHTML_HGeneric, xHTML_LI, xHTML_P, xHTML_Span, xHTML_Style, xHTML_Text, and xHTML_UnparsedCode.

◆ SetID()

xHTML_Item::SetID (   $id)

Sets content ID manually (careful, as it has to be unique)

Parameters
string$idContent ID

◆ SetIDVisibility()

xHTML_Item::SetIDVisibility (   $visible)

Sets ID Visibility

Parameters
bool$visible

◆ SetProperty()

xHTML_Item::SetProperty (   $name,
  $value 
)
protected

Sets property

Parameters
string$nameProperty name
string$valueProperty value

Reimplemented in xHTML_A, xHTML_Body, xHTML_Div, xHTML_Form, xHTML_Input, xHTML_Img, xHTML_P, xHTML_Script, and xHTML_Table.

◆ ToString()

xHTML_Item::ToString ( )

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