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

Public Member Functions

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

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ __construct()

xHTML_Img::__construct ( )

Default constructor

Member Function Documentation

◆ AddContentAfter()

xHTML_Img::AddContentAfter (   $newContent)

Adds content after this one

Parameters
string | xHTML_Item | array$newContent

Reimplemented from xHTML_Item.

◆ AddContentBefore()

xHTML_Img::AddContentBefore (   $newContent)

Adds content before this one

Parameters
string | xHTML_Item | array$newContent

Reimplemented from xHTML_Item.

◆ AddCSSClass()

xHTML_Img::AddCSSClass (   $classname)

Adds a CSS class to this object

Parameters
string$classnameCSS class name

Reimplemented from xHTML_Item.

◆ ClearProperty()

xHTML_Img::ClearProperty (   $name)

Clear property

Parameters
string$nameProperty name

Reimplemented from xHTML_Item.

◆ SetAlternativeName()

xHTML_Img::SetAlternativeName (   $text)

Sets alternative name of that image

Parameters
string$textText

◆ SetImage()

xHTML_Img::SetImage (   $src)

Sets destination of the image

Parameters
string$srcDestination file or url

◆ SetProperty()

xHTML_Img::SetProperty (   $name,
  $value 
)

Sets a property

Parameters
string$nameProperty name
string$valueProperty name

Reimplemented from xHTML_Item.


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