示例#1
0
 public function __construct()
 {
     $this->errmsg = "_XY_OK_";
     static $inited = false;
     //只初始化一次
     if ($inited) {
         return;
     }
     self::$db = get_class($this) == "XYMysql" ? $this : new XYMysql();
     $inited = true;
 }
示例#2
0
 function __construct()
 {
     $this->connect();
     parent::__construct();
 }