Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

This file contains the mod_assign useridlist This is for collecting a list of user IDs

Copyright: 2018 Adrian Greeve <adrian@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 99 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

useridlist:: (5 methods):
  __construct()
  get_teacherid()
  get_assignid()
  get_userids()
  add_from_sql()


Class: useridlist  - X-Ref

An object for collecting user IDs related to a teacher.

__construct($teacherid, $assignid)   X-Ref
Create this object.

param: int $teacherid The teacher ID.
param: int $assignid The assignment ID.

get_teacherid()   X-Ref
Returns the teacher ID.

return: int The teacher ID.

get_assignid()   X-Ref
Returns the assign ID.

return: int The assign ID.

get_userids()   X-Ref
Returns the user IDs.

return: array User IDs.

add_from_sql($sql, $params)   X-Ref
Add sql and params to return user IDs.

param: string $sql The sql string to return user IDs.
param: array $params Parameters for the sql statement.