You are here

public function FrxTemplate::idFromBlock in Forena Reports 7.3

Same name and namespace in other branches
  1. 6.2 templates/FrxTemplate.inc \FrxTemplate::idFromBlock()
  2. 7.2 templates/FrxTemplate.inc \FrxTemplate::idFromBlock()
2 calls to FrxTemplate::idFromBlock()
FrxTable::generate in templates/FrxTable.inc
Enter description here ...
FrxTemplate::blockDiv in templates/FrxTemplate.inc
Generate generic div tag.

File

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