diff options
Diffstat (limited to 'lib/plugins/core/ScorePlugin.php')
| -rw-r--r-- | lib/plugins/core/ScorePlugin.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/plugins/core/ScorePlugin.php b/lib/plugins/core/ScorePlugin.php new file mode 100644 index 0000000..064ddc3 --- /dev/null +++ b/lib/plugins/core/ScorePlugin.php @@ -0,0 +1,29 @@ +<?php +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + */ + +interface ScorePlugin +{ + /** + * Returns null or an array of associated arrays - each one to + * indicate a db-table in which the plugin stores user activities. + * + * For a bullitin-board-plugin this array could look like this: + * + * return array( + * array( + * 'table' => "bullitin_board_entries", + * 'user_id_column' => "user_id", + * 'date_column' => "mkdate", + * 'where' => "public = '1'" //only public entries should be counted + * ) + * ); + * + * @return null|array of associated arrays + */ + function getPluginActivityTables(); +} |
