PluginProbe ʕ •ᴥ•ʔ
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode / 2.4.1
Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA & Google Consent Mode v2.4.1
4.7.2 4.7.1 trunk 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 3.0.0 3.0.1 3.1.0 3.10.0 3.10.1 3.11.1 3.11.2 3.11.3 3.2.0 3.3.0 3.3.1 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.6.1 3.6.2 3.6.5 3.6.6 3.7.0 3.7.1 3.8.0 3.9.0 4.0.0 4.0.1 4.0.2 4.0.3 4.1.0 4.1.1 4.2.0 4.2.1 4.2.10 4.2.11 4.2.12 4.2.13 4.2.14 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 4.3.1 4.3.10 4.3.11 4.3.12 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.3.7 4.3.7.1 4.3.8 4.3.9 4.3.9.1 4.4.0 4.4.1 4.4.2 4.5.0 4.5.1 4.5.10 4.5.11 4.5.2 4.5.3 4.5.4 4.5.5 4.5.6 4.5.7 4.5.8 4.5.9 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.6.5 4.6.6 4.6.7 4.7.0
cookiebot / addons / lib / settings-service-interface.php
cookiebot / addons / lib Last commit date
buffer 7 years ago ioc 7 years ago script-loader-tag 7 years ago autoloader.php 7 years ago cookie-consent-interface.php 7 years ago cookie-consent.php 7 years ago helper.php 7 years ago settings-service-interface.php 7 years ago settings-service.php 7 years ago
settings-service-interface.php
142 lines
1 <?php
2
3 namespace cookiebot_addons\lib;
4
5 use cookiebot_addons\controller\addons\Cookiebot_Addons_Interface;
6
7 Interface Settings_Service_Interface {
8
9 /**
10 * Settings_Service constructor.
11 *
12 * @param $container \DI\Container
13 *
14 * @since 1.3.0
15 */
16 public function __construct( $container );
17
18 /**
19 * Returns true if the addon is enabled in the backend
20 *
21 * @param $addon string option name
22 *
23 * @return mixed
24 *
25 * @since 1.3.0
26 */
27 public function is_addon_enabled( $addon );
28
29 /**
30 * Returns true if the addon is installed
31 *
32 * @param $addon string plugin file, for example: test/test.php
33 *
34 * @return int|\WP_Error
35 *
36 * @since 1.3.0
37 */
38 public function is_addon_installed( $addon );
39
40 /**
41 * Returns true if the addon plugin is activated
42 *
43 * @param $addon string plugin file, for example: test/test.php
44 *
45 * @return bool
46 *
47 * @since 1.3.0
48 */
49 public function is_addon_activated( $addon );
50
51 /**
52 * Returns the addon version
53 *
54 * @param $addon
55 *
56 * @return bool
57 *
58 * @since 2.2.1
59 */
60 public function get_addon_version( $addon );
61
62 /**
63 * Returns all cookie type for given addon
64 *
65 * @param $addon string option name
66 * @param $default array default cookie types
67 *
68 * @return array
69 *
70 * @since 1.3.0
71 */
72 public function get_cookie_types( $addon, $default = array() );
73
74 /**
75 * Returns addons one by one through a generator
76 *
77 * @return \Generator
78 * @throws \DI\DependencyException
79 * @throws \DI\NotFoundException
80 *
81 * @since 1.3.0
82 */
83 public function get_addons();
84
85 /**
86 * Returns active addons
87 *
88 * @return array
89 * @throws \DI\DependencyException
90 * @throws \DI\NotFoundException
91 *
92 * @since 1.3.0
93 */
94 public function get_active_addons();
95
96 /**
97 * returns the placeholder if it does exist
98 *
99 * @param $option_key
100 * @param $default_placeholder
101 * @param $cookies
102 *
103 * @return bool|mixed
104 *
105 * @since 1.8.0
106 */
107 public function get_placeholder( $option_key, $default_placeholder, $cookies );
108
109
110 /**
111 * Check if the previous version is active
112 *
113 * @param $addons array List of addons
114 * @param $addon_class string The name of the class
115 *
116 * @return bool
117 *
118 * @since 2.1.3
119 */
120 public function is_previous_version_active( $addons, $addon_class );
121
122 /**
123 * Checks if the addon is the latest plugin version.
124 * Latest plugin version doesn't have extended class.
125 *
126 * @param $addon
127 *
128 * @return bool
129 *
130 * @since 2.1.3
131 */
132 public function is_latest_plugin_version( $addon );
133
134 /**
135 * The cookiebot plugin is deactivated
136 * so run this function to cleanup the addons.
137 *
138 * @since 2.2.0
139 */
140 public function cookiebot_deactivated();
141 }
142