EmailTemplateController.php 1.7 KB

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