Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

59 řádky
1.2 KiB

  1. <?php
  2. namespace backend\modules\api\models;
  3. use yii\db\ActiveRecord;
  4. /**
  5. * This is the model class for table "run_bus_pos".
  6. *
  7. * @property integer $id
  8. * @property integer $run_id
  9. * @property integer $bus_no
  10. * @property string $phone_serial_no
  11. * @property string $log_time
  12. * @property string $pos_x
  13. * @property string $pos_y
  14. * @property integer $driver_id
  15. */
  16. class RunBusPos extends ActiveRecord
  17. {
  18. /**
  19. * @inheritdoc
  20. */
  21. public static function tableName()
  22. {
  23. return 'run_bus_pos';
  24. }
  25. /**
  26. * @inheritdoc
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['run_id', 'bus_no', 'driver_id'], 'integer'],
  32. [['pos_x', 'pos_y'], 'number'],
  33. [['phone_serial_no'], 'string', 'max' => 64],
  34. [['log_time'], 'string', 'max' => 20],
  35. ];
  36. }
  37. /**
  38. * @inheritdoc
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'run_id' => 'Run ID',
  45. 'bus_no' => 'Bus No',
  46. 'phone_serial_no' => 'Phone Serial No',
  47. 'log_time' => 'Log Time',
  48. 'pos_x' => 'Pos X',
  49. 'pos_y' => 'Pos Y',
  50. 'driver_id' => 'Driver ID',
  51. ];
  52. }
  53. }