diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/webhooks_table.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/classes/webhooks_table.php b/classes/webhooks_table.php index cf00790..fdf015e 100644 --- a/classes/webhooks_table.php +++ b/classes/webhooks_table.php @@ -76,12 +76,14 @@ class local_webhooks_table extends table_sql { $columns = array( "title", "url", + "events", "actions" ); $headers = array( new lang_string("name", "moodle"), new lang_string("url", "moodle"), + new lang_string("edulevel", "moodle"), new lang_string("actions", "moodle") ); @@ -119,6 +121,17 @@ class local_webhooks_table extends table_sql { } /** + * Specifies the display of a column with events. + * + * @param object $row Data from the database. + * @return string Displayed data. + */ + public function col_events($row) { + $eventlist = local_webhooks_deserialization_data($row->events); + return count($eventlist); + } + + /** * Specifies the display of the column with the service name. * * @param object $row Data from the database. |