12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%base64_img}}".
- *
- * @property string $hash
- * @property string|null $base64code
- * @property string $file_path
- */
- class Base64Img extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%base64_img}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['hash'], 'required'],
- [['base64code'], 'string'],
- [['hash'], 'string', 'max' => 32],
- [['file_path'], 'string', 'max' => 500],
- [['hash'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'hash' => 'Hash',
- 'base64code' => 'Base64code',
- 'file_path' => 'File Path',
- ];
- }
- }
|