You are here

public function FrxTemplate::extract in Forena Reports 7.2

Same name and namespace in other branches
  1. 6.2 templates/FrxTemplate.inc \FrxTemplate::extract()
  2. 7.3 templates/FrxTemplate.inc \FrxTemplate::extract()

Extract a configuration var removing it from the array

Parameters

string $key attribute key for the data being extracted.:

array $config:

4 calls to FrxTemplate::extract()
FrxEmailMerge::generate in templates/FrxEmailMerge.inc
* * Enter description here ... *
FrxGraphTemplate::generate in templates/FrxGraphTemplate.inc
* * Enter description here ... *
FrxRptInclude::generate in templates/FrxRptInclude.inc
* * Enter description here ... *
FrxTemplate::blockDiv in templates/FrxTemplate.inc
Generate generic div tag.

File

templates/FrxTemplate.inc, line 126

Class

FrxTemplate

Code

public function extract($key, &$config) {
  $value = '';
  if (isset($config[$key])) {
    $value = $config[$key];
    unset($config[$key]);
  }
  return $value;
}