Update of /cvsroot/popfile/engine/Classifier
In directory sc8-pr-cvs1:/tmp/cvs-serv24838/Classifier
Modified Files:
Bayes.pm
Log Message:
Improved the Magnets page so that one of more magnets can be edited and updated without having to remove and reenter them, also added the ability to delete multiple magnets; added a new clear_magnets API
Index: Bayes.pm
===================================================================
RCS file: /cvsroot/popfile/engine/Classifier/Bayes.pm,v
retrieving revision 1.129
retrieving revision 1.130
diff -C2 -d -r1.129 -r1.130
*** Bayes.pm 19 Apr 2003 11:07:13 -0000 1.129
--- Bayes.pm 20 Apr 2003 21:00:05 -0000 1.130
***************
*** 1388,1391 ****
--- 1388,1406 ----
# ---------------------------------------------------------------------------------------------
#
+ # clear_magnets
+ #
+ # Removes every magnet currently defined
+ #
+ # ---------------------------------------------------------------------------------------------
+
+ sub clear_magnets
+ {
+ my ( $self ) = @_;
+
+ delete $self->{magnets__};
+ }
+
+ # ---------------------------------------------------------------------------------------------
+ #
# get_magnets
#
***************
*** 1393,1396 ****
--- 1408,1412 ----
#
# $bucket The bucket to search for magnets
+ # $type The magnet type (e.g. from, to or subject)
#
# ---------------------------------------------------------------------------------------------
|