Class bedezign\yii2\audit\components\Version
Inheritance | bedezign\yii2\audit\components\Version » yii\base\Component |
---|
Version
Public Methods
Method | Description | Defined By |
---|---|---|
find() | Find a model from a version. | bedezign\yii2\audit\components\Version |
findAttribute() | Find an attribute from a version. | bedezign\yii2\audit\components\Version |
lastVersion() | Get the last version of the model. | bedezign\yii2\audit\components\Version |
versions() | Get all versions of the model. | bedezign\yii2\audit\components\Version |
Method Details
Find a model from a version.
public static \yii\db\ActiveRecord find ( $class, $id, $version = null ) | ||
$class | ||
$id | ||
$version |
Find an attribute from a version.
public static null|integer|float|string findAttribute ( $class, $id, $attribute, $version ) | ||
$class | ||
$id | ||
$attribute | ||
$version |
Get the last version of the model.
public static mixed lastVersion ( $class, $id ) | ||
$class | ||
$id |
Get all versions of the model.
public static array versions ( $class, $id ) | ||
$class | ||
$id |