jeudi 19 septembre 2019

Find the right design pattern

I have a controller class that make its objects visible only behind the login. Now, I want some of these object to be visible outside, The record are already in the database so I do not need to create them, also I do not need to create a new visibleObjectController class because the functions will be exactly the same. The objects just need to behave differently according to a visible or hidden feature.

I am quite sure there is a design pattern I can use for this. just do know which one. Any advise?

Aucun commentaire:

Enregistrer un commentaire