PluginProbe
Stream – Activity Log & Audit Trail / 3.6.1
Stream – Activity Log & Audit Trail v3.6.1
4.4.0 4.3.0 4.2.2 4.2.1 trunk 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1 3.1.1 3.10.0 3.2.0 3.2.1 3.2.2 3.2.3 All 50 releases
← All changes | classes/class-preview-list-table.php +21 -5 3.13.6.1 View file →
@@ -1,7 +1,16 @@
1 1 <?php
2 +/**
3 + * Displays a list of provided records in a HTML Table
4 + *
5 + * @package WP_Stream
6 + */
7 +
2 8 namespace WP_Stream;
3 9
10 +/**
11 + * Class - Preview_List_Table
12 + */
4 13 class Preview_List_Table extends List_Table {
5 14
6 15 /**
7 16 * Class constructor.
@@ -6,8 +15,9 @@
6 15 /**
7 16 * Class constructor.
8 17 *
9 18 * @param Plugin $plugin Plugin object.
19 + *
10 20 * @return void
11 21 */
12 22 public function __construct( $plugin ) {
13 23 $this->plugin = $plugin;
@@ -17,17 +27,23 @@
17 27 /**
18 28 * Sets up the records for display.
19 29 *
20 30 * @param array $items List of items for display.
31 + *
21 32 * @return void
22 33 */
23 - function set_records( $items ) {
24 - $columns = $this->get_columns();
34 + public function set_records( $items ) {
35 + $columns = $this->get_columns();
25 36 $sortable = $this->get_sortable_columns();
26 37 $hidden = $this->get_hidden_columns();
27 - $primary = $columns['summary'];
38 + $primary = $columns['summary'];
28 39
29 - $this->_column_headers = array( $columns, $hidden, $sortable, $primary );
40 + $this->_column_headers = array(
41 + $columns,
42 + $hidden,
43 + $sortable,
44 + $primary,
45 + );
30 46
31 47 $this->items = $items;
32 48 }
33 49
@@ -46,9 +62,9 @@
46 62 </tr>
47 63 </thead>
48 64
49 65 <tbody id="the-list">
50 - <?php $this->display_rows_or_placeholder(); ?>
66 + <?php $this->display_rows_or_placeholder(); ?>
51 67 </tbody>
52 68
53 69 <tfoot>
54 70 <tr>