You are here

public static function Frx::error in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.5 Frx.inc \Frx::error()
  2. 7.4 Frx.inc \Frx::error()

General wrapper procedure for reporting erros

Parameters

string $short_message Message that will be displayed to the users:

string $log Message that will be recorded in the logs.:

3 calls to Frx::error()
forena_save_report in ./forena.common.inc
Save the report file to disk
FrxRepoMan::load_provider in ./FrxRepoMan.inc
Load the data provider class based on the class name.
FrxRepoMan::repository in ./FrxRepoMan.inc
Load repository

File

./Frx.inc, line 179
Frx.incL General Forena Reporting Class

Class

Frx

Code

public static function error($short_message = '', $log = '') {
  if ($short_message) {
    drupal_set_message(check_markup($short_message), 'error');
  }
  if ($log) {
    watchdog('forena', $log, NULL, WATCHDOG_ERROR);
  }
}