Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

MoodleNet share progress table.

Copyright: 2023 David Woloszyn <david.woloszyn@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 252 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

share_progress_table:: (10 methods):
  __construct()
  define_table_configs()
  define_table_columns()
  col_name()
  col_type()
  col_timecreated()
  col_status()
  get_sql_and_params()
  query_db()
  print_nothing_to_display()


Class: share_progress_table  - X-Ref

MoodleNet share progress table.

__construct($uniqueid, $url, $userid)   X-Ref
Set up the table.

param: string $uniqueid Unique id of table.
param: moodle_url $url The base URL.
param: int $userid The user id.

define_table_configs()   X-Ref
Define table configs.


define_table_columns()   X-Ref
Set up the columns and headers.


col_name(stdClass $row)   X-Ref
Name column.

param: stdClass $row Row data.
return: string

col_type(stdClass $row)   X-Ref
Type column.

param: stdClass $row Row data.
return: string

col_timecreated(stdClass $row)   X-Ref
Time created column (Send date).

param: stdClass $row Row data.
return: string

col_status(stdClass $row)   X-Ref
Status column (Send status).

param: stdClass $row Row data.
return: string

get_sql_and_params($count = false)   X-Ref
Builds the SQL query.

param: bool $count When true, return the count SQL.
return: array containing sql to use and an array of params.

query_db($pagesize, $useinitialsbar = true)   X-Ref
Query the DB.

param: int $pagesize size of page for paginated displayed table.
param: bool $useinitialsbar do you want to use the initials bar.

print_nothing_to_display()   X-Ref
Notification to display when there are no results.