Closed pfrenssen closed 8 years ago
@amitaibu do you think this is a good idea? I'm trying to come up with some novice issues in case people want to help during the code sprint in Drupalaton next week.
Also, do you think the naming scheme is ok? It could also be OgMembership::isBlocked()
etc.
Yes, it a nice idea. I would go with the shorter isBlocked
Ok, I'll update the issue summary.
@pfrenssen, @amitaibu PR for your review please.
Thanks @dakala! I've also added you to this repo, so you can push your code here, and we can collaborate more easily.
We could provide some helper methods in
OgMembership
to easily check the membership state. Currently to see for example if a user is blocked we need to do:It would be much nicer to be able to do:
Scope
OgMembership::isBlocked()
OgMembership::isActive()
OgMembership::isPending()