[rt-devel] Understanding RT:Users

matthew zeier matthew.zeier at thirdcoast.net
Fri Sep 21 03:37:05 EDT 2001


> RT::Users, like all of the collection objects in RT is a subclass of
DBIx::SearchBuilder.
>
>
> You can either call while (my $user = $users->Next) {
>
> or work with $users->ItemsArrayRef

I think I'm missing something here - can someone point me in the right
direction?

Can't locate object method "Next" via package "GroupMembers_1" at i line 35.

Script is:

CleanEnv();
LoadConfig();
DBConnect();

my $user_obj    = new RT::Users('mrz');
my $users       = $user_obj->MemberOfGroup('6');

while (my $user = $users->Next) {

    dumpValue(\$user);

}
$RT::Handle->Disconnect();





More information about the Rt-devel mailing list