MidCOM level replacement for the Midgard Group record with framework support.

package midcom.db

 Methods

_on_loaded ()

Updates all computed members.

add_member (\midcom_db_person $person)

Helper function, adds the given person to this group.

The current user must have midgard:create privileges on this object for this to succeed. If the person is already a member of this group, nothing is done.

Parameters

$person

\midcom_db_personThe person to add.

Returns

booleanIndicating success.

get_label ()

is_member (\midcom_db_person $person)

Checks whether the given user is a member of this group.

Parameters

$person

\midcom_db_personThe person to check.

Returns

booleanIndicating membership.

 Properties

 

mixed $__mgdschema_class_name__

 

mixed $__midcom_class_name__