You are here

public function FrxTemplate::extract in Forena Reports 7.3

Same name and namespace in other branches
  1. 6.2 templates/FrxTemplate.inc \FrxTemplate::extract()
  2. 7.2 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 143
FrxTemplate Base Class for all tmeplates. By default simply renders a document with all the possible tokens in it. @author davidmetzler

Class

FrxTemplate
@file FrxTemplate Base Class for all tmeplates. By default simply renders a document with all the possible tokens in it. @author davidmetzler

Code

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