mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Conform the new interface requirments
This commit is contained in:
parent
6c7e33d679
commit
7ab6f2603a
@ -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 //
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user