/** * Mysql构造函数 * * @param string $host * @param string $user * @param string $password * @param string $db_name * @param string $charset */ public function __construct($host, $port, $user, $password, $db_name, $charset) { $this->host = $host; $this->port = $port; $this->user = $user; $this->db_name = $db_name; $this->charset = $charset; $this->password = $password; $this->dbdebug = factory::createDBDebugObject(); }