You are here

public function FrxRenderer::extract in Forena Reports 7.4

Extract a configuration var removing it from the array

Parameters

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

array $config:

5 calls to FrxRenderer::extract()
FrxAjax::render in renderers/FrxAjax.inc
Default Render action, which simply does normal forena rendering. You can use renderDomNode at any time to generate the default forena rendering methods.
FrxInclude::generate in renderers/FrxInclude.inc
Implement template generator.
FrxRenderer::blockDiv in renderers/FrxRenderer.inc
Generate generic div tag.
FrxSVGGraph::generate in renderers/FrxSVGGraph.inc
Generate the template from the configuration.
FrxSVGGraph::prepareGraph in renderers/FrxSVGGraph.inc

File

renderers/FrxRenderer.inc, line 728
FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler

Class

FrxRenderer
@file FrxRenderer.inc Base class for Frx custom renderers @author davidmetzler

Code

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