搜索

大约有 80 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0047秒)

21.XSDatabaseMySQL::connect

...->link = mysql_connect($host, $user, $pass)) === false) { throw new XSException("Can not connect to mysql server: '$user@$host'"); } if (!mysql_select_db($param['dbname'], $this->link)) { $this->close(); throw new XSException("Can not switch to database name: '{$param['dbn...

22.XSDatabaseMySQL

...->link = mysql_connect($host, $user, $pass)) === false) { throw new XSException("Can not connect to mysql server: '$user@$host'"); } if (!mysql_select_db($param['dbname'], $this->link)) { $this->close(); throw new XSException("Can not switch to database name: '{$param['dbn...

23.开发规范

... 全面采用面向对象技术,所有失败的操作均抛出类型为 [XSException] 的异常,请在执行主线中捕捉它。具体参见 [XSException 异常](class.exception) 章节的有关介绍。 $Id$

24.XSDatabaseMySQLI::connect

...r, $pass, '', $port); if ($this->obj->connect_error) { throw new XSException("Can not connect to mysql server: '$user@$host'"); } if (!$this->obj->select_db($param['dbname'])) { $this->close(); throw new XSException("Can not switch to database name: '{$param['dbname']}'...

25.XSDatabaseSQLite

...(($this->link = sqlite_open($param['path'])) === false) { throw new XSException("Can not open sqlite file: '{$param['path']}'"); }} 打开数据库 query() 方法 public mixed query(string $sql) $sql string 要执行的 SQL 语句 {return} mixed 源码: s...

26.XSErrorException

...(函数) 包 XS 继承关系 class XSErrorException » XSException » Exception 版本 1.0.0 源代码 sdk/php/lib/XS.class.php XS 错误异常类定义, XS 所有操作过程发生错误均抛出该实例 Protected 属性 隐去继承来的属性 ...

27.XSFieldMeta::getCustomTokenizer

... } if (!class_exists($name)) { throw new XSException('Undefined custom tokenizer `' . $this->tokenizer . '\' for field `' . $this->name . '\''); } } $obj = $arg === null ? new $name : new $name($arg); if (!$obj instanceof XSTokenizer)...

28.XSDatabaseSQLite3

...th'], SQLITE3_OPEN_READONLY); } catch (Exception $e) { throw new XSException($e->getMessage()); }} 打开数据库 query() 方法 public mixed query(string $sql) $sql string 要执行的 SQL 语句 {return} mixed 源码: sdk/php/util/XSDataSource.class...

29.XSFieldScheme

...nfig); } if (isset($this->_fields[$field->name])) { throw new XSException('Duplicated field name: `' . $field->name . '\''); } if ($field->isSpeical()) { if (isset($this->_typeMap[$field->type])) { $prev = $this->_typeMap[$field->type]; throw new XSExc...

30.XSServer::connect

... if (($sock = @fopen($conn, 'wb')) === false) { throw new XSException('Failed to open local file for writing: `' . $conn . '\''); } $this->_flag |= self::FILE; $this->_sock = $sock; return; } elseif (($pos = strpos($conn, ':')) !== false) { $hos...

  • 时间不限
  • 按相关性排序