CActiveRecordMetaData
| 包 | system.db.ar |
|---|---|
| 继承 | class CActiveRecordMetaData |
| 可用自 | 1.0 |
| 版本 | $Id$ |
CActiveRecordMetaData represents the meta-data for an Active Record class.
公共属性
| 属性 | 类型 | 描述 | 被定义在 |
|---|---|---|---|
| attributeDefaults | array | attribute default values | CActiveRecordMetaData |
| columns | array | table columns | CActiveRecordMetaData |
| relations | array | list of relations | CActiveRecordMetaData |
| tableSchema | CDbTableSchema | the table schema information | CActiveRecordMetaData |
公共方法
| 方法 | 描述 | 被定义在 |
|---|---|---|
| __construct() | Constructor. | CActiveRecordMetaData |
| getValidators() | CActiveRecordMetaData |
属性详情
attributeDefaults
属性
public array $attributeDefaults;
attribute default values
columns
属性
public array $columns;
table columns
relations
属性
public array $relations;
list of relations
tableSchema
属性
public CDbTableSchema $tableSchema;
the table schema information
方法详情
__construct()
方法
|
public void __construct(CActiveRecord $model)
| ||
| $model | CActiveRecord | the model instance |
Constructor.
getValidators()
方法
|
public array getValidators()
| ||
| {return} | array | list of validators |