class FrxFieldTable in Forena Reports 6.2
Same name and namespace in other branches
- 7.2 templates/FrxFieldTable.inc \FrxFieldTable
- 7.3 templates/FrxFieldTable.inc \FrxFieldTable
- 7.4 renderers/FrxFieldTable.inc \FrxFieldTable
Hierarchy
- class \FrxTemplate
- class \FrxFieldTable
Expanded class hierarchy of FrxFieldTable
1 string reference to 'FrxFieldTable'
- FrxFieldTable::generate in templates/
FrxFieldTable.inc - * * Enter description here ... *
File
- templates/
FrxFieldTable.inc, line 3
View source
class FrxFieldTable extends FrxTemplate {
public function generate($xml, $config) {
$config['foreach'] = '*';
$config['class'] = 'FrxFieldTable';
$div = $this
->blockDiv($config);
$columns = $this
->columns($xml);
$table = $this
->addNode($div, 4, 'table', NULL, NULL, NULL);
$r = 0;
if ($columns) {
foreach ($columns as $col) {
$r++;
$tbody = $this
->addNode($table, 6, 'tbody');
$tr = $this
->addNode($tbody, 8, 'tr');
$th = $this
->addNode($tr, 10, 'th', $col);
if ($r == 1) {
$th
->setAttribute('width', '300');
}
$td = $this
->addNode($tr, 10, 'td', '{' . $col . '}');
}
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FrxFieldTable:: |
public | function |
*
* Enter description here ...
* Overrides FrxTemplate:: |
|
FrxTemplate:: |
public | property | ||
FrxTemplate:: |
public | property | ||
FrxTemplate:: |
public | property | ||
FrxTemplate:: |
public | property | ||
FrxTemplate:: |
public | property | ||
FrxTemplate:: |
public | property | ||
FrxTemplate:: |
function | |||
FrxTemplate:: |
function | |||
FrxTemplate:: |
public | function | ||
FrxTemplate:: |
public | function | Generate generic div tag. | |
FrxTemplate:: |
public | function | ||
FrxTemplate:: |
public | function | * Returns the section * Enter description here ... | 2 |
FrxTemplate:: |
public | function | Extract a configuration var removing it from the array | |
FrxTemplate:: |
public | function | ||
FrxTemplate:: |
public | function | ||
FrxTemplate:: |
public | function |