mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-46294 completion: Final deprecation of get_incomplete_criteria
This commit is contained in:
parent
803f565753
commit
28ac49c899
1 changed files with 1 additions and 14 deletions
|
@ -471,23 +471,10 @@ class completion_info {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get incomplete course completion criteria
|
|
||||||
*
|
|
||||||
* @deprecated since Moodle 2.8 MDL-46290.
|
* @deprecated since Moodle 2.8 MDL-46290.
|
||||||
* @todo MDL-46294 This will be deleted in Moodle 3.0.
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function get_incomplete_criteria() {
|
public function get_incomplete_criteria() {
|
||||||
debugging('completion_info->get_incomplete_criteria() is deprecated.', DEBUG_DEVELOPER);
|
throw new coding_exception('completion_info->get_incomplete_criteria() is removed.');
|
||||||
$incomplete = array();
|
|
||||||
|
|
||||||
foreach ($this->get_criteria() as $criteria) {
|
|
||||||
if (!$criteria->is_complete()) {
|
|
||||||
$incomplete[] = $criteria;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $incomplete;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue