搜索

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

1.XSDatabasePDO

...ql\n"; $res = $this->obj->query($sql); if ($res === false) { $info = $this->obj->errorInfo(); throw new XSException('SQLSTATE[' . $info[0] . '] [' . $info[1] . '] ' . $info[2]); } $ret = $res->fetchAll(PDO::FETCH_ASSOC); return $ret;} 执行 SQL 语句

2.XSDebugFilter

... public function process($data, $cs = false){ echo "\n----- DEBUG DATA INFO -----\n"; print_r($data); return $data;} processDoc() 方法 public void processDoc($doc) $doc 源码: sdk/php/util/XSDataSource.class.php#L997 (显示) public function processDoc($doc...

3.XSCsvDataSource

...0, $this->delim)) === false) { if ($this->inCli) { echo "INFO: reach end of file or error occured, total lines: " . $this->line . "\n"; } return false; } $this->line++; if (count($item) === 1 && is_null($item[0])) { if ($this->inCli) { echo ...

4.XSTokenizerScws

...D_SCWS_GET_VERSION); $res = self::$_server->execCommand($cmd, XS_CMD_OK_INFO); return $res->buf;} 获取 scws 版本号 hasWord() 方法 public bool hasWord(string $text, string $xattr) $text string 要判断的文本 $xattr string 要判断的词性, 参见 getTo...

5.XSIndex

...stomDict(){ $res = $this->execCommand(XS_CMD_INDEX_USER_DICT, XS_CMD_OK_INFO); return $res->buf;} 获取自定义词典内容 getScwsMulti() 方法 (自版本 v1.4.7 起可用) public int getScwsMulti() {return} int 返回当前库的分词复合等级 源码: sdk/php...

6.XSDatabaseMySQL

...示) public function setUtf8(){ if (version_compare(mysql_get_server_info($this->link), '4.1.0', '>=')) { return @mysql_query("SET NAMES utf8", $this->link); } return false;} 将输出字符集设置为 UTF-8

7.XSJsonDataSource

...f file) if (empty($line)) { if ($this->inCli) { echo "INFO: reach end of the file, total lines: " . $this->line . "\n"; } return false; } // try to decode the line $this->line++; $line = rtrim($line, "\r\n"); if (strlen($line) === 0) { if ($th...

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