...(){ // type $str = "[" . $this->name . "]\n"; if ($this->type === self::TYPE_NUMERIC) { $str .= "type = numeric\n"; } elseif ($this->type === self::TYPE_DATE) { $str .= "type = date\n"; } elseif ($this->type === self::TYPE_ID) { $str .= "type = id\n"; } elseif ...
... 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) { $this->flag = self::FLAG_INDEX_SELF; ...
...判断当前字段是否需要在混合区索引 XSFieldMeta hasIndexSelf() 判断当前字段是否需要在字段区索引 XSFieldMeta isBoolIndex() 判断当前字段的索引是否为布尔型 XSFieldMeta isNumeric() 判断当前字段是否为数字型 XSFieldMeta ...
...ss.php#L376 (显示) public function hasIndex(){ return ($this->flag & self::FLAG_INDEX_BOTH) ? true : false;} 判断当前字段是否需要索引