From 7ab6f2603a0f49cc63039c74bcbf46cb829ff38d Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Mon, 4 Jan 2010 18:07:07 +0000 Subject: [PATCH] Conform the new interface requirments --- mod/workshop/form/accumulative/lib.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mod/workshop/form/accumulative/lib.php b/mod/workshop/form/accumulative/lib.php index 4746659334..98a40914c1 100644 --- a/mod/workshop/form/accumulative/lib.php +++ b/mod/workshop/form/accumulative/lib.php @@ -239,6 +239,22 @@ class workshop_accumulative_strategy implements workshop_strategy { return false; } + /** + * Returns true if the given evaluation method is supported by this strategy + * + * To support an evaluation method, the strategy subplugin must usually implement some + * required public methods. In theory, this is what interfaces should be used for. + * Unfortunatelly, we can't extend "implements" declaration as the interface must + * be known to the PHP interpret. So we can't declare implementation of a non-installed + * evaluation subplugin. + * + * @param workshop_evaluation $evaluation the instance of grading evaluation class + * @return bool true if the evaluation method is supported, false otherwise + */ + public function evaluation_supported(workshop_evaluation $evaluation) { + return false; // todo does not support any evaluation yet + } + //////////////////////////////////////////////////////////////////////////////// // Internal methods // //////////////////////////////////////////////////////////////////////////////// -- 2.39.5