搜索

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

1.XSServer::connect

...示) protected function connect(){ // connect to server $conn = $this->_conn; if (is_int($conn) || is_numeric($conn)) { $host = 'localhost'; $port = intval($conn); } elseif (!strncmp($conn, 'file://', 7)) { // write-only for saving index exchangable data to file ...

2.XSSearch::setMultiSort

setMultiSort() 方法 (自版本 v1.1.0 起可用) public XSSearch setMultiSort(array $fields, bool $reverse=false, bool $relevance_first=false) $fields array 排序依据的字段数组, 以字段名称为键, true/false 为值表示正序或逆序 $reverse bool 是否为倒...

3.XSException::getRelPath

...getRelPath($file){ $from = getcwd(); $file = realpath($file); if (is_dir($file)) { $pos = false; $to = $file; } else { $pos = strrpos($file, '/'); $to = substr($file, 0, $pos); } for ($rel = '';; $rel .= '../') { if ($from === $to) { br...

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.XSCsvDataSource::getDataList

getDataList() 方法 protected void getDataList() 源码: sdk/php/util/XSDataSource.class.php#L392 (显示) protected function getDataList(){ if (($item = fgetcsv($this->fd, 0, $this->delim)) === false) { if ($this->inCli) { echo "INFO: reach end of file or error occ...

6.XSUtil

...blic static function copyDir($src, $dst){ if (!($dir = @dir($src)) || (!is_dir($dst) && !@mkdir($dst, 0755, true))) { return false; } while (($entry = $dir->read()) !== false) { if ($entry === '.' || $entry === '..') { continue; } $psrc = $src . DIRECT...

7.XSDatabase::query1

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

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

9.XSException

...) public function __toString(){ $string = '[' . __CLASS__ . '] ' . $this->getRelPath($this->getFile()) . '(' . $this->getLine() . '): '; $string .= $this->getMessage() . ($this->getCode() > 0 ? '(S#' . $this->getCode() . ')' : ''); return $string;} 将类对象转换成字符串 get...

10.XSDocument

...口, 以支持 foreach 遍历访问字段列表 XSDocument offsetExists() ArrayAccess 接口, 判断字段是否存在, 勿直接调用 XSDocument offsetGet() ArrayAccess 接口, 取得字段值, 勿直接调用 XSDocument offsetSet() ArrayAccess 接口, 设置字段值, 勿...

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