CActiveRecordMetaData
| Package | system.db.ar |
|---|---|
| Inheritance | class CActiveRecordMetaData |
| Since | 1.0 |
| Version | $Id: CActiveRecord.php 725 2009-02-22 14:13:05Z qiang.xue $ |
CActiveRecordMetaData represents the meta-data for an Active Record class.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| attributeDefaults | array | attribute default values | CActiveRecordMetaData |
| columns | array | table columns | CActiveRecordMetaData |
| relations | array | list of relations | CActiveRecordMetaData |
| tableSchema | CDbTableSchema | the table schema information | CActiveRecordMetaData |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Constructor. | CActiveRecordMetaData |
| getValidators() | CActiveRecordMetaData |
Property Details
attributeDefaults
property
public array $attributeDefaults;
attribute default values
columns
property
public array $columns;
table columns
relations
property
public array $relations;
list of relations
tableSchema
property
public CDbTableSchema $tableSchema;
the table schema information
Method Details
__construct()
method
|
public void __construct(CActiveRecord $model)
| ||
| $model | CActiveRecord | the model instance |
Constructor.
getValidators()
method
|
public array getValidators()
| ||
| {return} | array | list of validators |