You are here

private static function cf_error::p_report_invalid_argument_object in Common Functionality 7.2

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

This is for objects.

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.

2 calls to cf_error::p_report_invalid_argument_object()
cf_error::on_exception in modules/cf_error/classes/cf_error.php
Reports php exceptions.
cf_error::on_query_execution in modules/cf_error/classes/cf_error.php
Reports query execution failures.

File

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

Class

cf_error

Code

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