close() 方法 public void close() 源码: sdk/php/util/XSDataSource.class.php#L709 (显示) public function close(){ if ($this->link) { sqlite_close($this->link); $this->link = null; }} 关闭数据库
deinit() 方法 protected void deinit() 源码: sdk/php/util/XSDataSource.class.php#L287 (显示) protected function deinit(){ if ($this->fd) { fclose($this->fd); $this->fd = null; }}
init() 方法 protected void deinit() 源码: sdk/php/util/XSDataSource.class.php#L287 (显示) protected function deinit(){ if ($this->fd) { fclose($this->fd); $this->fd = null; }}
...示) public function __toString(){ $string = '[' . __CLASS__ . '] ' . $this->getRelPath($this->getFile()) . '(' . $this->getLine() . '): '; $string .= $this->getMessage() . ($this->getCode() > 0 ? '(S#' . $this->getCode() . ')' : ''); return $string;} 将类对象转换成字符串 ...
...cache the cmd for those need not answer if ($cmd->cmd & 0x80) { $this->_sendBuffer .= $cmd; return true; } // send cmd to server $buf = $this->_sendBuffer . $cmd; $this->_sendBuffer = ''; $this->write($buf); // return true directly for local file if ($this->_fla...
close() 方法 public void close() 源码: sdk/php/util/XSDataSource.class.php#L768 (显示) public function close(){ if ($this->obj) { $this->obj->close(); $this->obj = null; }} 关闭数据库
...ocument.class.php#L132 (显示) public function setCharset($charset){ $this->_charset = strtoupper($charset); if ($this->_charset == 'UTF8') { $this->_charset = 'UTF-8'; }} 设置文档字符集
...getField($name, $throw = true){ if (is_int($name)) { if (!isset($this->_vnoMap[$name])) { if ($throw === true) { throw new XSException('Not exists field with vno: `' . $name . '\''); } return false; } $name = $this->_vnoMap[$nam...
...ICT_TXT', 4); } } if ($arg !== null && $arg !== '') { $this->setMulti($arg); }} 构造函数 初始化用于分词的搜索服务端 addDict() 方法 public XSTokenizerScws addDict(string $fpath, int $mode=NULL) $fpath string 服务端的词典路径 ...
...ublic function setScheme(XSFieldScheme $fs){ $fs->checkValid(true); $this->_scheme = $fs; if ($this->_search !== null) { $this->_search->markResetScheme(); }} 设置当前在用的字段方案