class FrxTable in Forena Reports 7.2
Same name and namespace in other branches
- 6.2 templates/FrxTable.inc \FrxTable
- 7.3 templates/FrxTable.inc \FrxTable
- 7.4 renderers/FrxTable.inc \FrxTable
Hierarchy
- class \FrxTemplate
- class \FrxTable
Expanded class hierarchy of FrxTable
2 string references to 'FrxTable'
- forena_add_data_block_form in ./
forena.admin.inc - FrxTable::generate in templates/
FrxTable.inc - * * Enter description here ... *
File
- templates/
FrxTable.inc, line 3
View source
class FrxTable extends FrxTemplate {
public function generate($xml, $config) {
$block = $config['block'];
$id = $this
->idFromBlock($block);
$config['id'] = $id . '_block';
$config['class'] = 'FrxTable';
$div = $this
->blockDiv($config);
$columns = $this
->columns($xml);
$table = $this
->addNode($div, 4, 'table');
$thead = $this
->addNode($table, 6, 'thead');
$throw = $this
->addNode($thead, 8, 'tr');
$tbody = $this
->addNode($table, 6, 'tbody');
$tdrow = $this
->addNode($tbody, 8, 'tr', null, array(
'id' => $id,
), array(
'foreach' => '*',
));
if ($columns) {
foreach ($columns as $col) {
$this
->addNode($throw, 10, 'th', $col);
$this
->addNode($tdrow, 10, 'td', '{' . $col . '}');
}
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FrxTable:: |
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 |