1 | <?php |
||
14 | abstract class WPInv_Abstract_Privacy { |
||
15 | /** |
||
16 | * This is the name of this object type. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | public $name; |
||
21 | |||
22 | /** |
||
23 | * This is a list of exporters. |
||
24 | * |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $exporters = array(); |
||
28 | |||
29 | /** |
||
30 | * This is a list of erasers. |
||
31 | * |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $erasers = array(); |
||
35 | |||
36 | /** |
||
37 | * Constructor |
||
38 | * |
||
39 | * @param string $name Plugin identifier. |
||
40 | */ |
||
41 | public function __construct( $name = '' ) { |
||
45 | |||
46 | /** |
||
47 | * Hook in events. |
||
48 | */ |
||
49 | protected function init() { |
||
56 | |||
57 | /** |
||
58 | * Adds the privacy message on invoicing privacy page. |
||
59 | */ |
||
60 | public function add_privacy_message() { |
||
69 | |||
70 | /** |
||
71 | * Gets the message of the privacy to display. |
||
72 | * To be overloaded by the implementor. |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | public function get_privacy_message() { |
||
79 | |||
80 | /** |
||
81 | * Integrate this exporter implementation within the WordPress core exporters. |
||
82 | * |
||
83 | * @param array $exporters List of exporter callbacks. |
||
84 | * @return array |
||
85 | */ |
||
86 | public function register_exporters( $exporters = array() ) { |
||
92 | |||
93 | /** |
||
94 | * Integrate this eraser implementation within the WordPress core erasers. |
||
95 | * |
||
96 | * @param array $erasers List of eraser callbacks. |
||
97 | * @return array |
||
98 | */ |
||
99 | public function register_erasers( $erasers = array() ) { |
||
105 | |||
106 | /** |
||
107 | * Add exporter to list of exporters. |
||
108 | * |
||
109 | * @param string $id ID of the Exporter. |
||
110 | * @param string $name Exporter name. |
||
111 | * @param string $callback Exporter callback. |
||
112 | * |
||
113 | * @return array |
||
114 | */ |
||
115 | public function add_exporter( $id, $name, $callback ) { |
||
122 | |||
123 | /** |
||
124 | * Add eraser to list of erasers. |
||
125 | * |
||
126 | * @param string $id ID of the Eraser. |
||
127 | * @param string $name Exporter name. |
||
128 | * @param string $callback Exporter callback. |
||
129 | * |
||
130 | * @return array |
||
131 | */ |
||
132 | public function add_eraser( $id, $name, $callback ) { |
||
139 | } |
||
140 |