PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.5.1
JetFormBuilder — Dynamic Blocks Form Builder v3.6.5.1
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 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / components / repository / repository-aborts-trait.php
jetformbuilder / components / repository Last commit date
interfaces 2 years ago repository-aborts-trait.php 2 years ago repository-dynamic-items-it.php 2 years ago repository-item-dynamic-id.php 2 years ago repository-item-instance-trait.php 2 years ago repository-item-with-class.php 2 years ago repository-pattern-trait.php 2 years ago repository-static-item-it.php 2 years ago
repository-aborts-trait.php
52 lines
1 <?php // phpcs:ignore Internal.Exception
2
3 namespace JFB_Components\Repository;
4
5 use Jet_Form_Builder\Exceptions\Repository_Exception;
6
7 // If this file is called directly, abort.
8 if ( ! defined( 'WPINC' ) ) {
9 die;
10 }
11
12 trait Repository_Aborts_Trait {
13
14 // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
15
16 /**
17 * @throws Repository_Exception
18 */
19 final public function _rep_abort_this() {
20 throw ( new Repository_Exception( 'replace this...' ) )->set_code( $this->_rep_abort_this_code() );
21 }
22
23 final public function _rep_abort_this_code() {
24 return 1;
25 }
26
27 /**
28 * @throws Repository_Exception
29 */
30 final public function _rep_abort_all() {
31 throw ( new Repository_Exception( 'replace this...' ) )->set_code( $this->_rep_abort_all_code() );
32 }
33
34 final public function _rep_abort_all_code() {
35 return 2;
36 }
37
38 /**
39 * @throws Repository_Exception
40 */
41 final public function _rep_abort_and_die() {
42 throw ( new Repository_Exception( 'replace this...' ) )->set_code( $this->_rep_abort_and_die_code() );
43 }
44
45 final public function _rep_abort_and_die_code() {
46 return 3;
47 }
48
49 // phpcs:enable PSR2.Methods.MethodDeclaration.Underscore
50
51 }
52