You are here

private function FrxCrosstab::addColumn in Forena Reports 7.5

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

File

src/Renderer/FrxCrosstab.php, line 308

Class

FrxCrosstab

Namespace

Drupal\forena\Renderer

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,
  );
}