xhUserTagClass.php 822 B

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