123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace app\modules\admin\models;
- use Yii;
- /**
- * This is the model class for table "{{%config}}".
- *
- * @property string $name
- * @property string|null $value
- * @property string $bak
- */
- class Config extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%config}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['name'], 'required'],
- [['value'], 'string'],
- [['name', 'bak'], 'string', 'max' => 50],
- [['name'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'name' => 'Name',
- 'value' => 'Value',
- 'bak' => 'Bak',
- ];
- }
- }
|