Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
mod_assign\privacy\useridlist Class Reference

An object for collecting user IDs related to a teacher. More...

Public Member Functions

 __construct ($teacherid, $assignid)
 Create this object.
 
 add_from_sql ($sql, $params)
 Add sql and params to return user IDs.
 
 get_assignid ()
 Returns the assign ID.
 
 get_teacherid ()
 Returns the teacher ID.
 
 get_userids ()
 Returns the user IDs.
 

Protected Attributes

int $assignid
 The ID of the assignment object.
 
int $teacherid
 The ID of the teacher.
 
array $userids = []
 A collection of user IDs (students).
 

Detailed Description

An object for collecting user IDs related to a teacher.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

mod_assign\privacy\useridlist::__construct ( $teacherid,
$assignid )

Create this object.

Parameters
int$teacheridThe teacher ID.
int$assignidThe assignment ID.

Member Function Documentation

◆ add_from_sql()

mod_assign\privacy\useridlist::add_from_sql ( $sql,
$params )

Add sql and params to return user IDs.

Parameters
string$sqlThe sql string to return user IDs.
array$paramsParameters for the sql statement.

◆ get_assignid()

mod_assign\privacy\useridlist::get_assignid ( )

Returns the assign ID.

Return values
intThe assign ID.

◆ get_teacherid()

mod_assign\privacy\useridlist::get_teacherid ( )

Returns the teacher ID.

Return values
intThe teacher ID.

◆ get_userids()

mod_assign\privacy\useridlist::get_userids ( )

Returns the user IDs.

Return values
arrayUser IDs.

The documentation for this class was generated from the following file: