1 | <?php |
||
19 | abstract class GeoDir_Abstract_Privacy { |
||
20 | /** |
||
21 | * This is the name of this object type. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | public $name; |
||
26 | |||
27 | /** |
||
28 | * This is a list of exporters. |
||
29 | * |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $exporters = array(); |
||
33 | |||
34 | /** |
||
35 | * This is a list of erasers. |
||
36 | * |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $erasers = array(); |
||
40 | |||
41 | /** |
||
42 | * Constructor |
||
43 | * |
||
44 | * @param string $name Plugin identifier. |
||
45 | */ |
||
46 | public function __construct( $name = '' ) { |
||
50 | |||
51 | /** |
||
52 | * Hook in events. |
||
53 | */ |
||
54 | protected function init() { |
||
61 | |||
62 | /** |
||
63 | * Adds the privacy message on GeoDirectory privacy page. |
||
64 | */ |
||
65 | public function add_privacy_message() { |
||
72 | |||
73 | /** |
||
74 | * Gets the message of the privacy to display. |
||
75 | * To be overloaded by the implementor. |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | public function get_privacy_message() { |
||
82 | |||
83 | /** |
||
84 | * Integrate this exporter implementation within the WordPress core exporters. |
||
85 | * |
||
86 | * @param array $exporters List of exporter callbacks. |
||
87 | * @return array |
||
88 | */ |
||
89 | public function register_exporters( $exporters = array() ) { |
||
95 | |||
96 | /** |
||
97 | * Integrate this eraser implementation within the WordPress core erasers. |
||
98 | * |
||
99 | * @param array $erasers List of eraser callbacks. |
||
100 | * @return array |
||
101 | */ |
||
102 | public function register_erasers( $erasers = array() ) { |
||
108 | |||
109 | /** |
||
110 | * Add exporter to list of exporters. |
||
111 | * |
||
112 | * @param string $id ID of the Exporter. |
||
113 | * @param string $name Exporter name. |
||
114 | * @param string $callback Exporter callback. |
||
115 | */ |
||
116 | public function add_exporter( $id, $name, $callback ) { |
||
123 | |||
124 | /** |
||
125 | * Add eraser to list of erasers. |
||
126 | * |
||
127 | * @param string $id ID of the Eraser. |
||
128 | * @param string $name Exporter name. |
||
129 | * @param string $callback Exporter callback. |
||
130 | */ |
||
131 | public function add_eraser( $id, $name, $callback ) { |
||
138 | } |
||
139 |