GridDataItem Class Reference

Inheritance diagram for GridDataItem:

DataItem TreeGridDataItem

List of all members.

Public Member Functions

 __construct ($id, $data, $name, $index=0)
 set_row_color ($color)
 set_row_style ($color)
 set_cell_style ($name, $value)
 set_cell_class ($name, $value)
 set_cell_attribute ($name, $attr, $value)
 set_row_attribute ($attr, $value)
 to_xml_start ()
 to_xml ()

Protected Attributes

 $row_attrs
 hash of row attributes
 $cell_attrs
 hash of cell attributes


Detailed Description

DataItem class for Grid component

Constructor & Destructor Documentation

__construct ( id,
data,
name,
index = 0 
)

constructor

Parameters:
id record id
data hash of data
name names of fields
index index of current record

Reimplemented from DataItem.


Member Function Documentation

set_cell_attribute ( name,
attr,
value 
)

set custom cell attribute

Parameters:
name name of column
attr name of attribute
value value of attribute

set_cell_class ( name,
value 
)

assign custom class to specific column

Parameters:
name name of column
value css class name

set_cell_style ( name,
value 
)

assign custom style to the column

Parameters:
name name of column
value css style string

set_row_attribute ( attr,
value 
)

set custom row attribute

Parameters:
attr name of attribute
value value of attribute

set_row_color ( color  ) 

set color of row

Parameters:
color color of row

set_row_style ( color  ) 

set color of row

Parameters:
color color of row

to_xml (  ) 

return self as XML string

to_xml_start (  ) 

return self as XML string without ending tag


Member Data Documentation

$cell_attrs [protected]

hash of cell attributes

$row_attrs [protected]

hash of row attributes


The documentation for this class was generated from the following file:

Generated on Tue Mar 3 20:06:24 2009 for dhxmlXConnector by  doxygen 1.5.8