X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcgp_rule_action.pm;h=6dfd42427d3235f4717a8db109a9fd4fd3a6a0fe;hp=b5e4970154aff1e6d82f13d8a183fcd4a76c505e;hb=37591b61f8ad6fc5c5acb2fd8f520d2dbe4f1539;hpb=3a201934245c2e72b167804a6d512e0e6d435f65 diff --git a/FS/FS/cgp_rule_action.pm b/FS/FS/cgp_rule_action.pm index b5e497015..6dfd42427 100644 --- a/FS/FS/cgp_rule_action.pm +++ b/FS/FS/cgp_rule_action.pm @@ -3,6 +3,7 @@ package FS::cgp_rule_action; use strict; use base qw( FS::Record ); use FS::Record qw( qsearch qsearchs ); +use FS::cgp_rule; =head1 NAME @@ -25,8 +26,9 @@ FS::cgp_rule_action - Object methods for cgp_rule_action records =head1 DESCRIPTION -An FS::cgp_rule_action object represents an example. FS::cgp_rule_action inherits from -FS::Record. The following fields are currently supported: +An FS::cgp_rule_action object represents a mail filtering action. +FS::cgp_rule_action inherits from FS::Record. The following fields are +currently supported: =over 4 @@ -55,7 +57,7 @@ rulenum =item new HASHREF -Creates a new example. To add the example to the database, see L<"insert">. +Creates a new action. To add the action 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. @@ -94,7 +96,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 action. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods. @@ -110,7 +112,7 @@ sub check { $self->ut_numbern('ruleactionnum') || $self->ut_text('action') || $self->ut_text('params') - || $self->ut_number('rulenum') + || $self->ut_foreign_key('rulenum', 'cgp_rule', 'rulenum') ; return $error if $error; @@ -121,8 +123,6 @@ sub check { =head1 BUGS -The author forgot to customize this manpage. - =head1 SEE ALSO L, schema.html from the base documentation.