xhArticlePraise.php 698 B

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