phpDocumentor page
[ class tree: page ] [ index: page ] [ all elements ]

Class: Div

Source Location: /myphp-1.9/myphp-1.9-page/html/util/Div.php

Class Div

Class Overview

Generates a <div class="$class" align="$align">$text</div>

  1. Usage:
  2. $html = new Div($text, $class,$align);
  3. print $html->getHtml();
  4. Or
  5. Div::display($text,$class,$align);
  6. Or
  7. Div::start($class, $align);
  8. Link::display();
  9. Div::end();

Located in /myphp-1.9/myphp-1.9-page/html/util/Div.php [line 34]

Object
   |
   --Html
      |
      --Div

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Html

Html::$elements
Html::$sizeof

Inherited From Object

Object::$cachefile
Object::$html
Object::$sql

Inherited From Html

Html::Html()
Constructor
Html::add()
Add an element, the number of elements are stored internally in an array.
Html::content()
Read the content of the specified filename
Html::display()
Display the html
Html::get()
Get the complete html for a key
Html::getAttribute()
Get the complete html for an attribute, i.e. <a class="myclass" ...
Html::getElement()
Get the element at position $i in array
Html::getElements()
Get all the elements as html
Html::getHtml()
Get Html
Html::getHtmlHelp()
Get html help
Html::getSizeof()
Get the number of elements added
Html::getTag()
Get the complete html for a html tag, i.e. <p>My paragraph</p>
Html::read()
Read the content of the specified filename and language
Html::set()
Set the named attribute (key) of a class to specified value
Html::setObject()
Set the named object to the class attribute (key), with same name
Html::showsource()
Show source
Html::update()
Save the content of the specified filename and language

Inherited From Object

Object::Object()
Constructor
Object::addHtml()
Add the current html to the SourceCode object
Object::getCacheFileName()
Returns the name of the cache file name
Object::getClassName()
Returns the name of the instanciated class
Object::getHtml()
Returns the html for the element
Object::getMsg()
Get the formatted message and debug level and Log to file ?
Object::save()
Save the SQL cache file
Object::setCacheFileName()
Set the path/name of the cache file
Object::toString()
Returns the information for this class
Object::write()
Write the content to the file opened by fp

[ Top ]
Property Summary
String   $align  
String   $class  
String   $text  

[ Top ]
Method Summary
Div   Div()   Constructor
void   display()   Display html
void   end()   Display end
String   getEnd()   Returns the end for the div html element
String   getHtml()   Returns the html for the div html element
String   getStart()   Returns the start for the div html element
void   start()   Display start

[ Top ]
Properties
String   $align = '' [line 48]

[ Top ]
String   $class = '' [line 43]

[ Top ]
String   $text = '' [line 38]

[ Top ]
Methods
Constructor Div  [line 56]

  Div Div( [mixed $text = ''], [String $class = ''], [String $align = ''], String $text,  )

Constructor

Parameters:
String   $text,:  The text for the Div tag or an object
String   $class:  The css class name
String   $align:  The align attribute


[ Top ]
display  [line 140]

  void display( [String $text = ''], [String $class = ''], [String $align = '']  )

Display html

  1. Usage:
  2. Div::display($text,$class,$align);

Parameters:
String   $text:  The text for the div or an object
String   $class:  The css class of the div
String   $align:  The align attribute

API Tags:
Static:  


Redefinition of:
Html::display()
Display the html

[ Top ]
end  [line 124]

  void end( )

Display end

  1. Usage:
  2. Div::end();


API Tags:
Static:  


[ Top ]
getEnd  [line 80]

  String getEnd( )

Returns the end for the div html element


API Tags:
Return:  the complete html


[ Top ]
getHtml  [line 88]

  String getHtml( )

Returns the html for the div html element


API Tags:
Return:  the complete html


Redefinition of:
Html::getHtml()
Get Html

[ Top ]
getStart  [line 67]

  String getStart( )

Returns the start for the div html element


API Tags:
Return:  the complete html


[ Top ]
start  [line 111]

  void start( [$class, $class = ''], [$align $align = '']  )

Display start

  1. Usage:
  2. Div::start($class,$align);

Parameters:
$class,   $class:  The css class of the div
$align   $align:  The align attribute

API Tags:
Static:  


[ Top ]

Documentation generated on Thu, 22 Dec 2005 17:07:19 +0100 by phpDocumentor 1.3.0RC3