VisitStatisticsByDay.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%visit_statistics_by_day}}".
  6. *
  7. * @property int $id
  8. * @property string $table_name
  9. * @property int $data_id
  10. * @property int $cat_id
  11. * @property int $user_id
  12. * @property int $is_ad
  13. * @property int $uv
  14. * @property int $pv
  15. * @property int $date
  16. */
  17. class VisitStatisticsByDay extends \app\common\models\EActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%visit_statistics_by_day}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['data_id', 'cat_id', 'user_id', 'is_ad', 'uv', 'pv', 'date'], 'integer'],
  33. [['date'], 'required'],
  34. [['table_name'], 'string', 'max' => 50],
  35. ];
  36. }
  37. /**
  38. * {@inheritdoc}
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'table_name' => 'Table Name',
  45. 'data_id' => 'Data ID',
  46. 'cat_id' => 'Cat ID',
  47. 'user_id' => 'User ID',
  48. 'is_ad' => 'Is Ad',
  49. 'uv' => 'Uv',
  50. 'pv' => 'Pv',
  51. 'date' => 'Date',
  52. ];
  53. }
  54. }