[siesta-commit] siesta/lib/Siesta Storage.pm,1.10,1.11

[prev] [thread] [next] [lurker] [Date index for 2002/09/10]

From: muttley
Subject: [siesta-commit] siesta/lib/Siesta Storage.pm,1.10,1.11
Date: 17:58 on 10 Sep 2002
Update of /cvsroot/siesta/siesta/lib/Siesta
In directory usw-pr-cvs1:/tmp/cvs-serv25900/lib/Siesta

Modified Files:
	Storage.pm 
Log Message:
Some stuff to handle plugins


Index: Storage.pm
===================================================================
RCS file: /cvsroot/siesta/siesta/lib/Siesta/Storage.pm,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- Storage.pm	10 Sep 2002 13:56:30 -0000	1.10
+++ Storage.pm	10 Sep 2002 16:58:03 -0000	1.11
@@ -23,11 +23,16 @@
 sub get_lists   { die "virtual" }
 sub get_users   { die "virtual" }
 
-sub member_of_list { die "virtual" }
-sub add_member_to_list { die "virtual" }
+sub list_members            { die "virtual" }
+sub member_of_list          { die "virtual" }
+sub add_member_to_list      { die "virtual" }
 sub remove_member_from_list { die "virtual" }
-sub list_members { die "virtual" }
-sub list_plugins { die "virtual" }
+
+sub list_plugins       { die "virtual" }
+sub add_plugin_to_list { die "virtual" }
+sub set_list_plugins   { die "virtual" }
+
+
 sub user_lists   { die "virtual" }
 
 sub config       { die "virtual" };
@@ -86,6 +91,21 @@
 =item ->list_plugins( $list )
 
 returns a list of plugins, in the order they should fire
+
+=item ->add_plugin_to_list ($list, $plugin)
+=item ->add_plugin_to_list ($list, $plugin, $position)
+
+Add a plugin to the processing order of the list. If you 
+pass a position then the plugin will inserted there (the 
+order is indexed from 1 i.e 1 is the first position in the list)
+
+Returns 1 on success or undef on failure.
+
+=item ->set_plugins   ($list, @plugins)
+
+Set the order of plugins for a list.
+
+By passing an empty list all the plugins will be removed.
 
 =item ->user_lists ($list_id)
 



Generated at 13:57 on 01 Jul 2004 by mariachi 0.52