You are here

public function FrxControls::expression in Forena Reports 7.4

Parameters

$value:

$format_str:

string $teng:

Return value

mixed Return an xapth expression based on data in the

File

plugins/FrxControls.inc, line 194
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 expression($value, $format_str, $teng = '', $default = '') {
  if ($value) {
    $value = $teng
      ->replace($format_str);
    if ($value) {
      $value = $teng
        ->replace('{' . $value . '}');
    }
  }
  return $value;
}