1 | <?php |
||
21 | final class Black_Studio_TinyMCE_Compatibility { |
||
22 | |||
23 | /** |
||
24 | * The single instance of the plugin class |
||
25 | * |
||
26 | * @var object |
||
27 | * @since 2.0.0 |
||
28 | */ |
||
29 | protected static $_instance = null; |
||
30 | |||
31 | /** |
||
32 | * Array of compatibility modules class instances |
||
33 | * |
||
34 | * @var array |
||
35 | * @since 2.4.0 |
||
36 | */ |
||
37 | protected static $modules = null; |
||
38 | |||
39 | /** |
||
40 | * Instance of compatibility class for 3rd party plugins |
||
41 | * |
||
42 | * @var object |
||
43 | * @since 2.0.0 |
||
44 | * @deprecated 3.0.0 |
||
45 | */ |
||
46 | protected static $plugins = null; |
||
47 | |||
48 | /** |
||
49 | * Instance of compatibility class for WordPress old versions |
||
50 | * |
||
51 | * @var object |
||
52 | * @since 2.0.0 |
||
53 | * @deprecated 3.0.0 |
||
54 | */ |
||
55 | protected static $wordpress = null; |
||
56 | |||
57 | /** |
||
58 | * Class constructor |
||
59 | * |
||
60 | * @global object $wp_embed |
||
61 | * @since 2.0.0 |
||
62 | */ |
||
63 | protected function __construct() { |
||
67 | |||
68 | /** |
||
69 | * Prevent the class from being cloned |
||
70 | * |
||
71 | * @return void |
||
72 | * @since 2.0.0 |
||
73 | */ |
||
74 | protected function __clone() { |
||
77 | |||
78 | /** |
||
79 | * Return the single class instance |
||
80 | * |
||
81 | * @return object |
||
82 | * @since 2.0.0 |
||
83 | */ |
||
84 | public static function instance() { |
||
90 | |||
91 | /** |
||
92 | * Return the instance of a compatibility class module, given its slug |
||
93 | * |
||
94 | * @param string $slug Slug of instance. |
||
95 | * @return object |
||
96 | * @since 3.0.0 |
||
97 | */ |
||
98 | public static function module( $slug ) { |
||
101 | |||
102 | /** |
||
103 | * Return the instance of the compatibility class for 3rd party plugins |
||
104 | * |
||
105 | * @return object |
||
106 | * @since 2.0.0 |
||
107 | * @deprecated 3.0.0 |
||
108 | */ |
||
109 | public static function plugins() { |
||
115 | |||
116 | /** |
||
117 | * Return the instance of the compatibility class for WordPress old versions |
||
118 | * |
||
119 | * @return object |
||
120 | * @since 2.0.0 |
||
121 | * @deprecated 3.0.0 |
||
122 | */ |
||
123 | public static function wordpress() { |
||
131 | |||
132 | /** |
||
133 | * Load compatibility code for previous BSTW versions |
||
134 | * |
||
135 | * @uses apply_filters() |
||
136 | * @uses plugin_dir_path() |
||
137 | * |
||
138 | * @return void |
||
139 | * @since 2.0.0 |
||
140 | * @deprecated 3.0.0 |
||
141 | */ |
||
142 | public function load_deprecated() { |
||
144 | |||
145 | /** |
||
146 | * Load compatibility code for other plugins |
||
147 | * |
||
148 | * @uses apply_filters() |
||
149 | * @uses plugin_dir_path() |
||
150 | * |
||
151 | * @return void |
||
152 | * @since 2.0.0 |
||
153 | */ |
||
154 | public function load_plugins() { |
||
170 | |||
171 | /** |
||
172 | * Load compatibility code for previous WordPress versions |
||
173 | * |
||
174 | * @uses get_bloginfo() |
||
175 | * @uses plugin_dir_path() |
||
176 | * |
||
177 | * @return void |
||
178 | * @since 2.0.0 |
||
179 | */ |
||
180 | public function load_wordpress() { |
||
188 | |||
189 | /** |
||
190 | * Get path for compatibility code files |
||
191 | * |
||
192 | * @uses plugin_dir_path() |
||
193 | * |
||
194 | * @param string $folder Folder containing the file to be loaded. |
||
195 | * @return string |
||
196 | * @since 3.0.0 |
||
197 | */ |
||
198 | public static function get_path( $folder = '' ) { |
||
205 | |||
206 | /** |
||
207 | * Get instance of a compatibility module |
||
208 | * |
||
209 | * @param string $folder Folder containing the file to be loaded. |
||
210 | * @param string $slug Slug of the file to be loaded. |
||
211 | * @since 3.0.0 |
||
212 | */ |
||
213 | public static function create_module_instance( $folder, $slug ) { |
||
222 | |||
223 | } // END class Black_Studio_TinyMCE_Compatibility |
||
224 | |||
226 |