MDL-59366 enrol: Add $onlyenabled param in enrol instances getters
authorJun Pataleta <jun@moodle.com>
Thu, 20 Jul 2017 08:52:56 +0000 (16:52 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 28 Jul 2017 08:11:56 +0000 (16:11 +0800)
commit445de896ef27278808be2003bea9110c98672c0a
treecd1d6b187c6da637d2f5590efdf74c97af88387c
parent198d72913f58e20c4eabbd3f8f6797847d409d23
MDL-59366 enrol: Add $onlyenabled param in enrol instances getters

* Add param in order allow flexibility for the methods to be able
to fetch only active enrol instances as well.

Part of MDL-59290.
enrol/locallib.php