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 |
__construct | ( | $ | id, | |
$ | data, | |||
$ | name, | |||
$ | index = 0 | |||
) |
constructor
id | record id | |
data | hash of data | |
name | names of fields | |
index | index of current record |
Reimplemented from DataItem.
set_cell_attribute | ( | $ | name, | |
$ | attr, | |||
$ | value | |||
) |
set custom cell attribute
name | name of column | |
attr | name of attribute | |
value | value of attribute |
set_cell_class | ( | $ | name, | |
$ | value | |||
) |
assign custom class to specific column
name | name of column | |
value | css class name |
set_cell_style | ( | $ | name, | |
$ | value | |||
) |
assign custom style to the column
name | name of column | |
value | css style string |
set_row_attribute | ( | $ | attr, | |
$ | value | |||
) |
set custom row attribute
attr | name of attribute | |
value | value of attribute |
set_row_color | ( | $ | color | ) |
set color of row
color | color of row |
set_row_style | ( | $ | color | ) |
set color of row
color | color of row |
to_xml | ( | ) |
return self as XML string
to_xml_start | ( | ) |
return self as XML string without ending tag
$cell_attrs [protected] |
hash of cell attributes
$row_attrs [protected] |
hash of row attributes