搜索

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

11.XSCommand::__construct

...ion __construct($cmd, $arg1 = 0, $arg2 = 0, $buf = '', $buf1 = ''){ if (is_array($cmd)) { foreach ($cmd as $key => $value) { if ($key === 'arg' || property_exists($this, $key)) { $this->$key = $value; } } } else { $this->cmd = $cmd; ...

12.XSSearch::setSort

...c function setSort($field, $asc = false, $relevance_first = false){ if (is_array($field)) { return $this->setMultiSort($field, $asc, $relevance_first); } if ($field === null) { $cmd = new XSCommand(XS_CMD_SEARCH_SET_SORT, XS_CMD_SORT_TYPE_RELEVANCE); } else { $type =...

13.XSJsonDataSource::getDataList

...rn $this->getDataList(); } $item = json_decode($line, true); if (!is_array($item) || count($item) === 0) { switch (json_last_error()) { case JSON_ERROR_DEPTH: $error = ' - Maximum stack depth exceeded'; break; case JSON_ERROR_CTRL_C...

14.XSSearch::setMultiSort

...setMultiSort($fields, $reverse = false, $relevance_first = false){ if (!is_array($fields)) { return $this->setSort($fields, !$reverse, $relevance_first); } // [vno][0/1] (0:reverse,1:asc) $buf = ''; foreach ($fields as $key => $value) { if (is_bool($value)) { ...

15.XSIndex::del

...->xs->getField($field); // get commands $cmds = array(); $terms = is_array($term) ? array_unique($term) : array($term); $terms = XS::convert($terms, 'UTF-8', $this->xs->getDefaultCharset()); foreach ($terms as $term) { $cmds[] = new XSCommand(XS_CMD_INDEX_REMOVE, 0, $field->vno...

16.XSDatabase

...'', $sql); $sql .= ' LIMIT 1'; $res = $this->query($sql); return (is_array($res) && isset($res[0])) ? $res[0] : false;} 查询数据库首行 setUtf8() 方法 public bool setUtf8() {return} bool 如果数据库能直接输出 UTF-8 编码则返回 true 否则返回 fal...

17.XSJsonDataSource

...rn $this->getDataList(); } $item = json_decode($line, true); if (!is_array($item) || count($item) === 0) { switch (json_last_error()) { case JSON_ERROR_DEPTH: $error = ' - Maximum stack depth exceeded'; break; case JSON_ERROR_CTRL_C...

18.XSDocument

...ction __construct($p = null, $d = null){ $this->_data = array(); if (is_array($p)) { $this->_data = $p; } elseif (is_string($p)) { if (strlen($p) !== self::$_resSize) { $this->setCharset($p); return; } $this->_meta = unpack(self::$_resFormat...

19.XSDataSource

...s->dataPos = 0; $this->dataList = $this->getDataList(); if (!is_array($this->dataList) || count($this->dataList) === 0) { $this->deinit(); $this->dataList = $this->dataPos = null; return false; } } $data = $this->dataList[$this->dataPos]; ...

20.XSCommand

...ion __construct($cmd, $arg1 = 0, $arg2 = 0, $buf = '', $buf1 = ''){ if (is_array($cmd)) { foreach ($cmd as $key => $value) { if ($key === 'arg' || property_exists($this, $key)) { $this->$key = $value; } } } else { $this->cmd = $cmd; ...

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