86 Commits

Author SHA1 Message Date
Marina Glancy
8fc1486d36 MDL-77164 various: fix incorrect phpdocs 2023-04-13 11:35:06 +01:00
sam marshall
171313781d MDL-71836 core_enrol: Cannot search for users by username 2021-06-02 14:52:43 +01:00
sam marshall
611e2569aa MDL-71215 core_user: User fields - remaining deprecated functions
This change removes references in code and comments to a few
deprecated functions that were accidentally missed in the larger
change.

The code changes only affect service_users.php. I made it support
custom user profile fields in this query, because it was easy
enough, rather than adding another TODO to fix later.
2021-03-31 11:12:16 +01:00
sam marshall
5e72715e4f MDL-71099 Lib: Move new user_fields class from core to core_user
This class would belong more appropriately within the 'user' API
(core_user) instead of within the 'core' API, since it is
directly related to user data.

Since the class has only just been added to Moodle, now is a good
time to move it.
2021-03-25 13:47:23 +00:00
sam marshall
987e55452f MDL-45242 Course: Enrol feature supports custom profile fields 2021-03-10 10:57:11 +00:00
sam marshall
558cc1b85e MDL-45242 Lib: Replace calls to deprecated functions
In all cases changes have been kept to a minimum while not making
the code completely horrible. For example, there are many instances
where it would probably be better to rewrite a query entirely, but
I have not done that (in order to reduce the risk of changes).
2021-03-10 10:57:10 +00:00
Paul Holden
7455b741c9 MDL-66762 user: escape extra/email user fields. 2019-11-07 09:00:19 +08:00
Shamim Rezaie
151ef39cd8 MDL-66269 enrol: added search_users method to course_enrolment_manager
Part of MDL-66075.
2019-09-20 08:19:01 +08:00
Huong Nguyen
1f00fdb0d2 MDL-63938 Enrolments: course_enrolment_manager method improvement
course_enrolment_manager method should not always do a count_records and a get_records
2019-02-19 13:57:48 +07:00
Eloy Lafuente (stronk7)
8c46d204a1 MDL-60548 tests: Get tests passing
This includes:

- changing all usernames in feature to lowercase, for cross-db passing. Fixes:
  - user/tests/behat/set_email_display.feature
- ensure that course_enrolment_manager::get_potential_users() and
  external always returns user->maildisplay attribute, so email
  visibility can be calculated by user_get_user_details(). Fixes:
  - enrol/tests/behat/enrol_user.feature
  - blocks/news_items/tests/behat/display_news.feature
  - course/tests/behat/course_creation.feature
2018-04-11 17:15:38 +02:00
Igor Sazonov
358b10a337 MDL-58410 user: add support for alternative name search
The solution about searching all external names fields (middlename etc) from course enrolment page (enrolled and enrolling pages)
2018-01-24 11:15:45 +08:00
Andrew Hancox
a63cd3e2ca MDL-50666 core: Add function get_viewable_roles to set role visibility 2017-12-19 13:53:23 +13:00
Jun Pataleta
4047fccba7 MDL-59811 enrol: Move get_user_enrolment_actions logic to parent class
* These duplicated implementations can be simplified where the logic
  can be moved to enrol_plugin::get_user_enrolment_actions() method
  itself.
2017-10-09 10:29:02 +08:00
Jun Pataleta
b26ce53776 Merge branch 'MDL-59823-master' of git://github.com/damyon/moodle 2017-08-29 15:49:24 +08:00
Damyon Wiese
f4ddc4ecd3 MDL-59823 users: Enrol bulk op course instance
The commit message above was my best attempt at meeting the very short restrictions on commit message first lines.

