2 FS::type_pkgs - Object methods for type_pkgs records
7 $record = new FS::type_pkgs \%hash;
8 $record = new FS::type_pkgs { 'column' => 'value' };
10 $error = $record->insert;
12 $error = $new_record->replace($old_record);
14 $error = $record->delete;
16 $error = $record->check;
19 An FS::type_pkgs record links an agent type (see the
20 FS::agent_type manpage) to a billing item definition (see the
21 FS::part_pkg manpage). FS::type_pkgs inherits from FS::Record.
22 The following fields are currently supported:
24 typenum - Agent type, see the FS::agent_type manpage
25 pkgpart - Billing item definition, see the FS::part_pkg manpage
28 Create a new record. To add the record to the database, see
29 the section on "insert".
32 Adds this record to the database. If there is an error,
33 returns the error, otherwise returns false.
36 Deletes this record from the database. If there is an error,
37 returns the error, otherwise returns false.
40 Replaces OLD_RECORD with this one in the database. If there
41 is an error, returns the error, otherwise returns false.
44 Checks all fields to make sure this is a valid record. If
45 there is an error, returns the error, otherwise returns
46 false. Called by the insert and replace methods.
49 $Id: type_pkgs.txt,v 1.3 1999-04-08 13:39:32 ivan Exp $
53 the FS::Record manpage, the FS::agent_type manpage, the
54 FS::part_pkgs manpage, schema.html from the base documentation.
57 Defines the relation between agent types and pkgparts (Which
58 pkgparts can the different [types of] agents sell?)
60 ivan@sisd.com 97-nov-13
62 change to ut_ FS::Record, fixed bugs ivan@sisd.com 97-dec-10
64 $Log: type_pkgs.txt,v $
65 Revision 1.3 1999-04-08 13:39:32 ivan
66 convert from pod for 1.2.0 release
67 Revision 1.2 1998/12/29 11:59:58 ivan
68 mostly properly OO, some work still to be done with svc_ stuff