1 | <?php |
||
21 | class Kirki_Modules_Field_Dependencies { |
||
22 | |||
23 | /** |
||
24 | * The object instance. |
||
25 | * |
||
26 | * @static |
||
27 | * @access private |
||
28 | * @since 3.0.0 |
||
29 | * @var object |
||
30 | */ |
||
31 | private static $instance; |
||
32 | |||
33 | /** |
||
34 | * Constructor. |
||
35 | * |
||
36 | * @access protected |
||
37 | * @since 3.0.0 |
||
38 | */ |
||
39 | protected function __construct() { |
||
42 | |||
43 | /** |
||
44 | * Gets an instance of this object. |
||
45 | * Prevents duplicate instances which avoid artefacts and improves performance. |
||
46 | * |
||
47 | * @static |
||
48 | * @access public |
||
49 | * @since 3.0.0 |
||
50 | * @return object |
||
51 | */ |
||
52 | public static function get_instance() { |
||
58 | |||
59 | /** |
||
60 | * Enqueues the field-dependencies script |
||
61 | * and adds variables to it using the wp_localize_script function. |
||
62 | * The rest is handled via JS. |
||
63 | * |
||
64 | * @access public |
||
65 | * @return void |
||
66 | */ |
||
67 | public function field_dependencies() { |
||
71 | } |
||
72 |