private static function cf_error::p_invalid_variable in Common Functionality 7.2
Reports variables as invalid to the watchdog system.
Parameters
cf_error_code $error: The error code class object associated with the error.
string $argument_names: The variable name of the argument in question.
string $why: The specific reason for this watchdog report.
array $variables: Locale safe parameter handling for all text found in the 'why' parameter.
15 calls to cf_error::p_invalid_variable()
- cf_error::invalid_variable in modules/
cf_error/ classes/ cf_error.php - Reports variables as invalid to the watchdog system.
- cf_error::p_empty_array in modules/
cf_error/ classes/ cf_error.php - Reports that a given argument is supposed to be non-empty array but is not.
- cf_error::p_empty_string in modules/
cf_error/ classes/ cf_error.php - Reports that a given argument is supposed to be non-empty string but is not.
- cf_error::p_invalid_array in modules/
cf_error/ classes/ cf_error.php - Reports that a given argument is supposed to be an array but is not.
- cf_error::p_invalid_bool in modules/
cf_error/ classes/ cf_error.php - Reports that a given argument is supposed to be an boolean but is not.
File
- modules/
cf_error/ classes/ cf_error.php, line 1232 - Provides the derror exception class.
Class
Code
private static function p_invalid_variable(cf_error_code $error, $argument_name, $why, array $variables) {
self::p_print_message($error, "The variable '%cf_error-argument_name' is invalid or has a problem, reason: " . $why, array_merge($variables, array(
'%cf_error-argument_name' => $argument_name,
)));
}