You are here

public static function Frx::error in Forena Reports 7.5

Same name and namespace in other branches
  1. 7.3 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.:

10 calls to Frx::error()
DataManager::load_provider in src/DataManager.php
Load the data provider class based on the class name.
DataManager::repository in src/DataManager.php
Load repository
forena_save_report in ./forena.common.inc
Save the report file to disk
forena_settings_validate in ./forena.admin.inc
FrxMSSQL::mssql_xml in src/Driver/FrxMSSQL.php
Generate xml from sql using the provided f_forena

... See full list

File

./Frx.inc, line 228
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);
  }
}