全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: iyuheng

央视网邮箱可以免费收传真

[复制链接]
发表于 2013-3-14 14:00:13 | 显示全部楼层
不错,注册个去~~
发表于 2013-3-14 14:02:56 | 显示全部楼层
不错哦这个
发表于 2013-3-14 14:11:11 | 显示全部楼层
已注册 不错噢
发表于 2013-3-14 16:13:16 | 显示全部楼层
add(7, '不能找到文件:'.$file, __METHOD__, __LINE__); * 2、类中 * //定义为属性 * public $error = NULL; * //构造器中初始化error * $this->error = new base_error($this); * //使用 * ......(程序错误了) * $this->error->add(7, '不能找到文件:'.$file, __METHOD__, __LINE__); * 3、静态类中 * //定义为属性 * static public $error = NULL; * //在类定义外初始化属性 * base_db_connmgr:error = new base_error(base_db_connmgr); */ class base_error { public $ownerClass; public $errors; public function __construct($owner = NULL) { if (is_string($owner)) { $this->ownerClass = $owner; } else if (is_object($owner)) { $this->ownerClass = get_class($owner); } else { $this->ownerClass = 'NONE'; } } /** * 添加一个error * @param unknown_type $no 错误号(非零) * @param unknown_type $msg 错误信息(字符串、base_error对象) * @param unknown_type $method 如果在函数内调用,传入__METHOD__,否则传入NULL * @param unknown_type $line 行号,传入__LINE__ */ public function add($no, $msg = '', $method = NULL, $line = 0) { if ($this->errors == NULL) { $this->errors = array(); } if ($no instanceof base_error) { $this->errors[] = array( 'no' => $no, 'msg' => $msg, 'path' => $method.'::'.$line ); } else { $this->errors[] = array( 'no' => $no, 'msg' => $msg, 'path' => $method.'::'.$line ); } } /** * 检查是否有错误(即是否有程序错误并调用了add) */ public function hasError() { return $this->errors !== NULL; } public function getErrorStack() { return print_r($this->errors, true); } } ?>
Fatal error: Class 'base_error' not found in /data/www/cntvmail/class/factory/model.cls.php on line 13
发表于 2013-3-14 16:15:02 | 显示全部楼层
牛逼
发表于 2013-3-14 16:41:32 | 显示全部楼层
刚注册并登陆成功
发表于 2013-3-14 17:31:23 | 显示全部楼层
好东西~~
发表于 2013-3-14 23:24:07 | 显示全部楼层
本帖最后由 QuaintJade 于 2013-5-19 12:39 编辑

居然直接是@cntv.cn,就不怕别人假冒央视发诈骗邮件?

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-9-23 09:12 , Processed in 0.081344 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表