MDL-59366 core: New enrolid param for get_enrolled_* functions
authorJun Pataleta <jun@moodle.com>
Mon, 24 Jul 2017 04:52:28 +0000 (12:52 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 28 Jul 2017 03:32:13 +0000 (11:32 +0800)
commitbb1c6f85f580214f61de5a44dedcaddc323cd15a
tree51ebc1c45c6ae891ca7dc1e6c795ef8bf535c1da
parentd509f80c48f4ef49a03ab8396eec869bc7563882
MDL-59366 core: New enrolid param for get_enrolled_* functions

* New optional parameter $enrolid for the following functions:
  - get_enrolled_join()
  - get_enrolled_sql()
  - get_enrolled_with_capabilities_join()
  Setting this parameter to a non-zero value will add a condition
  to the query such that only users that were enrolled with this
  enrolment method will be returned.

Part of MDL-59290.
lib/enrollib.php
lib/upgrade.txt