Conform the new interface requirments

This commit is contained in:
David Mudrak 2010-01-04 18:07:07 +00:00
parent 6c7e33d679
commit 7ab6f2603a

View File

@ -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 //
////////////////////////////////////////////////////////////////////////////////