PluginProbe
Stream – Activity Log & Audit Trail / trunk
Stream – Activity Log & Audit Trail vtrunk
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
stream / classes / class-exporter.php

class-exporter.php in Stream – Activity Log & Audit Trail trunk, at classes/class-exporter.php

46 lines 693 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Abstract class for record exporters
4 *
5 * @package WP_Stream
6 */
7
8 namespace WP_Stream;
9
10 /**
11 * Class - Exporter
12 */
13 abstract class Exporter {
14 /**
15 * Exporter name
16 *
17 * @var string
18 */
19 public $name;
20
21 /**
22 * Exporter slug
23 *
24 * @var string
25 */
26 public $slug;
27
28 /**
29 * Output formatted data for download
30 *
31 * @param array $data Array of data to output.
32 * @param array $columns Column names included in data set.
33 * @return void
34 */
35 abstract public function output_file( $data, $columns );
36
37 /**
38 * Allow connectors to determine if their dependencies is satisfied or not
39 *
40 * @return bool
41 */
42 public function is_dependency_satisfied() {
43 return true;
44 }
45 }
46