ZoneController.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?php
  2. namespace App\Geo\Zone;
  3. use \App\Core\Template\Output as Output;
  4. use \App\Geo\Zone\Classes\Zone as Zone;
  5. class ZoneController {
  6. /**
  7. * Index
  8. * Show the main Zone list
  9. */
  10. function index(){
  11. $list = Array();
  12. for($i = 0; $i <= 10; $i++){
  13. $obj = Array();
  14. $obj['id'] = $i;
  15. $obj['value'] = md5($i);
  16. $obj['description'] = sha1($i);
  17. $list[] = $obj;
  18. }
  19. Output::render('index', $list);
  20. }
  21. /**
  22. * Create
  23. *
  24. * Render the main Zone formulary
  25. */
  26. function create(){
  27. Output::render('form', ['id' => 0]);
  28. }
  29. /**
  30. * Store
  31. *
  32. * Store the param on the database
  33. * @param Zone $zone
  34. */
  35. function store(Zone $zone){
  36. }
  37. /**
  38. * Search
  39. *
  40. * Store the param on the database
  41. * @param Zone $zone
  42. */
  43. function search(){
  44. }
  45. /**
  46. * Show
  47. *
  48. * Render one register
  49. *
  50. * @param Zone $zone
  51. */
  52. function show(Zone $zone){
  53. }
  54. /**
  55. * Edit
  56. *
  57. * Render the formular for a database Zone
  58. *
  59. * @param Zone $zone
  60. */
  61. function edit(Zone $zone){
  62. Output::render('form', $zone);
  63. }
  64. /**
  65. * Update
  66. * Store the changes of the param on the database
  67. *
  68. * @param Zone $zone
  69. */
  70. function update(Zone $zone){
  71. }
  72. /**
  73. * Destroy
  74. * If the object has soft delete.
  75. *
  76. * @param Zone $zone
  77. */
  78. function destroy(Zone $zone){
  79. }
  80. /**
  81. * Purge
  82. * Remove object even with soft delete.
  83. *
  84. * @param Zone $zone
  85. */
  86. function purge(Zone $zone){
  87. }
  88. }