workboardresponse.class.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
  3. * Copyright (C) 2018 Charlene Benke <charlie@patas-monkey.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /**
  19. * \file htdocs/core/class/WorkboardResponse.class.php
  20. * \brief Class that represents response of load_board functions
  21. */
  22. class WorkboardResponse
  23. {
  24. /**
  25. * Image URL to represent the board item
  26. * @var string
  27. */
  28. public $img;
  29. /**
  30. * Label of the warning
  31. * @var string
  32. */
  33. public $label;
  34. /**
  35. * URL to list to do items
  36. * @var string
  37. */
  38. public $url;
  39. /**
  40. * (optional) If set, to do late items will link to this url
  41. * @var string
  42. */
  43. public $url_late;
  44. /**
  45. * Delay time to mark an item as late. In number of days.
  46. * @var double
  47. */
  48. public $warning_delay;
  49. /**
  50. * Number of items to do
  51. * @var int
  52. */
  53. public $nbtodo = 0;
  54. /**
  55. * Number of to do items which are late
  56. * @var int
  57. */
  58. public $nbtodolate = 0;
  59. /**
  60. * total price of items
  61. * @var int
  62. */
  63. public $total = 0;
  64. }