Class Sylar_Html

Description

Main Html Format Class

This class is extended from various Html Sylar Classes and collect common method uses to formato HTML source

Located in /sylar/classes/presentation/html/Html.php (line 41)

Sylar_Format
   |
   --Sylar_Html
Direct descendents
Class Description
 class Sylar_HtmlHead Html Head
 class Sylar_HtmlBody Html Body Element
 class Sylar_HtmlPage Html Page Format
 class Sylar_HtmlDiv Html DIV
Method Summary
 Sylar_Html __construct ()
 void __destruct ()
 string fillTagAttributes (string $sTagStart, array $aAttributes)
Methods
Constructor __construct (line 43)
Sylar_Html __construct ()

Redefinition of:
Sylar_Format::__construct()

Redefined in descendants as:
Destructor __destruct (line 46)
void __destruct ()

Redefinition of:
Sylar_Format::__destruct()

Redefined in descendants as:
fillTagAttributes (line 73)

Fill Html Attributes in Tag It generate the HTML tag $sTagStart with all attributes secified in the array $aAttributes The array is formatted like Key=>Value, Key is the attribute name and Value is the value of attribute.

It ignores all null data contained in the attributes array.

For example: $sTagStart = "div"; $aAttributes = array("id"=>"My_ID", "class"=>"My_CSS_Class");

calling the method: fillTagAttributes($sTagStart, $aAttributes) it returns a string thath contain: <div id="My_ID" class="My_CSS_Class">

  • static:
  • access: public
string fillTagAttributes (string $sTagStart, array $aAttributes)
  • string $sTagStart: The begin of the tag for example: <script or <div
  • array $aAttributes: An array Key=>Value to insert as attributes in the Tag.

Inherited Methods

Inherited From Sylar_Format

 Sylar_Format::__construct()
 Sylar_Format::__destruct()

Documentation generated on Thu, 24 Apr 2008 16:14:14 +0200 by phpDocumentor 1.3.0RC3