Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Attributes | List of all members
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. More...
 
 add_from_sql ($sql, $params)
 Add sql and params to return user IDs. More...
 
 get_assignid ()
 Returns the assign ID. More...
 
 get_teacherid ()
 Returns the teacher ID. More...
 
 get_userids ()
 Returns the user IDs. More...
 

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: