...#L143 (显示) public function __construct($conn = null, $xs = null){ $this->xs = $xs; if ($conn !== null) { $this->open($conn); }} 构造函数, 打开连接
...eme.class.php#L59 (显示) public function getFieldTitle(){ if (isset($this->_typeMap[XSFieldMeta::TYPE_TITLE])) { $name = $this->_typeMap[XSFieldMeta::TYPE_TITLE]; return $this->_fields[$name]; } foreach ($this->_fields as $name => $field) { if ($field->type === XSFie...
...php#L298 (显示) public function __construct($name, $config = null){ $this->name = strval($name); if (is_array($config)) { $this->fromConfig($config); }} 构造函数
...ment.class.php#L93 (显示) public function __set($name, $value){ if ($this->_meta !== null) { throw new XSException('Magick property of result document is read-only'); } $this->setField($name, $value);} 魔术方法 __set 实现以对象属性方式设置文档字段值
... false){ if ($value === null) { if ($isMeta) { unset($this->_meta[$name]); } else { unset($this->_data[$name]); } } else { if ($isMeta) { $this->_meta[$name] = $value; } else { $this->_data[$name] = $value; }...
...XSDataSource.class.php#L384 (显示) protected function deinit(){ if ($this->fd) { fclose($this->fd); $this->fd = null; }} getDataList() 方法 protected void getDataList() 源码: sdk/php/util/XSDataSource.class.php#L392 (显示) protected function getDataLi...
... public function getAddIndex($field){ $field = strval($field); if ($this->_texts === null || !isset($this->_texts[$field])) { return null; } return $this->autoConvert($this->_texts[$field]);} 获取字段的附加索引文本 (仅限索引文档)
...function __construct($code, $message, $file, $line, $previous = null){ $this->_file = $file; $this->_line = $line; if (version_compare(PHP_VERSION, '5.3.0', '>=')) { parent::__construct($message, $code, $previous); } else { parent::__construct($message, $code); }} ...
...XSSearch.class.php#L69 (显示) public function setCharset($charset){ $this->_charset = strtoupper($charset); if ($this->_charset == 'UTF8') { $this->_charset = 'UTF-8'; } return $this;} 设置字符集 默认字符集是 UTF-8, 如果您提交的搜索语句和预期得到...
...ocument.class.php#L132 (显示) public function setCharset($charset){ $this->_charset = strtoupper($charset); if ($this->_charset == 'UTF8') { $this->_charset = 'UTF-8'; }} 设置文档字符集