blueshoes php application framework and cms            core_html
[ class tree: core_html ] [ index: core_html ] [ all elements ]

Class: Bs_HtmlTableParser

Source Location: /core/html/table/Bs_HtmlTableParser.class.php

Class Overview

Bs_Object
   |
   --Bs_HtmlTableParser

HtmlTableParser class


Author(s):

Version:

  • 4.0.$id:$

Copyright:

  • blueshoes.org

Variables

Methods


Inherited Variables

Inherited Methods

Class: Bs_Object

Bs_Object::Bs_Object()
Bs_Object::getErrors()
Basic error handling: Get *all* errors as string array from the global Bs_Error-error stack.
Bs_Object::getLastError()
Basic error handling: Get last error string from the global Bs_Error-error stack.
Bs_Object::getLastErrors()
Basic error handling: Get last errors string array from the global Bs_Error-error stack sinc last call of getLastErrors().
Bs_Object::persist()
Persists this object by serializing it and saving it to a file with unique name.
Bs_Object::setError()
Basic error handling: Push an error string on the global Bs_Error-error stack.
Bs_Object::toHtml()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::toString()
Dumps the content of this object to a string using PHP's var_dump().
Bs_Object::unpersist()
Fetches an object that was persisted with persist()

Class Details

[line 28]
HtmlTableParser class

Parses well formed XHTML TABLE (incl. cascading TABLEs) and generates the PHP-code unsing Bs_HtmlTable.class.php. A very good utility if you already have the HTML Table code (or youre using a HTML Table generator) and want to use it with the Bs_HtmlTable.class.php.

uses the expat library.

NOTE: - The code is not optimized.

  • Only a subset of Bs_HtmlTable.class functions are used.




Tags:

copyright:  blueshoes.org
see:  Bs_HtmlTable.class.php
version:  4.0.$id:$
author:  Sam Blum <at blueshoes dot org>


[ Top ]


Class Variables

$_tblNr =  -1

[line 34]

used if we cascaded tables


Type:   mixed


[ Top ]

$_theTable = array()

[line 47]

*********************************************************************** Structure: _theTable[$tblNr]['attr'] : A hash array holding the table attr. used in the <TABLE> tag.

" " [$row]['attr'] : A hash array holding the row attr. used in the <TR> tag. " " [$row][$col]['attr'] : A hash array holding the 'cell' attr. used in the <TD> tag. " " [$row][$col]['style'] : A hash array holding the 'cell' attr. used in the <SPAN STYLE= > tag. " " [$row][$col]['span_start']: If set this cell is the top left cell of a spaned area " " [$row][$col]['spaned'] : If TRUE this cell belongs to a spaned area. " " [$row][$col]['sub_table'] : Set to cascaging TABLE ID (given by $_tblNr) " " [$row][$col]['data'] : Table data



Type:   mixed


[ Top ]



Class Methods


constructor Bs_HtmlTableParser [line 53]

Bs_HtmlTableParser Bs_HtmlTableParser( )

***********************************************************************

Constructor




[ Top ]

method generateCode [line 291]

void generateCode( )



[ Top ]

method parse [line 65]

void parse( mixed &$data)

***********************************************************************

Parse a well formed HTML TABLE




[ Top ]

method _getTblSize [line 237]

void _getTblSize( mixed &$aHash)



[ Top ]

method _hash2AttrString [line 256]

void _hash2AttrString( mixed $aHash)



[ Top ]

method _hash2PhpCode [line 273]

void _hash2PhpCode( mixed $aHash, [mixed $indent = 0])



[ Top ]


Documentation generated on Mon, 29 Dec 2003 21:11:02 +0100 by phpDocumentor 1.2.3