...c 源码: sdk/php/lib/XSTokenizer.class.php#L62 (显示) public function getTokens($value, XSDocument $doc = null){ return array($value);}
...引 源码: sdk/php/util/XSDataSource.class.php#L969 (显示) public function process($data, $cs = false); 字段数据处理函数
...元数据对象 源码: sdk/php/lib/XS.class.php#L514 (显示) public function getField($name, $throw = true){ return $this->_scheme->getField($name, $throw);} 获取项目字段元数据
... null 源码: sdk/php/lib/XSDocument.class.php#L221 (显示) public function getAddIndex($field){ $field = strval($field); if ($this->_texts === null || !isset($this->_texts[$field])) { return null; } return $this->autoConvert($this->_texts[$field]);} 获取字段的附...
编码问题找到原因,我使用的是PHP5版本,默认执行了这个构造函数 function __construct() { $this->PSCWS4(); } 导致使用的仍是GBK编码,$cws->set_charset('utf8');一下就可以了。 期待帮忙答复一下第二个问题,谢谢老大。
...接操作 源码: sdk/php/lib/XSServer.class.php#L185 (显示) public function reopen($force = false){ if ($this->_flag & self::BROKEN || $force === true) { $this->open($this->_conn); } return $this;} 重新打开连接 仅应用于曾经成功打开的连并且异常关闭...
...集 源码: sdk/php/util/XSUtil.class.php#L69 (显示) public static function setCharset($charset){ if ($charset !== null && strcasecmp($charset, 'utf8') && strcasecmp($charset, 'utf-8')) { self::$charset = $charset; ob_start(array(__CLASS__, 'convertOut')); }} 设置输...
...e 源码: sdk/php/util/XSDataSource.class.php#L220 (显示) protected function getDataList(){ if ($this->limit <= 0) { return false; } $sql = $this->sql . ' LIMIT ' . min(self::PLIMIT, $this->limit) . ' OFFSET ' . $this->offset; $this->limit -= self::PLIMIT; $this->offset ...
...接操作 源码: 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#L149 (显示) public function __toString(){ $string = '[' . __CLASS__ . '] ' . $this->getRelPath($this->_file) . '(' . $this->_line . '): '; $string .= $this->getMessage() . '(' . $this->getCode() . ')'; return $string;} 将类对象...