Sql internal table reader.
More...
|
| get_description () |
| Longer description of the log data source.
|
|
| get_events_select ($selectwhere, array $params, $sort, $limitfrom, $limitnum) |
| Fetch records using given criteria.
|
|
| get_events_select_count ($selectwhere, array $params) |
| Return number of events matching given criteria.
|
|
| get_events_select_exists (string $selectwhere, array $params) |
| Get whether events are present for the given select clause.
|
|
| get_events_select_iterator ($selectwhere, array $params, $sort, $limitfrom, $limitnum) |
| Fetch records using the given criteria returning an traversable list of events.
|
|
| get_internal_log_table_name () |
| Returns name of the table or database view that holds the log data in standardised format.
|
|
| get_log_event ($data) |
| Returns an event from the log data.
|
|
| get_name () |
| Localised name of the reader.
|
|
| is_logging () |
| Are the new events appearing in the reader?
|
|
Sql internal table reader.
Replaces sql_internal_reader and extends sql_reader.
- Since
- Moodle 2.9
- Copyright
- 2015 David Monllao
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ get_description()
core\log\reader::get_description |
( |
| ) |
|
|
inherited |
Longer description of the log data source.
- Return values
-
◆ get_events_select()
core\log\sql_reader::get_events_select |
( |
| $selectwhere, |
|
|
array | $params, |
|
|
| $sort, |
|
|
| $limitfrom, |
|
|
| $limitnum ) |
|
inherited |
◆ get_events_select_count()
core\log\sql_reader::get_events_select_count |
( |
| $selectwhere, |
|
|
array | $params ) |
|
inherited |
◆ get_events_select_exists()
core\log\sql_reader::get_events_select_exists |
( |
string | $selectwhere, |
|
|
array | $params ) |
|
inherited |
Get whether events are present for the given select clause.
- Parameters
-
string | $selectwhere | select conditions. |
array | $params | params. |
- Return values
-
bool | Whether events available for the given conditions |
Implemented in logstore_database\log\store, and logstore_standard\log\store.
◆ get_events_select_iterator()
core\log\sql_reader::get_events_select_iterator |
( |
| $selectwhere, |
|
|
array | $params, |
|
|
| $sort, |
|
|
| $limitfrom, |
|
|
| $limitnum ) |
|
inherited |
Fetch records using the given criteria returning an traversable list of events.
Note that the returned object is Traversable, not Iterator, as we are returning EmptyIterator if we know there are no events, and EmptyIterator does not implement Countable so valid() should be checked in any case instead of a count().
Also note that the traversable object contains a recordset and it is very important that you close it after using it.
- Parameters
-
string | $selectwhere | |
array | $params | |
string | $sort | |
int | $limitfrom | |
int | $limitnum | |
- Return values
-
Traversable|core\event\base[] | Returns an iterator containing core\event\base objects. |
Implemented in logstore_database\log\store, and logstore_standard\log\store.
◆ get_internal_log_table_name()
core\log\sql_internal_table_reader::get_internal_log_table_name |
( |
| ) |
|
Returns name of the table or database view that holds the log data in standardised format.
Note: this table must be used for reading only, it is strongly recommended to use this in complex reports only.
- Return values
-
Implemented in logstore_standard\log\store.
◆ get_log_event()
core\log\sql_reader::get_log_event |
( |
| $data | ) |
|
|
inherited |
◆ get_name()
core\log\reader::get_name |
( |
| ) |
|
|
inherited |
Localised name of the reader.
To be used in selection for in reports.
- Return values
-
◆ is_logging()
core\log\reader::is_logging |
( |
| ) |
|
|
inherited |
The documentation for this interface was generated from the following file:
- lib/classes/log/sql_internal_table_reader.php