Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
core\moodlenet\share_progress_table Class Reference

MoodleNet share progress table. More...

Inheritance diagram for core\moodlenet\share_progress_table:

Public Member Functions

 __construct ($uniqueid, $url, $userid)
 Set up the table.
 
 print_nothing_to_display ()
 Notification to display when there are no results.
 
 query_db ($pagesize, $useinitialsbar=true)
 Query the DB.
 

Protected Member Functions

 col_name (stdClass $row)
 Name column.
 
 col_status (stdClass $row)
 Status column (Send status).
 
 col_timecreated (stdClass $row)
 Time created column (Send date).
 
 col_type (stdClass $row)
 Type column.
 
 define_table_columns ()
 Set up the columns and headers.
 
 define_table_configs ()
 Define table configs.
 
 get_sql_and_params ($count=false)
 Builds the SQL query.
 

Protected Attributes

int $userid
 The user id records will be displayed for.
 

Detailed Description

MoodleNet share progress table.

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

Constructor & Destructor Documentation

◆ __construct()

core\moodlenet\share_progress_table::__construct ( $uniqueid,
$url,
$userid )

Set up the table.

Parameters
string$uniqueidUnique id of table.
moodle_url$urlThe base URL.
int$useridThe user id.

Member Function Documentation

◆ col_name()

core\moodlenet\share_progress_table::col_name ( stdClass $row)
protected

Name column.

Parameters
stdClass$rowRow data.
Return values
string

◆ col_status()

core\moodlenet\share_progress_table::col_status ( stdClass $row)
protected

Status column (Send status).

Parameters
stdClass$rowRow data.
Return values
string

◆ col_timecreated()

core\moodlenet\share_progress_table::col_timecreated ( stdClass $row)
protected

Time created column (Send date).

Parameters
stdClass$rowRow data.
Return values
string

◆ col_type()

core\moodlenet\share_progress_table::col_type ( stdClass $row)
protected

Type column.

Parameters
stdClass$rowRow data.
Return values
string

◆ get_sql_and_params()

core\moodlenet\share_progress_table::get_sql_and_params ( $count = false)
protected

Builds the SQL query.

Parameters
bool$countWhen true, return the count SQL.
Return values
arraycontaining sql to use and an array of params.

◆ query_db()

core\moodlenet\share_progress_table::query_db ( $pagesize,
$useinitialsbar = true )

Query the DB.

Parameters
int$pagesizesize of page for paginated displayed table.
bool$useinitialsbardo you want to use the initials bar.

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