MigrateForm.php 639 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace addons\RfDevTool\common\models;
  3. use yii\base\Model;
  4. /**
  5. * Class MigrateForm
  6. * @package addons\RfDevTool\common\models
  7. * @author jianyan74 <751393839@qq.com>
  8. */
  9. class MigrateForm extends Model
  10. {
  11. public $addon;
  12. public $tables = [];
  13. /**
  14. * {@inheritdoc}
  15. */
  16. public function rules()
  17. {
  18. return [
  19. [['tables', 'addon'], 'required'],
  20. [['tables'], 'safe'],
  21. ];
  22. }
  23. /**
  24. * @return array
  25. */
  26. public function attributeLabels()
  27. {
  28. return [
  29. 'tables' => '表名',
  30. 'addon' => '系统/插件',
  31. ];
  32. }
  33. }
粤ICP备19079148号