Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Static Public Member Functions | |
static | add_report_column (int $reportid, string $uniqueidentifier) |
Add given column to report. | |
static | add_report_condition (int $reportid, string $uniqueidentifier) |
Add given condition to report. | |
static | add_report_filter (int $reportid, string $uniqueidentifier) |
Add given filter to report. | |
static | create_report (stdClass $data, bool $default=true) |
Create custom report. | |
static | delete_report (int $reportid) |
Delete custom report. | |
static | delete_report_column (int $reportid, int $columnid) |
Delete given column from report. | |
static | delete_report_condition (int $reportid, int $conditionid) |
Delete given condition from report. | |
static | delete_report_filter (int $reportid, int $filterid) |
Delete given filter from report. | |
static | get_available_columns () |
static | reorder_report_column (int $reportid, int $columnid, int $position) |
Re-order given column within a report. | |
static | reorder_report_column_sorting (int $reportid, int $columnid, int $position) |
Re-order given column sorting within a report. | |
static | reorder_report_condition (int $reportid, int $conditionid, int $position) |
Re-order given condition within a report. | |
static | reorder_report_filter (int $reportid, int $filterid, int $position) |
Re-order given filter within a report. | |
static | toggle_report_column_sorting (int $reportid, int $columnid, bool $enabled, int $direction=SORT_ASC) |
Toggle sorting options for given column within a report. | |
static | update_report (stdClass $data) |
Update custom report. | |
|
static |
Add given column to report.
int | $reportid | |
string | $uniqueidentifier |
column |
invalid_parameter_exception |
|
static |
Add given condition to report.
int | $reportid | |
string | $uniqueidentifier |
filter |
invalid_parameter_exception |
|
static |
Add given filter to report.
int | $reportid | |
string | $uniqueidentifier |
filter |
invalid_parameter_exception |
|
static |
Create custom report.
stdClass | $data | |
bool | $default | If $default is set to true it will populate report with default layout as defined by the selected source. These include pre-defined columns, filters and conditions. |
report_model |
|
static |
Delete custom report.
int | $reportid |
bool |
invalid_parameter_exception |
|
static |
Delete given column from report.
int | $reportid | |
int | $columnid |
bool |
invalid_parameter_exception |
|
static |
Delete given condition from report.
int | $reportid | |
int | $conditionid |
bool |
invalid_parameter_exception |
|
static |
Delete given filter from report.
int | $reportid | |
int | $filterid |
bool |
invalid_parameter_exception |
|
static |
|
static |
Re-order given column within a report.
int | $reportid | |
int | $columnid | |
int | $position |
bool |
invalid_parameter_exception |
|
static |
Re-order given column sorting within a report.
int | $reportid | |
int | $columnid | |
int | $position |
bool |
invalid_parameter_exception |
|
static |
Re-order given condition within a report.
int | $reportid | |
int | $conditionid | |
int | $position |
bool |
invalid_parameter_exception |
|
static |
Re-order given filter within a report.
int | $reportid | |
int | $filterid | |
int | $position |
bool |
invalid_parameter_exception |
|
static |
Toggle sorting options for given column within a report.
int | $reportid | |
int | $columnid | |
bool | $enabled | |
int | $direction |
bool |
invalid_parameter_exception |
|
static |
Update custom report.
stdClass | $data |
report_model |