...ng 自定义词库内容 源码: sdk/php/lib/XSIndex.class.php#L484 (显示) public function getCustomDict(){ $res = $this->execCommand(XS_CMD_INDEX_USER_DICT, XS_CMD_OK_INFO); return $res->buf;} 获取自定义词典内容
... 最大长度为 255字节 源码: sdk/php/lib/XSServer.class.php#L62 (显示) public function __construct($cmd, $arg1 = 0, $arg2 = 0, $buf = '', $buf1 = ''){ if (is_array($cmd)) { foreach ($cmd as $key => $value) { if ($key === 'arg' || property_exists($this, $key)) { ...
...tring 新的词典内容 源码: sdk/php/lib/XSIndex.class.php#L495 (显示) public function setCustomDict($content){ $cmd = array('cmd' => XS_CMD_INDEX_USER_DICT, 'arg1' => 1, 'buf' => $content); $this->execCommand($cmd, XS_CMD_OK_DICT_SAVED);} 设置自定义词典内容
... public void close() 源码: sdk/php/util/XSDataSource.class.php#L833 (显示) public function close(){ $this->obj = null;} 关闭数据库 connect() 方法 public void connect(array $param) $param array 连接参数, 包含: user, pass ... 源码: sdk/php/util/XSDa...
... $cs 源码: sdk/php/util/XSDataSource.class.php#L990 (显示) public function process($data, $cs = false){ echo "\n----- DEBUG DATA INFO -----\n"; print_r($data); return $data;} processDoc() 方法 public void processDoc($doc) $doc 源码: ...
... 要加载的项目配置文件 源码: 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...
getFieldBody() 方法 public XSFieldMeta getFieldBody() {return} XSFieldMeta 类型为 BODY 的字段 源码: sdk/php/lib/XS.class.php#L501 (显示) public function getFieldBody(){ return $this->_scheme->getFieldBody();} 获取当前内容字段
makeDsn() 方法 abstract protected void makeDsn(array $param) $param array 源码: sdk/php/util/XSDataSource.class.php#L859 (显示) abstract protected function makeDsn($param); 提取参数内容生成 PDO 连接专用的 DSN
...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() 方法 ...
...型为 BODY 的字段 源码: sdk/php/lib/XSFieldScheme.class.php#L77 (显示) public function getFieldBody(){ if (isset($this->_typeMap[XSFieldMeta::TYPE_BODY])) { $name = $this->_typeMap[XSFieldMeta::TYPE_BODY]; return $this->_fields[$name]; } return false;} 获取...