| 1 | <?php |
||
| 10 | class ActiveRecord extends \yii\db\ActiveRecord |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var bool If true, automatically encode and decode the data attribute |
||
| 14 | */ |
||
| 15 | protected $autoEncode = true; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $encodeAttributes = ['options']; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return Connection |
||
| 24 | */ |
||
| 25 | public static function getDb() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param bool $insert |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | public function beforeSave($insert) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param bool $insert |
||
| 46 | * @param array $changedAttributes |
||
| 47 | */ |
||
| 48 | public function afterSave($insert, $changedAttributes) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * |
||
| 60 | */ |
||
| 61 | public function afterFind() |
||
| 70 | } |