open() 方法 public void open(string $conn) $conn string 源码: sdk/php/lib/XSSearch.class.php#L55 (显示) public function open($conn){ parent::open($conn); $this->_prefix = array(); $this->_fieldSet = false; $this->_lastCount = false;} 连接搜索服务端...
open() 方法 public void open(mixed $conn) $conn mixed 服务端连接参数, 支持: <端口号|host:port|本地套接字路径> 源码: sdk/php/lib/XSServer.class.php#L165 (显示) public function open($conn){ $this->close(); $this->_conn = $conn; $this->_flag = self:...
...99 (显示) public function connect($param){ if (($this->link = sqlite_open($param['path'])) === false) { throw new XSException("Can not open sqlite file: '{$param['path']}'"); }} 打开数据库
...99 (显示) public function connect($param){ if (($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 要执行...
reopen() 方法 public XSServer reopen(bool $force=false) $force bool 是否强制重新连接, 默认为否 {return} XSServer 返回自己, 以便串接操作 源码: sdk/php/lib/XSServer.class.php#L185 (显示) public function reopen($force = false){ if ($this->_flag...
...($param){ try { $this->obj = new SQLite3($param['path'], SQLITE3_OPEN_READONLY); } catch (Exception $e) { throw new XSException($e->getMessage()); }} 打开数据库
...l, $xs = null){ $this->xs = $xs; if ($conn !== null) { $this->open($conn); }} 构造函数, 打开连接
...ver hasRespond() 判断服务端是否有可读数据 XSServer open() 打开服务端连接 XSServer reopen() 重新打开连接 XSServer sendCommand() 往服务器直接发送指令 (无缓存) XSServer setProject() 设置当前项目 XSServer setTimeout(...
...ontent be turncated $conn = substr($conn, 7); 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 ...
...($param){ try { $this->obj = new SQLite3($param['path'], SQLITE3_OPEN_READONLY); } catch (Exception $e) { throw new XSException($e->getMessage()); }} 打开数据库 query() 方法 public mixed query(string $sql) $sql string 要执行的 SQL 语句 {r...