xhTrainCourse.php 1008 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhTrainCourse".
  5. *
  6. * @property integer $id
  7. * @property integer $classId
  8. * @property string $name
  9. * @property string $intro
  10. * @property integer $merchantId
  11. * @property integer $hidden
  12. */
  13. class xhTrainCourse extends xhBaseModel
  14. {
  15. /**
  16. * @inheritdoc
  17. */
  18. public static function tableName()
  19. {
  20. return 'xhTrainCourse';
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['classId', 'merchantId', 'hidden'], 'integer'],
  29. [['name'], 'string', 'max' => 20],
  30. [['intro'], 'string', 'max' => 1000],
  31. ];
  32. }
  33. /**
  34. * @inheritdoc
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'id' => 'ID',
  40. 'classId' => 'Class ID',
  41. 'name' => 'Name',
  42. 'intro' => 'Intro',
  43. 'merchantId' => 'Merchant ID',
  44. 'hidden' => 'Hidden',
  45. ];
  46. }
  47. }