You are here

function Smarty::trigger_error in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/smarty/Smarty.class.php \Smarty::trigger_error()

trigger Smarty error

Parameters

string $error_msg:

integer $error_type:

3 calls to Smarty::trigger_error()
Smarty::register_resource in includes/moodle/lib/smarty/Smarty.class.php
Registers a resource to fetch a template
Smarty::_fetch_resource_info in includes/moodle/lib/smarty/Smarty.class.php
fetch the template info. Gets timestamp, and source if get_source is true
Smarty::_trigger_fatal_error in includes/moodle/lib/smarty/Smarty.class.php
trigger Smarty plugin error

File

includes/moodle/lib/smarty/Smarty.class.php, line 1085

Class

Smarty
@package Smarty

Code

function trigger_error($error_msg, $error_type = E_USER_WARNING) {
  trigger_error("Smarty error: {$error_msg}", $error_type);
}