12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace app\models;
- use Yii;
- class Base64Img extends \app\common\models\EActiveRecord
- {
-
- public static function tableName()
- {
- return '{{%base64_img}}';
- }
-
- public function rules()
- {
- return [
- [['hash'], 'required'],
- [['base64code'], 'string'],
- [['hash'], 'string', 'max' => 32],
- [['file_path'], 'string', 'max' => 500],
- [['hash'], 'unique'],
- ];
- }
-
- public function attributeLabels()
- {
- return [
- 'hash' => 'Hash',
- 'base64code' => 'Base64code',
- 'file_path' => 'File Path',
- ];
- }
- }
|