diff options
author | Valentin Popov <info@valentineus.link> | 2017-12-27 20:03:09 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2017-12-27 20:03:09 +0300 |
commit | 21267082016c5f2573400dbb036eb747e2a7e55e (patch) | |
tree | d67618913379c5bbd1c3a802b21b5fde4572c979 /classes/webhooks_table.php | |
parent | 0041667754825dca690169bdc8db92a2ed7b4b4e (diff) | |
download | local_webhooks-21267082016c5f2573400dbb036eb747e2a7e55e.tar.xz local_webhooks-21267082016c5f2573400dbb036eb747e2a7e55e.zip |
An additional column is added
Diffstat (limited to 'classes/webhooks_table.php')
-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. |