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ů.

DriverAppVersion.php 964 B

před 3 roky
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace backend\modules\api\models;
  3. use yii\db\ActiveRecord;
  4. /**
  5. * This is the model class for table "driver_app_version".
  6. *
  7. * @property integer $id
  8. * @property string $app_version
  9. * @property string $app_url
  10. * @property string $last_release
  11. */
  12. class DriverAppVersion extends ActiveRecord
  13. {
  14. /**
  15. * @inheritdoc
  16. */
  17. public static function tableName()
  18. {
  19. return 'driver_app_version';
  20. }
  21. /**
  22. * @inheritdoc
  23. */
  24. public function rules()
  25. {
  26. return [
  27. [['app_version'], 'string', 'max' => 10],
  28. [['app_url'], 'string', 'max' => 100],
  29. [['last_release'], 'string', 'max' => 20],
  30. ];
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function attributeLabels()
  36. {
  37. return [
  38. 'id' => 'ID',
  39. 'app_version' => 'App Version',
  40. 'app_url' => 'App Url',
  41. 'last_release' => 'Last Release',
  42. ];
  43. }
  44. }