...DataSource.class.php#L211 (显示) protected function deinit(){ $this->db->close();} getCharset() 方法 public mixed getCharset() {return} mixed 如果数据库不支持 UTF-8 转换则返回 false 源码: sdk/php/util/XSDataSource.class.php#L138 (显示) public func...
setDb() 方法 public XSIndex setDb(string $name) $name string 数据库名称 {return} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L439 (显示) public function setDb($name){ $this->execCommand(array('cmd' => XS_CMD_INDEX_SET_...
...显示) public function clean(){ $this->execCommand(XS_CMD_INDEX_CLEAN_DB, XS_CMD_OK_DB_CLEAN); return $this;} 完全清空索引数据 如果当前数据库处于重建过程中将禁止清空
getDbTotal() 方法 public int getDbTotal() {return} int 数据总量 源码: sdk/php/lib/XSSearch.class.php#L659 (显示) public function getDbTotal(){ $cmd = new XSCommand(XS_CMD_SEARCH_DB_TOTAL); $res = $this->execCommand($cmd, XS_CMD_OK_DB_TOTAL); $tmp = unpack('Itot...
...array(); $limit = max(1, min(50, intval($limit))); // query from log_db $this->xs->setScheme(XSFieldScheme::logger()); try { $this->setDb(self::LOG_DB)->setLimit($limit); if ($type !== 'lastnum' && $type !== 'currnum') { $type = 'total'; } $result =...
deinit() 方法 protected void deinit() 源码: sdk/php/util/XSDataSource.class.php#L211 (显示) protected function deinit(){ $this->db->close();}
init() 方法 protected void deinit() 源码: sdk/php/util/XSDataSource.class.php#L211 (显示) protected function deinit(){ $this->db->close();}
...ource.class.php#L138 (显示) public function getCharset(){ if ($this->db->setUtf8()) { return 'UTF-8'; } return parent::getCharset();} 返回数据库输出字符集
...>limit -= self::PLIMIT; $this->offset += self::PLIMIT; return $this->db->query($sql);} 返回一批数据
addDb() 方法 public XSSearch addDb(string $name) $name string {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L492 (显示) public function addDb($name){ $name = strval($name); $this->execCommand(array('cmd' => XS_...