Class: Bs_HtmlTableWindrose
Source Location: /core/html/table/Bs_HtmlTableWindrose.class.php
Bs_Object
|
--Bs_HtmlTableWindrose
HtmlTableWindrose class Has knowledge where to set attributes and styles at a RELATIVE position of a HTML table.
Author(s):
Version:
- 4.3.$Revision: 1.4 $ $Date: 2003/10/29 17:48:41 $
Copyright:
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
Class Methods
constructor Bs_HtmlTableWindrose [line 145]
Bs_HtmlTableWindrose Bs_HtmlTableWindrose(
)
|
|
*********************************************************************** Constructor
method getAttrStrings [line 340]
*********************************************************************** Gets a hash array. The key is a position mnomics ID and the value is string holding the data. E.g. array('N'=>'aligne="center"', ...)
Tags:
method getCssBlock [line 274]
*********************************************************************** If you're planing to work with CSS (Cascading Style Sheats) you can get a STYLE block.
E.g.
.N { color:black; background-color:white; font-size:20px; font-family:Verdana,Arial; font-style:normal;}
.N_NW { color:black; background-color:white; font-size:16px; font-family:Verdana,Arial; font-style:normal;}
.W { color:#0066CC; background-color:white; font-size:12px; font-family:Verdana,Arial; font-style:normal; cursor:hand; }
NOTE: You must have called $this->getMatrix() before the data is available.
Tags:
method getMatrix [line 238]
&$matrix &getMatrix(
$rowSize
$rowSize, $colSize
$colSize)
|
|
*********************************************************************** Builds and inits the 2-D $_windroseMatrix of size $rowSize x $colSize where every cell holds the data for rendering.
Tags:
Parameters:
method getStyleStrings [line 319]
string getStyleStrings(
)
|
|
*********************************************************************** Gets a hash array. The key is a position mnomics ID and the value is string holding the data. E.g. array('N'=>'color:black; background-color:white; font-size:20px;', 'NE'=>'...', ...)
Tags:
method isAttrTransparent [line 307]
bool isAttrTransparent(
string
$windroseID)
|
|
*********************************************************************** Returns TRUE if the attr given by windroseID is transparent
Tags:
Parameters:
method isStyleTransparent [line 296]
bool isStyleTransparent(
string
$windroseID)
|
|
*********************************************************************** Returns TRUE if the style given by windroseID is transparent
Tags:
Parameters:
method read [line 498]
void read(
[string
$path = ''])
|
|
Read the data from a file in.
Tags:
Parameters:
method readByString [line 432]
void readByString(
string
$string)
|
|
Read the data from the given text string.
Tags:
Parameters:
method setAttr [line 213]
void setAttr(
string
$windroseID, mixed
$newAttr, [bool
$transparent = TRUE])
|
|
*********************************************************************** Set a attribute to a TD-cell at a relative position of a table Relative position mnomic ID's are
N +----+---+----+
NW ¦ NE ¦ NW ¦ N ¦ NE ¦
\ ¦ / +----+---+----+
W ---- C ---- E ¦ W ¦ C ¦ E ¦
/ ¦ \ +----+---+----+
SW ¦ SE ¦ SW ¦ S ¦ SE ¦
S +----+---+----+
Pass a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only a name will be placed. The hash array must have the form: array(name=>value, name=>value, name=>NULL, ...). NOTE: Using hash array is more perfomant. If you use a string, then use the right syntax! 'name="value" name="value"'
Tags:
Parameters:
method setStyle [line 173]
void setStyle(
string
$windroseID, mixed
$newStyle, [bool
$transparent = TRUE])
|
|
*********************************************************************** Set a style to a TD-cell at a relative position of a table Relative position mnomic ID's are
N +----+---+----+
NW ¦ NE ¦ NW ¦ N ¦ NE ¦
\ ¦ / +----+---+----+
W ---- C ---- E ¦ W ¦ C ¦ E ¦
/ ¦ \ +----+---+----+
SW ¦ SE ¦ SW ¦ S ¦ SE ¦
S +----+---+----+
Pass a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only name will be placed. If value = NULL only name will be placed The hash array must have the form: array(name=>value, name=>value, name=>NULL, ...). NOTE: Using hash array is more perfomant. If you use a string, then use the right syntax! 'name:value; name:value;'
Tags:
Parameters:
method write [line 360]
void write(
[string
$path = ''])
|
|
*********************************************************************** Wtite the data to a file in a readable and changeable form
Tags:
Parameters:
|
|