Esempio n. 1
0
 /** debug 函数
 	@param mix data 调试的数据
 	@param string method 写文件方法,传'w'则覆盖,传'a'则续写
 	@param string memo 摘要信息
 	@param array aCustomParam 自定义参数 xmp=>是否使用xmp来渲染
 	@author feng
 	@return bool
 	*/
 public static function debug($data, $method = "a", $memo = 'None', $aCustomParam = array('xmp' => 1))
 {
     $sm = \YcheukfReport\Lib\ALYS\ALYSConfig::get('smHandle');
     $aConfig = $sm->get('config');
     if (isset($aConfig['YcheukfReport']['debug']) && $aConfig['YcheukfReport']['debug'] == 1) {
         return \YcheukfCommon\Lib\Functions::debug($data, "[inline]---[report]---" . $memo, $aCustomParam);
     }
     return true;
 }
Esempio n. 2
0
 public function __construct($message = '', $param = '', $code = 0)
 {
     \YcheukfCommon\Lib\Functions::debug($message . ' ' . $param, "[inline]---[exception]---" . __CLASS__);
     parent::__construct($message . ' ' . $param, $code);
 }