You are here

public function FrxControls::template in Forena Reports 7.4

Indicates the data in the field is a template that can be used by forena to format.

Parameters

unknown $value:

unknown $format_str:

string $teng:

Return value

Ambigous <string, The, mixed>

File

plugins/FrxControls.inc, line 161
contains various methods for extending report formating, layout, transformation and design.

Class

FrxControls
@file contains various methods for extending report formating, layout, transformation and design.

Code

public function template($value, $format_str, $teng = '', $default = '') {
  if (!$value) {
    $value = $default;
  }
  if ($value) {
    $value = $teng
      ->replace($value);
    $value = html_entity_decode($value, ENT_QUOTES, 'UTF-8');
    if ($format_str && filter_format_exists($format_str)) {
      $value = check_markup($value, $format_str);
    }
  }
  return $value;
}