...56 (显示) public function __construct($p = null, $d = null){ $this->_data = array(); if (is_array($p)) { $this->_data = $p; } elseif (is_string($p)) { if (strlen($p) !== self::$_resSize) { $this->setCharset($p); return; } $this->_meta = u...
...xx.class.php convert() 方法 public static mixed convert(mixed $data, string $to, string $from) $data mixed 需要转换的数据, 支持 string 和 array, 数组会自动递归转换 $to string 转换后的字符集 $from string 转换前的字符集 {return} ...
XSDataSource All Packages | 属性 | 方法(函数) 包 XS.utilf 继承关系 abstract class XSDataSource 子类 XSCsvDataSource, XSDatabaseDataSource, XSJsonDataSource 版本 1.0.0 源代码 sdk/php/util/XSDataSource.class.php 索引数据源抽象基类 ...
...($conn, 'file://', 7)) { // write-only for saving index exchangable data to file // NOTE: this will cause file content be turncated $conn = substr($conn, 7); if (($sock = @fopen($conn, 'wb')) === false) { throw new XSException('Failed to open local file for wri...
XSCsvDataSource All Packages | 属性 | 方法(函数) 包 XS.util 继承关系 class XSCsvDataSource » XSDataSource 版本 1.0.0 源代码 sdk/php/util/XSDataSource.class.php CSV 数据源 可在文件开头指定字段(必须是有效字段), 否则将默认...
...nset XSComponent add() 添加文档到索引中 XSIndex addExdata() 批量提交索引命令封包数据 XSIndex addServer() 增加一个同步索引服务器 XSIndex addSynonym() 添加同义词 XSIndex beginRebuild() 开始重建索引 XSIndex clean() ...
XSJsonDataSource All Packages | 属性 | 方法(函数) 包 XS.util 继承关系 class XSJsonDataSource » XSDataSource 版本 1.0.0 源代码 sdk/php/util/XSDataSource.class.php JSON 数据源 要求以 \n (换行符) 分割, 每行为一条完整的 json 数据...