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

Public Member Functions

 __construct ($content=NULL)
 
 ReplaceContent ($content)
 
 AddContent ($content)
 
 AddContentBefore ($newContent)
 
 AddContentAfter ($newContent)
 
 SetProperty ($name, $value)
 
 ClearProperty ($name)
 
 AddCSSClass ($classname)
 
- Public Member Functions inherited from xHTML_Item
 GetID ()
 
 SetID ($id)
 
 Render ()
 
 ToString ()
 
 GetParent ()
 
 ClearContent ()
 
 SetIDVisibility ($visible)
 

Additional Inherited Members

- Protected Member Functions inherited from xHTML_Item
 CompactText ($text)
 
- Protected Attributes inherited from xHTML_Item
 $uniqid
 
 $tagname
 
 $contents
 
 $properties
 
 $autoclosed
 
 $bbenabled
 
 $parent
 

Constructor & Destructor Documentation

◆ __construct()

xHTML_P::__construct (   $content = NULL)

Default constructor

Parameters
string | xHTML_Item$contentContent to add

Reimplemented from xHTML_Item.

Member Function Documentation

◆ AddContent()

xHTML_P::AddContent (   $content)

Adds content

Parameters
string | xHTML_Item | array$content

Reimplemented from xHTML_Item.

◆ AddContentAfter()

xHTML_P::AddContentAfter (   $newContent)

Adds content after this one

Parameters
string | xHTML_Item | array$newContent

Reimplemented from xHTML_Item.

◆ AddContentBefore()

xHTML_P::AddContentBefore (   $newContent)

Adds content before this one

Parameters
string | xHTML_Item | array$newContent

Reimplemented from xHTML_Item.

◆ AddCSSClass()

xHTML_P::AddCSSClass (   $classname)

Adds a CSS class to this object

Parameters
string$classnameCSS class name

Reimplemented from xHTML_Item.

◆ ClearProperty()

xHTML_P::ClearProperty (   $name)

Clears a property

Parameters
string$nameName

Reimplemented from xHTML_Item.

◆ ReplaceContent()

xHTML_P::ReplaceContent (   $content)

Replaces content

Parameters
string | xHTML_Item | array$contentContent to replace

Reimplemented from xHTML_Item.

◆ SetProperty()

xHTML_P::SetProperty (   $name,
  $value 
)

Sets a property

Parameters
string$nameName
string$valueValue

Reimplemented from xHTML_Item.


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