X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Faccess_usergroup.pm;h=44ad45b85f61ebdffd21d6d6d47c939c0f2adb1f;hp=4d8836c15c04fb15cb71f0159fa5522f43c219c0;hb=dc83512c36dc6bea2585abada4f88d714c600e55;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1 diff --git a/FS/FS/access_usergroup.pm b/FS/FS/access_usergroup.pm index 4d8836c15..44ad45b85 100644 --- a/FS/FS/access_usergroup.pm +++ b/FS/FS/access_usergroup.pm @@ -1,12 +1,7 @@ package FS::access_usergroup; +use base qw(FS::Record); use strict; -use vars qw( @ISA ); -use FS::Record qw( qsearch qsearchs ); -use FS::access_user; -use FS::access_group; - -@ISA = qw(FS::Record); =head1 NAME @@ -29,8 +24,9 @@ FS::access_usergroup - Object methods for access_usergroup records =head1 DESCRIPTION -An FS::access_usergroup object represents an example. FS::access_usergroup inherits from -FS::Record. The following fields are currently supported: +An FS::access_usergroup object represents an internal access user's membership +in a group. FS::access_usergroup inherits from FS::Record. The following +fields are currently supported: =over 4 @@ -49,7 +45,7 @@ FS::Record. The following fields are currently supported: =item new HASHREF -Creates a new example. To add the example to the database, see L<"insert">. +Creates a new record. To add the record to the database, see L<"insert">. Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the I method. @@ -88,7 +84,7 @@ returns the error, otherwise returns false. =item check -Checks all fields to make sure this is a valid example. If there is +Checks all fields to make sure this is a valid record. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods. @@ -112,28 +108,12 @@ sub check { =item access_user -=cut - -sub access_user { - my $self = shift; - qsearchs( 'access_user', { 'usernum' => $self->usernum } ); -} - =item access_group -=cut - -sub access_group { - my $self = shift; - qsearchs( 'access_group', { 'groupnum' => $self->groupnum } ); -} - =back =head1 BUGS -The author forgot to customize this manpage. - =head1 SEE ALSO L, schema.html from the base documentation.