User Group OPM.
Hook into appropriate actions.
__construct( integer $user_id, integer $group_id )
Create by user and group id.
Must have been persisted.
__get( string $name )
Retrieve a property by name.
create( array $map )
Persist a user-group relation.
read( integer $user_id, integer $group_id )
Retrieve a user-group relation.
update( array $map )
Update user-group relation.
This is a relation and as the relation is, this does nothing and
it SHOULD do nothing.
delete( integer $user_id, integer $group_id )
Remove user-group relation.
deleted_user( integer $user_id )
Hooks into the deleted_user action to remove the deleted user from
all groups it belongs to.
remove_user_from_blog( integer $user_id, integer $blog_id )
Hooks into the remove_user_from_blog action to remove the user
from groups that belong to that blog.
Note that this is preemptive as there is no removed_user_from_blog action.