You are here

public static function Frx::error in Forena Reports 7.4

Same name and namespace in other branches
  1. 7.5 Frx.inc \Frx::error()
  2. 7.3 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.:

10 calls to Frx::error()
forena_save_report in ./forena.common.inc
Save the report file to disk
forena_settings_validate in ./forena.admin.inc
FrxEditor::load in ./FrxEditor.inc
Load report from file system
FrxEditor::setBody in ./FrxEditor.inc
Set the value of the body of the report Will parse and set the value of the body of the report using XML
FrxFile::save in ./FrxFile.inc
Save a file into the report directory.

... See full list

File

./Frx.inc, line 248
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', FALSE);
  }
  if ($log) {
    watchdog('forena', $log, NULL, WATCHDOG_ERROR);
  }
}