PluginProbe
Stream – Activity Log & Audit Trail / 3.4.2
Stream – Activity Log & Audit Trail v3.4.2
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-db-driver.php +4 -14 trunk3.4.2 View file →
@@ -1,22 +1,12 @@
1 1 <?php
2 -/**
3 - * Interface for a Database Driver.
4 - *
5 - * @todo Review. Heavy refactor maybe needed.
6 - * @package WP_Stream
7 - */
8 -
9 2 namespace WP_Stream;
10 3
11 -/**
12 - * Interface - DB_Driver
13 - */
14 4 interface DB_Driver {
15 5 /**
16 6 * Insert a record
17 7 *
18 - * @param array $data Data to be insert into the database.
8 + * @param array $data
19 9 *
20 10 * @return int
21 11 */
22 12 public function insert_record( $data );
@@ -23,9 +13,9 @@
23 13
24 14 /**
25 15 * Retrieve records
26 16 *
27 - * @param array $args Argument to filter the result by.
17 + * @param array $args
28 18 *
29 19 * @return array
30 20 */
31 21 public function get_records( $args );
@@ -33,9 +23,9 @@
33 23 /**
34 24 * Returns array of existing values for requested column.
35 25 * Used to fill search filters with only used items, instead of all items.
36 26 *
37 - * @param string $column Column to pull data from.
27 + * @param string $column
38 28 *
39 29 * @return array
40 30 */
41 31 public function get_column_values( $column );
@@ -40,9 +30,9 @@
40 30 */
41 31 public function get_column_values( $column );
42 32
43 33 /**
44 - * Public getter to return the names of the tables this driver manages.
34 + * Public getter to return table names
45 35 *
46 36 * @return array
47 37 */
48 38 public function get_table_names();