blueshoes php application framework and cms            core_html
[ class tree: core_html ] [ index: core_html ] [ all elements ]
', 'foot' => '', 'cell' => '' ), 'row' => array( 'head' => '', 'foot' => '', 'cell' => '' ), ); $hts =& new Bs_HtmlTableStyle; $hts->setData($data); $hts->setStyle($style); echo $hts->toHtml();

dependencies: none




Tags:

Class: Bs_HtmlTableStyle

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

Class Overview

Bs_Object
   |
   --Bs_HtmlTableStyle

HtmlTableStyle class


Author(s):

Version:

  • 4.3.$Revision: 1.2 $ $Date: 2003/08/09 15:17:48 $

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 48]
HtmlTableStyle class

uses styles, usually from xml definitions.

 example:
 require_once($APP['path']['core'] . 'html/table/Bs_HtmlTableStyle.class.php');
 $data = array(
   array('Canada', 'Vancouver', 'Toronto'),
   array('France', 'Paris',     'Lyon'),
   array('Russia', 'Moskau',    'Dabady'),
 );
 $style = array(
   'head'     => '',
   'foot'     => '
', 'empty' => ' ', 'firstrow' => array( 'head' => '
__DATA__
__DATA__
version:  4.3.$Revision: 1.2 $ $Date: 2003/08/09 15:17:48 $
copyright:  blueshoes.org
author:  andrej arn <at blueshoes dot org>


[ Top ]


Class Variables

$_data =

[line 55]



Tags:


Type:   array


[ Top ]

$_style =

[line 61]



Tags:


Type:   array


[ Top ]



Class Methods


constructor Bs_HtmlTableStyle [line 67]

Bs_HtmlTableStyle Bs_HtmlTableStyle( )

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

Constructor




[ Top ]

method setData [line 78]

void setData( array $data)

sets the table data



Tags:

access:  public


Parameters:

array   $data   (vector)

[ Top ]

method setStyle [line 89]

void setStyle( array $style)

sets the styles



Tags:

access:  public


Parameters:

array   $style   (hash)

[ Top ]

method toHtml [line 119]

string toHtml( )

returns the table as html output



Tags:

return:  (html, may be an empty string.)
access:  public


Overrides Bs_Object::toHtml() (Dumps the content of this object to a string using PHP's var_dump().)

[ Top ]


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