...、取值 $value = $doc->f('name'); // 用函数方式进行取值 $doc->setField('name', 'value'); // 用函数方式进行赋值 $doc->setFields(array('name' => 'value', 'name2' => 'value2')); // 用数组进行批量赋值 // 迭代方式取所有字段值 foreach($doc as $name => $value) { ...
... XSDatabaseMySQLI query1() 查询数据库首行 XSDatabase setUtf8() 将输出字符集设置为 UTF-8 XSDatabaseMySQLI 方法明细 close() 方法 public void close() 源码: sdk/php/util/XSDataSource.class.php#L641 (显示) public function close(){ if ($th...
...p#L514 (显示) public function fromConfig($config){ // type & default setting if (isset($config['type'])) { $predef = 'self::TYPE_' . strtoupper($config['type']); if (defined($predef)) { $this->type = constant($predef); if ($this->type == self::TYPE_ID) { ...
...置 XS config array 获取配置原始数据 XS defaultCharset string 获取项目的默认字符集 XS fieldBody XSFieldMeta 获取当前内容字段 XS fieldId XSFieldMeta 获取当前主键字段 XS fieldTitle XSFieldMeta 获取当前标题字段 ...