Class gui

gui

public class gui

GUI class to help render the final HTML.
Based on switching between two different rendering modes (special / content).


Constructor Summary
gui(var $title, var $img_dir, var $cssfile, var $content_desc, var $tb)
           
 
Method Summary
 unknown _content_end()
          Finalize current content.
 unknown _content_start()
          .
 unknown _document_end()
           
 unknown _document_start()
           
 unknown _open_head()
           
 unknown _separator()
           
 unknown _special_end()
           
 unknown _special_start()
           
 unknown content(var $tb)
          Switch to 'content' section of a document.
 unknown end()
          Finalize rendering of the document.
 unknown get_body_attr()
          Return string with default body attributes.
 unknown get_image(var $name, var $alt, var $attr)
          Return image anchor.
 unknown get_table_attr()
          Return string with default table attributes.
 unknown glue(var $w, var $h)
          Insert invisible image of specified width/height.
 unknown heading(var $msg)
          Create a heading from given string.
 unknown menu_begin(var $values, var $class, var $special, var $sepclass)
          Start menu rendering - creates first menu boxes from given values.
 unknown menu_end()
          Finalize menu rendering.
 unknown menu_next(var $values)
          Menu rendering function - creates another menu boxes from given values.
 unknown menu(var $values, var $class, var $special, var $sepclass)
          Menu rendering function.
 unknown separator()
          Create a separator in currently active section (special/content)
 unknown special(var $tb)
          Switch to 'special' section of a document.
 unknown start(var $tb)
          Start rendering of a document.
 

Constructor Detail

gui

public gui(var $title,
           var $img_dir,
           var $cssfile,
           var $content_desc,
           var $tb)
Parameters:
$cssfile - Default Value: "style.css"
$content_desc - Default Value: ""
$tb - Default Value: "0"
Method Detail

_open_head

public unknown _open_head()

_document_start

public unknown _document_start()

_document_end

public unknown _document_end()

_special_start

public unknown _special_start()

_special_end

public unknown _special_end()

_separator

public unknown _separator()

_content_start

public unknown _content_start()
.

_content_end

public unknown _content_end()
Finalize current content.

separator

public unknown separator()
Create a separator in currently active section (special/content)

glue

public unknown glue(var $w,
                    var $h)
Insert invisible image of specified width/height.
Returns:
img tag string

heading

public unknown heading(var $msg)
Create a heading from given string.
Returns:
void

menu

public unknown menu(var $values,
                    var $class,
                    var $special,
                    var $sepclass)
Menu rendering function. In fact, it calls menu_begin and menu_end functions.
Parameters:
$values - The array of items for the menu table.
$class - Name of the css class to use with table items.
$special - Associative array of items with special meaning. The items from $values which are as any key value in $special will be replaced with corresponding value from $special.
$sepclass - Name of the css class to use with table special items.
$special - Default Value: ""
$sepclass - Default Value: ""
Returns:
void

menu_next

public unknown menu_next(var $values)
Menu rendering function - creates another menu boxes from given values.
Parameters:
$values - The array of items for the menu table.
Returns:
void

menu_begin

public unknown menu_begin(var $values,
                          var $class,
                          var $special,
                          var $sepclass)
Start menu rendering - creates first menu boxes from given values.
Parameters:
$values - The array of items for the menu table.
$special - Default Value: ""
$sepclass - Default Value: ""
Returns:
void

menu_end

public unknown menu_end()
Finalize menu rendering.
Returns:
void

start

public unknown start(var $tb)
Start rendering of a document.

special

public unknown special(var $tb)
Switch to 'special' section of a document.
Parameters:
$tb - Default Value: ""

content

public unknown content(var $tb)
Switch to 'content' section of a document.
Parameters:
$tb - Default Value: ""

end

public unknown end()
Finalize rendering of the document.

get_table_attr

public unknown get_table_attr()
Return string with default table attributes.

get_body_attr

public unknown get_body_attr()
Return string with default body attributes.

get_image

public unknown get_image(var $name,
                         var $alt,
                         var $attr)
Return image anchor.
Parameters:
$attr - Default Value: ""