PHP Object Oriented - Best way to implement multiple user roles

Posted by Sabeen Malik on Stack Overflow See other posts from Stack Overflow or by Sabeen Malik
Published on 2010-05-12T09:29:32Z Indexed on 2010/05/12 9:34 UTC
Read the original article Hit count: 232

Filed under:
|

I have three types of users: A, B, C .. Hence a user base class and then we have 3 derived classes. However it is possible for a user to be of 2 types at the same time. How would we go about dealing with this in a decent fashion, keeping in mind the type(s) of the user will define the kind of access they have in an application.

© Stack Overflow or respective owner

Related posts about php

Related posts about object-oriented-design