ReportPhoto.php 876 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "report_photo".
  6. *
  7. * @property int $id
  8. * @property int $topic_id
  9. * @property string|null $title
  10. * @property int $sort
  11. * @property int $active
  12. */
  13. class ReportPhoto extends \yii\db\ActiveRecord
  14. {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public static function tableName()
  19. {
  20. return 'report_photo';
  21. }
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['topic_id', 'sort', 'active'], 'integer'],
  29. [['title'], 'string'],
  30. ];
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function attributeLabels()
  36. {
  37. return [
  38. 'id' => 'ID',
  39. 'topic_id' => 'Topic ID',
  40. 'title' => 'Title',
  41. 'sort' => 'Sort',
  42. 'active' => 'Active',
  43. ];
  44. }
  45. }