...字段各项配置 源码: sdk/php/lib/XSFieldScheme.class.php#L298 (显示) public function __construct($name, $config = null){ $this->name = strval($name); if (is_array($config)) { $this->fromConfig($config); }} 构造函数 __toString() 方法 public string __to...
...lic void __toString() 源码: sdk/php/lib/XSFieldScheme.class.php#L33 (显示) public function __toString(){ $str = ''; foreach ($this->_fields as $field) { $str .= $field->toConfig() . "\n"; } return $str;} 将对象转换为配置文件字符串 addField() 方法 ...
...身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L968 (显示) public function addQueryTerm($field, $term, $addOp = XS_CMD_QUERY_OP_AND, $scale = 1){ $term = strtolower($term); $term = XS::convert($term, 'UTF-8', $this->_charset); $bscale = ($scale > 0 && $scale != 1) ? ...
...身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L492 (显示) public function addDb($name){ $name = strval($name); $this->execCommand(array('cmd' => XS_CMD_SEARCH_ADD_DB, 'buf' => $name)); $this->_curDbs[] = $name; return $this;} 添加搜索的数据库名, 支...
... 要加载的项目配置文件 源码: sdk/php/lib/XS.class.php#L284 (显示) public function __construct($file){ if (strlen($file) < 255 && !is_file($file)) { $appRoot = getenv('XS_APP_ROOT'); if ($appRoot === false) { $appRoot = defined('XS_APP_ROOT') ? XS_APP_ROO...