|
| __construct (stdClass $course) |
| Entity constructor.
|
|
| format_value ($value, array $values, array $callbacks, int $columntype) |
| Return formatted value for column when applying aggregation, by default executing all callbacks on the value.
|
|
| initialise () |
| Initialise the entity.
|
|
|
static | column_groupby () |
| Whether the aggregation method is applied to a column, this method determines whether the report table should group by the column fields or not.
|
|
static | compatible (int $columntype) |
| Whether the aggregation is compatible with the given column type.
|
|
static | get_class_name () |
| Return the class name of the aggregation type.
|
|
static | get_column_field_sql (array $sqlfields) |
| Return SQL suitable for using within {.
|
|
static | get_column_type (int $columntype) |
| Return aggregated column type, that being one of the column TYPE_* constants like {.
|
|
static | get_field_sql (string $field, int $columntype) |
| Return the aggregated field SQL.
|
|
static | get_name () |
| Return the display name of the aggregation.
|
|
static | sortable (bool $columnsortable) |
| Whether the aggregation is sortable, by default return the sortable status of the column itself.
|
|
|
stdClass | $course |
| Course.
|
|
grade_report_summary | $report |
| Grade report.
|
|
array | $ungradedcounts |
| Ungraded grade items counts with sql info.
|
|
|
static | get_column_fields_concat (array $sqlfields, string $delimeter=',', string $coalescechar=' ') |
| Helper method for concatenating given fields for a column, so they are suitable for aggregation.
|
|
◆ __construct()
gradereport_summary\local\entities\grade_items::__construct |
( |
stdClass | $course | ) |
|
Entity constructor.
- Parameters
-
◆ column_groupby()
static core_reportbuilder\local\aggregation\base::column_groupby |
( |
| ) |
|
|
staticinherited |
Whether the aggregation method is applied to a column, this method determines whether the report table should group by the column fields or not.
- Return values
-
◆ compatible()
static core_reportbuilder\local\aggregation\base::compatible |
( |
int | $columntype | ) |
|
|
staticabstractinherited |
Whether the aggregation is compatible with the given column type.
- Parameters
-
int | $columntype | The type as defined by the { |
- See also
- column::set_type} method
- Return values
-
◆ format_value()
core_reportbuilder\local\aggregation\base::format_value |
( |
| $value, |
|
|
array | $values, |
|
|
array | $callbacks, |
|
|
int | $columntype ) |
|
inherited |
Return formatted value for column when applying aggregation, by default executing all callbacks on the value.
Should be overridden in child classes that need to format the column value differently (e.g. 'sum' would just show a numeric count value)
- Parameters
-
mixed | $value | |
array | $values | |
array | $callbacks | Array of column callbacks, { |
- See also
- column::add_callback} for definition
- Parameters
-
int | $columntype | The original type of the column, to ensure it is preserved for callbacks |
- Return values
-
◆ get_all_columns()
gradereport_summary\local\entities\grade_items::get_all_columns |
( |
| ) |
|
|
protected |
Returns list of all available columns.
- Return values
-
◆ get_all_filters()
gradereport_summary\local\entities\grade_items::get_all_filters |
( |
| ) |
|
|
protected |
Return list of all available filters.
- Return values
-
◆ get_class_name()
static core_reportbuilder\local\aggregation\base::get_class_name |
( |
| ) |
|
|
staticfinalinherited |
Return the class name of the aggregation type.
- Return values
-
◆ get_column_field_sql()
static core_reportbuilder\local\aggregation\base::get_column_field_sql |
( |
array | $sqlfields | ) |
|
|
staticinherited |
Return SQL suitable for using within {.
- See also
- get_field_sql} for column fields, by default just the first one
- Parameters
-
- Return values
-
◆ get_column_fields_concat()
static core_reportbuilder\local\aggregation\base::get_column_fields_concat |
( |
array | $sqlfields, |
|
|
string | $delimeter = ',', |
|
|
string | $coalescechar = ' ' ) |
|
staticfinalprotectedinherited |
Helper method for concatenating given fields for a column, so they are suitable for aggregation.
- Parameters
-
string[] | $sqlfields | |
string | $delimeter | |
string | $coalescechar | |
- Return values
-
◆ get_column_type()
static core_reportbuilder\local\aggregation\base::get_column_type |
( |
int | $columntype | ) |
|
|
staticinherited |
Return aggregated column type, that being one of the column TYPE_* constants like {.
- See also
- column::get_type}
Classes should override this method to define the type of data that the aggregated column value returns (e.g 'count' returns a numeric value, regardless of the original column type to which it is applied)
- Parameters
-
int | $columntype | The type of the column to which the aggregation is applied |
- Return values
-
◆ get_default_entity_title()
gradereport_summary\local\entities\grade_items::get_default_entity_title |
( |
| ) |
|
|
protected |
The default title for this entity in the list of columns/conditions/filters in the report builder.
- Return values
-
◆ get_default_tables()
gradereport_summary\local\entities\grade_items::get_default_tables |
( |
| ) |
|
|
protected |
Database tables that this entity uses.
- Return values
-
◆ get_field_sql()
static core_reportbuilder\local\aggregation\base::get_field_sql |
( |
string | $field, |
|
|
int | $columntype ) |
|
staticabstractinherited |
Return the aggregated field SQL.
- Parameters
-
string | $field | |
int | $columntype | |
- Return values
-
◆ get_name()
static core_reportbuilder\local\aggregation\base::get_name |
( |
| ) |
|
|
staticabstractinherited |
Return the display name of the aggregation.
- Return values
-
◆ initialise()
gradereport_summary\local\entities\grade_items::initialise |
( |
| ) |
|
Initialise the entity.
- Return values
-
◆ sortable()
static core_reportbuilder\local\aggregation\base::sortable |
( |
bool | $columnsortable | ) |
|
|
staticinherited |
Whether the aggregation is sortable, by default return the sortable status of the column itself.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file:
- grade/report/summary/classes/local/entities/grade_items.php