搜索

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

41.XSDatabaseMySQL

...til/XSDataSource.class.php#L498 (显示) public function close(){ if ($this->link) { mysql_close($this->link); $this->link = null; }} 关闭数据库连接 connect() 方法 public void connect(array $param) $param array 连接参数, 包含: user,pass,host,...

42.XSErrorException::__toString

...示) public function __toString(){ $string = '[' . __CLASS__ . '] ' . $this->getRelPath($this->_file) . '(' . $this->_line . '): '; $string .= $this->getMessage() . '(' . $this->getCode() . ')'; return $string;} 将类对象转换成字符串

43.XSSearch::count

... public function count($query = null){ $query = $query === null ? '' : $this->preQueryString($query); if ($query === '' && $this->_count !== null) { return $this->_count; } $cmd = new XSCommand(XS_CMD_SEARCH_GET_TOTAL, 0, $this->_defaultOp, $query); $res = $this->execCommand($c...

44.XSTokenizerSplit

...n __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = $arg; }} getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.class.php#L86 (显示) public function getTokens($value, ...

45.XSDocument::addIndex

...ion 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); }} 给字段...

46.XSIndex::del

... del($term, $field = null){ // get field $field = $field === null ? $this->xs->getFieldId() : $this->xs->getField($field); // get commands $cmds = array(); $terms = is_array($term) ? array_unique($term) : array($term); $terms = XS::convert($terms, 'UTF-8', $this->xs->getDefaultChar...

47.XSIndex

...lib/XSIndex.class.php#L528 (显示) public function __destruct(){ if ($this->_rebuild === true) { try { $this->endRebuild(); } catch (Exception $e) { } } foreach (self::$_adds as $srv) { $srv->close(); } self::$_adds = array(); pa...

48.XSCommand::__construct

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

49.XSSearch::getQuery

...blic function getQuery($query = null){ $query = $query === null ? '' : $this->preQueryString($query); $cmd = new XSCommand(XS_CMD_QUERY_GET_STRING, 0, $this->_defaultOp, $query); $res = $this->execCommand($cmd, XS_CMD_OK_QUERY_STRING); if (strpos($res->buf, 'VALUE_RANGE') !== false) { ...

50.XSComponent

...c function __get($name){ $getter = 'get' . $name; if (method_exists($this, $getter)) { return $this->$getter(); } // throw exception $msg = method_exists($this, 'set' . $name) ? 'Write-only' : 'Undefined'; $msg .= ' property: ' . get_class($this) . '::$' . $name; throw ne...

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