You are here

private function FrxCrosstab::addColumn in Forena Reports 8

2 calls to FrxCrosstab::addColumn()
FrxCrosstab::generate in src/FrxPlugin/Template/FrxCrosstab.php
FrxCrosstab::scrapeConfig in src/FrxPlugin/Template/FrxCrosstab.php
Extract table configuration from the HTML

File

src/FrxPlugin/Template/FrxCrosstab.php, line 160

Class

FrxCrosstab
Crosstab Report Template

Namespace

Drupal\forena\Template

Code

private function addColumn($type, $token, $label, &$config) {
  $key = trim($token, '{}');
  $this->weight++;
  $config['crosstab_columns'][$key] = array(
    'contents' => $token,
    'label' => $label,
    'type' => $type,
    'weight' => $this->weight,
  );
}