/**
  * Set the trace depth used in reporting error messages
  *
  * @param integer $depth.
  *        Set to a negative number to report all,
  *        0 to report none.
  *
  * @returns integer. The previous value of trace depth.
  */
 public static function setTraceDepth($depth)
 {
     $old_depth = self::$trace_depth;
     self::$trace_depth = $depth;
     return $old_depth;
 }
Example #2
0
 /**
  * See if there were any warning messages set before the site was initialized
  * @returns boolean
  */
 public static function hasWarnings()
 {
     return I2CE_Error::hasWarnings();
 }