PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.6
JetFormBuilder — Dynamic Blocks Form Builder v3.6.6
3.6.6.1 3.6.6 3.6.5.4 3.6.5.3 3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 134 releases
jetformbuilder / components / admin / vui-boxes / boxes-repository.php

boxes-repository.php in JetFormBuilder — Dynamic Blocks Form Builder 3.6.6, at components/admin/vui-boxes/boxes-repository.php

39 lines 629 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 namespace JFB_Components\Admin\Vui_Boxes;
5
6 use JFB_Components\Repository\Repository_Pattern_Trait;
7
8 // If this file is called directly, abort.
9 if ( ! defined( 'WPINC' ) ) {
10 die;
11 }
12
13 class Boxes_Repository {
14
15 use Repository_Pattern_Trait;
16
17 public function rep_instances(): array {
18 return array();
19 }
20
21 /**
22 * @return Base_Vui_Box[]
23 */
24 public function get_boxes(): array {
25 return $this->rep_get_items();
26 }
27
28 /**
29 * @param Base_Vui_Box $box
30 *
31 * @return Boxes_Repository
32 */
33 public function register_box( Base_Vui_Box $box ): Boxes_Repository {
34 $this->rep_install_item_soft( $box );
35
36 return $this;
37 }
38 }
39