Class Sylar_HtmlDiv

Description

Html DIV

Manage html tag <DIV>, its attributes and content

<div id="globalheader" name="globalheader" class="header" style="width:100%;">

Located in /sylar/classes/presentation/html/HtmlDiv.php (line 42)

Sylar_Format
   |
   --Sylar_Html
      |
      --Sylar_HtmlDiv
Method Summary
 Sylar_HtmlDiv __construct ([string $sId = null], [mixed $sName = null], [string $sClass = null], [string $sStyle = null], string $nName)
 void __destruct ()
 void appendContent (string $sContent, [boolean $bNewLine = false])
 void getClass ()
 void getContent ()
 string getHtmlSource ()
 void getId ()
 void getName ()
 void getStyle ()
 string render ([string $sContent = null])
 void setClass (mixed $sClass)
 void setContent (mixed $sContent)
 void setId (mixed $sId)
 void setName (mixed $sName)
 void setStyle (mixed $sStyle)
 void show ()
Methods
Constructor __construct (line 57)

Constructor

Sylar_HtmlDiv __construct ([string $sId = null], [mixed $sName = null], [string $sClass = null], [string $sStyle = null], string $nName)
  • string $sId: Div ID in Sylar and in HTML tag. If not setted Sylar generate it
  • string $nName: Name o html tag
  • string $sClass: css class for tag div
  • string $sStyle: style attribute for tag Div

Redefinition of:
Sylar_Html::__construct()
Destructor __destruct (line 69)
void __destruct ()

Redefinition of:
Sylar_Html::__destruct()
appendContent (line 131)

Append text into DIV

  • access: public
void appendContent (string $sContent, [boolean $bNewLine = false])
  • string $sContent: Text to append
  • boolean $bNewLine
getClass (line 97)
  • access: public
void getClass ()
getContent (line 111)
  • access: public
void getContent ()
getHtmlSource (line 145)

return the Html source it return html code of entire object

  • access: public
string getHtmlSource ()
getId (line 83)
  • access: public
void getId ()
getName (line 90)
  • access: public
void getName ()
getStyle (line 104)
  • access: public
void getStyle ()
render (line 178)

Format Html Tag DIV It prepare the tag html <DIV> with all attributes and content.

It return a string that contains the div html code

  • access: protected
string render ([string $sContent = null])
  • string $sContent
setClass (line 94)
  • access: public
void setClass (mixed $sClass)
setContent (line 108)
  • access: public
void setContent (mixed $sContent)
setId (line 80)
  • access: public
void setId (mixed $sId)
setName (line 87)
  • access: public
void setName (mixed $sName)
setStyle (line 101)
  • access: public
void setStyle (mixed $sStyle)
show (line 156)

Display the page it prints the object Html source on screen

  • access: public
void show ()

Inherited Methods

Inherited From Sylar_Html

 Sylar_Html::__construct()
 Sylar_Html::fillTagAttributes()
 Sylar_Html::__destruct()

Inherited From Sylar_Format

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

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