| 1 | <?php |
||
| 19 | class File extends \yii\db\ActiveRecord |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @inheritdoc |
||
| 23 | * @codeCoverageIgnore |
||
| 24 | * @internal |
||
| 25 | */ |
||
| 26 | public static function tableName() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritdoc |
||
| 33 | * @internal |
||
| 34 | */ |
||
| 35 | 8 | public function behaviors() |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @internal |
||
| 49 | */ |
||
| 50 | 8 | public function beforeSave($insert) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Generate a new name |
||
| 66 | * |
||
| 67 | * @param string $extension The file extension |
||
| 68 | * @return string |
||
| 69 | */ |
||
| 70 | 8 | public function generateName($extension) |
|
| 75 | } |
||
| 76 |