RT::CachedGroupMember
use RT::CachedGroupMember;
Create takes a hash of values and creates a row in the database:
'Group' is the "top level" group we're building the cache for. This
is an RT::Principal object
'Member' is the RT::Principal of the user or group we're adding to
the cache.
'ImmediateParent' is the RT::Principal of the group that this
principal belongs to to get here
int(11) 'Via' is an internal reference to CachedGroupMembers->Id of
the "parent" record of this cached group member. It should be empty if
this member is a "direct" member of this group. (In that case, it will
be set to this cached group member's id after creation)
This routine should _only_ be called by GroupMember->Create
Deletes the current CachedGroupMember from the group it's in and cascades the delete to all submembers.
SetDisableds the current CachedGroupMember from the group it's in and cascades the SetDisabled to all submembers. This routine could be completely excised if mysql supported foreign keys with cascading SetDisableds.
Returns the RT::Principal object for this group Group
Returns the RT::Principal object for this group ImmediateParent
Returns the RT::Principal object for this group member
Returns the current value of id. (In the database, id is stored as int(11).)
Returns the current value of GroupId. (In the database, GroupId is stored as int(11).)
Set GroupId to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, GroupId will be stored as a int(11).)
Returns the current value of MemberId. (In the database, MemberId is stored as int(11).)
Set MemberId to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, MemberId will be stored as a int(11).)
Returns the current value of Via. (In the database, Via is stored as int(11).)
Set Via to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Via will be stored as a int(11).)
Returns the current value of ImmediateParentId. (In the database, ImmediateParentId is stored as int(11).)
Set ImmediateParentId to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, ImmediateParentId will be stored as a int(11).)
Returns the current value of Disabled. (In the database, Disabled is stored as smallint(6).)
Set Disabled to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Disabled will be stored as a smallint(6).)
← Back to index