|
| __construct (stdClass $course) |
| Entity constructor.
|
|
| add_join (string $join) |
| Add join clause required for this entity to join to existing tables/entities.
|
|
| add_joins (array $joins) |
| Add multiple join clauses required for this entity {.
|
|
| get_column (string $name) |
| Returns an entity column.
|
|
| get_columns () |
| Returns entity columns.
|
|
| get_condition (string $name) |
| Returns an entity condition.
|
|
| get_conditions () |
| Returns entity conditions.
|
|
| get_entity_name () |
| Return entity name.
|
|
| get_entity_title () |
| Get entity title.
|
|
| get_filter (string $name) |
| Returns an entity filter.
|
|
| get_filters () |
| Returns entity filters.
|
|
| get_joins () |
| Return entity joins.
|
|
| get_table_alias (string $tablename) |
| Returns an alias used in the queries for a given table.
|
|
| get_table_aliases () |
| Returns aliases used in the queries for all tables.
|
|
| has_table_join_alias (string $tablename) |
| Determine whether defined table join alias was specified.
|
|
| initialise () |
| Initialise the entity.
|
|
| set_entity_name (string $entityname) |
| Set entity name.
|
|
| set_entity_title (lang_string $title) |
| Set entity title.
|
|
| set_table_alias (string $tablename, string $alias) |
| Override the default alias for given database table used in entity queries, for instance when the same table is used by multiple entities and you want them each to refer to it by the same alias.
|
|
| set_table_aliases (array $aliases) |
| Override multiple default database table aliases used in entity queries as per {.
|
|
| set_table_join_alias (string $tablename, string $alias) |
| Set the alias for given database table that has already been added to the report.
|
|
|
stdClass | $course |
| Course.
|
|
grade_report_summary | $report |
| Grade report.
|
|
array | $ungradedcounts |
| Ungraded grade items counts with sql info.
|
|
◆ __construct()
gradereport_summary\local\entities\grade_items::__construct |
( |
stdClass | $course | ) |
|
Entity constructor.
- Parameters
-
◆ add_column()
core_reportbuilder\local\entities\base::add_column |
( |
column | $column | ) |
|
|
finalprotectedinherited |
Add a column to the entity.
- Parameters
-
- Return values
-
◆ add_condition()
core_reportbuilder\local\entities\base::add_condition |
( |
filter | $condition | ) |
|
|
finalprotectedinherited |
Add a condition to the entity.
- Parameters
-
- Return values
-
◆ add_filter()
core_reportbuilder\local\entities\base::add_filter |
( |
filter | $filter | ) |
|
|
finalprotectedinherited |
Add a filter to the entity.
- Parameters
-
- Return values
-
◆ add_join()
core_reportbuilder\local\entities\base::add_join |
( |
string | $join | ) |
|
|
finalinherited |
Add join clause required for this entity to join to existing tables/entities.
- Parameters
-
- Return values
-
◆ add_joins()
core_reportbuilder\local\entities\base::add_joins |
( |
array | $joins | ) |
|
|
finalinherited |
Add multiple join clauses required for this entity {.
- See also
- add_join}
- Parameters
-
- 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_column()
core_reportbuilder\local\entities\base::get_column |
( |
string | $name | ) |
|
|
finalinherited |
Returns an entity column.
- Parameters
-
- Return values
-
- Exceptions
-
◆ get_columns()
core_reportbuilder\local\entities\base::get_columns |
( |
| ) |
|
|
finalinherited |
Returns entity columns.
- Return values
-
◆ get_condition()
core_reportbuilder\local\entities\base::get_condition |
( |
string | $name | ) |
|
|
finalinherited |
Returns an entity condition.
- Parameters
-
- Return values
-
- Exceptions
-
◆ get_conditions()
core_reportbuilder\local\entities\base::get_conditions |
( |
| ) |
|
|
finalinherited |
Returns entity conditions.
- Return values
-
◆ get_default_entity_title()
gradereport_summary\local\entities\grade_items::get_default_entity_title |
( |
| ) |
|
|
protected |
◆ get_default_table_aliases()
core_reportbuilder\local\entities\base::get_default_table_aliases |
( |
| ) |
|
|
protectedinherited |
Database tables that this entity uses and their default aliases (note that these aliases are now ignored)
- Return values
-
string[] | Array of $tablename => $alias |
- Deprecated
- since Moodle 4.4 - aliases are now autogenerated, please implement {
- See also
- get_default_tables} instead
◆ get_default_tables()
gradereport_summary\local\entities\grade_items::get_default_tables |
( |
| ) |
|
|
protected |
◆ get_entity_name()
core_reportbuilder\local\entities\base::get_entity_name |
( |
| ) |
|
|
finalinherited |
Return entity name.
- Return values
-
◆ get_entity_title()
core_reportbuilder\local\entities\base::get_entity_title |
( |
| ) |
|
|
finalinherited |
Get entity title.
- Return values
-
◆ get_filter()
core_reportbuilder\local\entities\base::get_filter |
( |
string | $name | ) |
|
|
finalinherited |
Returns an entity filter.
- Parameters
-
- Return values
-
- Exceptions
-
◆ get_filters()
core_reportbuilder\local\entities\base::get_filters |
( |
| ) |
|
|
finalinherited |
Returns entity filters.
- Return values
-
◆ get_joins()
core_reportbuilder\local\entities\base::get_joins |
( |
| ) |
|
|
finalinherited |
Return entity joins.
- Return values
-
◆ get_table_alias()
core_reportbuilder\local\entities\base::get_table_alias |
( |
string | $tablename | ) |
|
|
finalinherited |
Returns an alias used in the queries for a given table.
- Parameters
-
string | $tablename | One of the tables set by { |
- See also
- get_default_tables}
- Return values
-
- Exceptions
-
◆ get_table_aliases()
core_reportbuilder\local\entities\base::get_table_aliases |
( |
| ) |
|
|
finalinherited |
Returns aliases used in the queries for all tables.
- Return values
-
◆ get_tag_joins_for_entity()
core_reportbuilder\local\entities\base::get_tag_joins_for_entity |
( |
string | $component, |
|
|
string | $itemtype, |
|
|
string | $itemidfield ) |
|
finalprotectedinherited |
Helper method for returning joins necessary for retrieving tags related to the current entity.
Both 'tag' and 'tag_instance' aliases must be returned by the entity {
- See also
- get_default_tables} method
- Parameters
-
string | $component | |
string | $itemtype | |
string | $itemidfield | |
- Return values
-
◆ has_table_join_alias()
core_reportbuilder\local\entities\base::has_table_join_alias |
( |
string | $tablename | ) |
|
|
finalinherited |
Determine whether defined table join alias was specified.
Call {
- See also
- get_table_alias} to retrieve said value
- Parameters
-
- Return values
-
◆ initialise()
gradereport_summary\local\entities\grade_items::initialise |
( |
| ) |
|
◆ set_entity_name()
core_reportbuilder\local\entities\base::set_entity_name |
( |
string | $entityname | ) |
|
|
finalinherited |
Set entity name.
- Parameters
-
- Return values
-
◆ set_entity_title()
core_reportbuilder\local\entities\base::set_entity_title |
( |
lang_string | $title | ) |
|
|
finalinherited |
Set entity title.
- Parameters
-
- Return values
-
◆ set_table_alias()
core_reportbuilder\local\entities\base::set_table_alias |
( |
string | $tablename, |
|
|
string | $alias ) |
|
finalinherited |
Override the default alias for given database table used in entity queries, for instance when the same table is used by multiple entities and you want them each to refer to it by the same alias.
- Parameters
-
string | $tablename | One of the tables set by { |
- See also
- get_default_tables}
- Parameters
-
- Return values
-
- Exceptions
-
◆ set_table_aliases()
core_reportbuilder\local\entities\base::set_table_aliases |
( |
array | $aliases | ) |
|
|
finalinherited |
Override multiple default database table aliases used in entity queries as per {.
- See also
- set_table_alias}
- Parameters
-
array | $aliases | Array of tablename => alias values |
- Return values
-
◆ set_table_join_alias()
core_reportbuilder\local\entities\base::set_table_join_alias |
( |
string | $tablename, |
|
|
string | $alias ) |
|
finalinherited |
Set the alias for given database table that has already been added to the report.
Enables entities to avoid additional joins on the same table by allowing re-use of existing table aliases in their own queries, {
- See also
- has_table_join_alias}
- Parameters
-
string | $tablename | |
string | $alias | |
- Return values
-
The documentation for this class was generated from the following file:
- grade/report/summary/classes/local/entities/grade_items.php