搜索

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

1.XSFieldMeta::__construct

...__construct($name, $config = null){ $this->name = strval($name); if (is_array($config)) { $this->fromConfig($config); }} 构造函数

2.XSDocument::addIndex

...blic function addIndex($field, $text){ $field = strval($field); if (!is_array($this->_texts)) { $this->_texts = array(); } if (!isset($this->_texts[$field])) { $this->_texts[$field] = strval($text); } else { $this->_texts[$field] .= "\n" . strval($text); }} ...

3.XSDatabase::query1

...'', $sql); $sql .= ' LIMIT 1'; $res = $this->query($sql); return (is_array($res) && isset($res[0])) ? $res[0] : false;} 查询数据库首行

4.XSDocument::addTerm

...n addTerm($field, $term, $weight = 1){ $field = strval($field); if (!is_array($this->_terms)) { $this->_terms = array(); } if (!isset($this->_terms[$field])) { $this->_terms[$field] = array($term => $weight); } elseif (!isset($this->_terms[$field][$term])) { $this...

5.XSDataSource::getData

...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]; ...

6.XSDocument::__construct

...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...

7.XSSearch::highlight

... return $value; } // initlize the highlight replacements if (!is_array($this->_highlight)) { $this->initHighlight(); } // process replace if (isset($this->_highlight['pattern'])) { $value = preg_replace($this->_highlight['pattern'], $this->_highlight['replace'], $...

8.XSSearch::setFacets

... public function setFacets($field, $exact = false){ $buf = ''; if (!is_array($field)) { $field = array($field); } foreach ($field as $name) { $ff = $this->xs->getField($name); if ($ff->type !== XSFieldMeta::TYPE_STRING) { throw new XSException("Field `$na...

9.XS::convert

... if ($to == $from) { return $data; } // array traverse if (is_array($data)) { foreach ($data as $key => $value) { $data[$key] = self::convert($value, $to, $from); } return $data; } // string contain 8bit characters if (is_string($data) && preg...

10.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
  • 时间不限
  • 按相关性排序