What it needed to say was: "Only show bulk enrolment operations for enrolment methods that have an instance in the course"
2017-08-17 12:03:52 +08:00
Damyon Wiese
4b50765bd5 MDL-59370 enrol: Kill the enrol/users page. 2017-08-14 11:06:16 +08:00
Jun Pataleta
445de896ef 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.
2017-07-28 16:11:56 +08:00
Janek Lasocki-Biczysko
0bb7f79d31 MDL-51401 enrol: ensures correct order of roles in UI components
Role sort order was not available in the UI (in JavaScript) due to
the use of PHP assoc arrays and JSON encoding/decoding. This patch
addresses this by sending the roles in a json array, rather than
json object.
2016-10-07 08:30:25 +01:00
Ruslan Kabalin
8292fa8184 MDL-55776 enrol: Optimise enrolled users listing.
Here we optimise SQL queries for enrolled users list. Expensive subquery is
replaced with faster LEFT JOIN and the whole groups filtering component is
aded on demand.
2016-09-19 23:46:28 +02:00
Rajneel Totaram
494fec0071 MDL-51923 enrol: Enrolment list filter 'No Group' shows incorrect count
With contributions from John Okely
2015-10-28 17:34:16 +08:00
John Okely
d5994d38c9 MDL-51586 enrol: Enrolment table displays fullname properly.
When the alternatefullnamedisplay was set to something that
didn't contain 'firstname' then nothing would be displayed
for the user's name.
2015-10-09 15:34:39 +08:00
Davo Smith
bf8f915abc MDL-51341 enrolment: fix 'No group' enrolled user filter 2015-10-07 17:09:15 +01:00
Marina Glancy
afc6a26938 MDL-49746 course: sorting users by last access 2015-08-11 16:15:58 +08:00
Davo Smith
0c9d8172b5 MDL-48074 enrol: option to filter by users 'not in any group' 2015-07-03 09:35:57 +01:00
Nivedita Setru
b6772ac721 MDL-48073 enrol: Fixed group filter resetting erroneously. 2015-01-19 11:24:36 +08:00
Adrian Greeve
95065006c6 MDL-46921 lib: Sorting on additional fields, admin, enrolment pages. 2014-10-09 08:19:49 +08:00
Dave Cooper
e89682d822 MDL-32275 enrol: Last site access column now shows last course access 2014-09-26 10:51:47 +08:00
Damyon Wiese
9673c119f2 MDL-36334 JS: Only print deprecation notices for developers 2014-01-07 16:11:27 +08:00
Damyon Wiese
a66aea5c67 Merge branch 'MDL-36334-master' of https://github.com/andrewnicols/moodle 2014-01-07 16:10:05 +08:00
Andrew Nicols
6fc9488862 MDL-36334 JS: Deprecate YUI galleryversion in enrol 2014-01-07 16:12:55 +11:00
Tony Butler
2b6b37d4f9 MDL-43373 core_enrol: Display enrolments dimmed if outside of start or end times 2014-01-02 17:16:06 +00:00
Petr Škoda
529342bb9f MDL-41002 fix typo causing fatal error on other users page
Credit goes to Bernhard Brandstetter, thanks!
2013-08-04 15:00:53 +02:00
Rajesh Taneja
117e94a050 MDL-40358 Enrolments: Fixed sql when user is suspended 2013-07-10 17:40:20 +10:00
Sam Hemelryk
d9734c91ee MDL-40358 enrol: whitespace clean up 2013-07-10 10:07:10 +12:00
Sam Hemelryk
fc7e5a031e Merge branch 'wip-mdl-40358' of git://github.com/rajeshtaneja/moodle 2013-07-10 09:54:38 +12:00
Frederic Massart
8e8891b76b MDL-40403 libraries: Deprecate get_parent_contexts() 2013-07-09 13:34:44 +08:00
Rajesh Taneja
aa5132140b MDL-40358 Administration: Added group and status filter on user enrolment page 2013-07-01 14:20:21 +08:00
Petr Škoda
31ac2aef26 MDL-39386 fix phpdocs packages in enrol 2013-04-27 13:41:32 +02:00
sam marshall
71638033eb MDL-26956 (3) Enrol: Add filter options to enrolments screen 2013-03-28 10:46:36 +00:00
Rossiani Wijaya
4be3ed4b3d MDL-37396 User Enrollment: fixed missing user from enrolment sub-menu 2013-02-18 10:28:23 +08:00
Petr Škoda
00c269db37 MDL-37559 fix display of multiple roles of other users
Credit goes to Tyron Delean, thanks.
2013-01-19 16:50:38 +01:00
Dan Poltawski
df0b14c3b5 Merge branch 'w51_MDL-37303_m25_enrolinstancestatus' of git://github.com/skodak/moodle 2013-01-08 14:22:11 +08:00
Petr Škoda
3a103fd806 MDL-xxxx show appropriate instance status on user enrolments page 2012-12-26 17:28:09 +01:00
Petr Škoda
e9ca9d3063 MDL-37302 allow admin to unassign any role on enrolment and other users pages 2012-12-26 12:02:08 +01:00
Petr Škoda
483e6f5cde MDL-37302 allow removal of enrol roles if plugin allows it 2012-12-26 11:37:08 +01:00
Tim Hunt
e059c033d9 MDL-35802 enrol other users: should use Show user identity setting.
As part of fixing this, I refactored some common code out of
get_potential_users and search_other_users. Previously, only one of
those bits of code had been updated.
2012-10-05 12:07:26 +01:00
Eloy Lafuente (stronk7)
c740703c18 Merge branch 'w40_MDL-31437_m24_cohortsync' of git://github.com/skodak/moodle
Conflicts:
	lib/upgrade.txt
2012-10-02 22:00:12 +02:00
Dan Poltawski
f7b3ac9427 Merge branch 'w40_MDL-35619_m24_otheravatars' of git://github.com/skodak/moodle 2012-10-02 10:41:47 +08:00
Petr Škoda
e66827464a MDL-35619 fix invalid avatars on other users page 2012-10-01 09:53:11 +02:00
Petr Škoda
7881024ec4 MDL-31437 add group sync option to enrol_cohort
This patch includes following changes and new features:
* Group sync in enrol_cohort plugin.
* Option for editing of role in existing cohort sync instance.
* Group memberships are now restored after enrolments.
* New enrol method for restore of protected group membership.
* New component callback 'restore_group_member' for restore of general plugin group membership.
* New component callback 'restore_role_assignment' for restore of general plugin role assignments.
* Implemented group membership protection in enrolment UI.
* Other minor fixes and cleanup.

Notes:
* The YUI base enrolment page is not reimplemented yet - see MDL-35618.
2012-09-28 21:00:00 +02:00