Embed Notice
HTML Code
Corresponding Notice
- Embed this noticeI don't realy like how I implemented this because I have some of the privacy Logic in the Calendar Module/Events and some in the Event Model.
So How is the usual approach for that?
Model makes the connection to the database and fetches the Events.
- I can decide there what conditions must be applied (needs to load and read the configuration).
- Or I can create different methodes for different use cases in the Model and decide in the Module which one I call.
- Or I can call a more generic methode in the model with the privay parameter from the Module
So many possibilities. Which one would you choose and why?