You are here

private static function cf_error::p_report_invalid_argument_string in Common Functionality 7.2

Reports an invalid variable passed to one of this classes functions.

This is for strings.

Parameters

string $variable_name: The name of the variable that is not properly defined.

array $backtrace: A backtrace array to assign.

Return value

string A string to be passed as the argument name.

27 calls to cf_error::p_report_invalid_argument_string()
cf_error::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::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::failed_to_backup in modules/cf_error/classes/cf_error.php
Reports that something was unable to backup.
cf_error::failed_to_delete in modules/cf_error/classes/cf_error.php
Reports that something was unable to delete.
cf_error::failed_to_export in modules/cf_error/classes/cf_error.php
Reports that something was unable to export.

... See full list

File

modules/cf_error/classes/cf_error.php, line 1666
Provides the derror exception class.

Class

cf_error

Code

private static function p_report_invalid_argument_string($variable_name, $backtrace) {
  $error2 = new cf_error_code();
  $error2
    ->set_severity(WATCHDOG_ERROR);
  $error2
    ->set_backtrace($backtrace);
  self::p_empty_string($error2, $variable_name);
  return '(unknown)';
}