You are here

public function FrxRenderer::idFromBlock in Forena Reports 7.4

Simple function to get id from node.

Parameters

unknown $block:

Return value

mixed

3 calls to FrxRenderer::idFromBlock()
FrxCrosstab::generate in renderers/FrxCrosstab.inc
Generate the template from the configuration.
FrxRenderer::blockDiv in renderers/FrxRenderer.inc
Generate generic div tag.
FrxTable::generate in renderers/FrxTable.inc
Generate the template from the configuration.

File

renderers/FrxRenderer.inc, line 803
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 idFromBlock($block) {
  $parts = explode('/', $block);
  $id = str_replace('.', '_', array_pop($parts));
  return $id;
}