Table log class for generating data in ajax mode.
More...
|
| col_component ($event) |
| Generate the component column.
|
|
| col_context ($event) |
| Generate the context column.
|
|
| col_course ($event) |
| Generate the course column.
|
|
| col_description ($event) |
| Generate the description column.
|
|
| col_eventname ($event) |
| Generate the event name column.
|
|
| col_fullnameuser ($event) |
| Generate the username column.
|
|
| col_ip ($event) |
| Generate the ip column.
|
|
| col_origin ($event) |
| Generate the origin column.
|
|
| col_relatedfullnameuser ($event) |
| Generate the related username column.
|
|
| col_time ($event) |
| Generate the time column.
|
|
| get_until () |
| Returns the latest timestamp of the records in the table.
|
|
| out ($pagesize, $useinitialsbar, $downloadhelpbutton='') |
| Convenience method to call a number of methods for you to display the table.
|
|
| query_db ($pagesize, $useinitialsbar=true) |
| Query the reader.
|
|
| update_users_and_courses_used () |
| Helper function to create list of course shortname and user fullname shown in log report.
|
|
|
| action_link (moodle_url $url, $text, $name='popup') |
| Popup actions do not function when they are rendered in response to an AJAX request, encode within the link itself.
|
|
|
array | $contextname = array() |
| list of context name shown in report
|
|
array | $courseshortnames = array() |
| list of course short names shown in report
|
|
stdClass | $filterparams |
| filters parameters
|
|
array | $userfullnames = array() |
| list of user fullnames shown in report
|
|
Table log class for generating data in ajax mode.
- Since
- Moodle 2.7
- Copyright
- 2014 onwards Ankit Agarwal ankit.nosp@m..agr.nosp@m.r@gma.nosp@m.il.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ action_link()
report_loglive_table_log_ajax::action_link |
( |
moodle_url | $url, |
|
|
| $text, |
|
|
| $name = 'popup' ) |
|
protected |
Popup actions do not function when they are rendered in response to an AJAX request, encode within the link itself.
- Parameters
-
moodle_url | $url | |
string | $text | |
string | $name | |
- Return values
-
Reimplemented from report_loglive_table_log.
◆ col_component()
report_loglive_table_log::col_component |
( |
| $event | ) |
|
|
inherited |
Generate the component column.
- Parameters
-
stdClass | $event | event data. |
- Return values
-
string | HTML for the component column |
◆ col_context()
report_loglive_table_log::col_context |
( |
| $event | ) |
|
|
inherited |
Generate the context column.
- Parameters
-
stdClass | $event | event data. |
- Return values
-
string | HTML for the context column |
◆ col_course()
report_loglive_table_log::col_course |
( |
| $event | ) |
|
|
inherited |
Generate the course column.
- Parameters
-
stdClass | $event | event data. |
- Return values
-
string | HTML for the course column. |
◆ col_description()
report_loglive_table_log::col_description |
( |
| $event | ) |
|
|
inherited |
Generate the description column.
- Parameters
-
stdClass | $event | event data. |
- Return values
-
string | HTML for the description column |
◆ col_eventname()
report_loglive_table_log::col_eventname |
( |
| $event | ) |
|
|
inherited |
Generate the event name column.
- Parameters
-
stdClass | $event | event data. |
- Return values
-
string | HTML for the event name column |
◆ col_fullnameuser()
report_loglive_table_log::col_fullnameuser |
( |
| $event | ) |
|
|
inherited |
Generate the username column.
- Parameters
-
stdClass | $event | event data. |
- Return values
-
string | HTML for the username column |
◆ col_ip()
report_loglive_table_log::col_ip |
( |
| $event | ) |
|
|
inherited |
Generate the ip column.
- Parameters
-
stdClass | $event | event data. |
- Return values
-
string | HTML for the ip column |
◆ col_origin()
report_loglive_table_log::col_origin |
( |
| $event | ) |
|
|
inherited |
Generate the origin column.
- Parameters
-
stdClass | $event | event data. |
- Return values
-
string | HTML for the origin column |
◆ col_relatedfullnameuser()
report_loglive_table_log::col_relatedfullnameuser |
( |
| $event | ) |
|
|
inherited |
Generate the related username column.
- Parameters
-
stdClass | $event | event data. |
- Return values
-
string | HTML for the related username column |
◆ col_time()
report_loglive_table_log::col_time |
( |
| $event | ) |
|
|
inherited |
Generate the time column.
- Parameters
-
stdClass | $event | event data. |
- Return values
-
string | HTML for the time column |
◆ get_until()
report_loglive_table_log::get_until |
( |
| ) |
|
|
inherited |
Returns the latest timestamp of the records in the table.
- Return values
-
◆ out()
report_loglive_table_log_ajax::out |
( |
| $pagesize, |
|
|
| $useinitialsbar, |
|
|
| $downloadhelpbutton = '' ) |
Convenience method to call a number of methods for you to display the table.
- Parameters
-
int | $pagesize | pagesize |
bool | $useinitialsbar | Not used, present only for compatibility with parent. |
string | $downloadhelpbutton | Not used, present only for compatibility with parent. |
- Return values
-
string | json encoded data containing html of new rows. |
◆ query_db()
report_loglive_table_log::query_db |
( |
| $pagesize, |
|
|
| $useinitialsbar = true ) |
|
inherited |
Query the reader.
Store results in the object for use by build_table.
- Parameters
-
int | $pagesize | size of page for paginated displayed table. |
bool | $useinitialsbar | do you want to use the initials bar. |
◆ update_users_and_courses_used()
report_loglive_table_log::update_users_and_courses_used |
( |
| ) |
|
|
inherited |
Helper function to create list of course shortname and user fullname shown in log report.
This will update $this->userfullnames and $this->courseshortnames array with userfullname and courseshortname (with link), which will be used to render logs in table.
The documentation for this class was generated from the following file:
- report/loglive/classes/table_log_ajax.php