PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.1
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmFormAction.php +2 -47 6.36.1 View file →
@@ -49,11 +49,8 @@
49 49 public function get_defaults() {
50 50 return array();
51 51 }
52 52
53 - /**
54 - * @return array
55 - */
56 53 public function get_switch_fields() {
57 54 return array();
58 55 }
59 56
@@ -201,20 +198,15 @@
201 198 public function get_field_id( $field_name ) {
202 199 return $field_name . '_' . $this->number;
203 200 }
204 201
205 - /**
206 - * @param int|string $number
207 - * @return void
208 - */
202 + // Private Function. Don't worry about this.
203 +
209 204 public function _set( $number ) {
210 205 $this->number = $number;
211 206 $this->id = $this->id_base . '-' . $number;
212 207 }
213 208
214 - /**
215 - * @return object
216 - */
217 209 public function prepare_new( $form_id = false ) {
218 210 if ( $form_id ) {
219 211 $this->form_id = $form_id;
220 212 }
@@ -251,11 +243,8 @@
251 243
252 244 return $this->save_settings( $action );
253 245 }
254 246
255 - /**
256 - * @return void
257 - */
258 247 public function duplicate_form_actions( $form_id, $old_id ) {
259 248 if ( $form_id == $old_id ) {
260 249 // don't duplicate the actions if this is a template getting updated
261 250 return;
@@ -291,11 +280,8 @@
291 280
292 281 return $post_id;
293 282 }
294 283
295 - /**
296 - * @param object $action
297 - */
298 284 public function duplicate_one( $action, $form_id ) {
299 285 global $frm_duplicate_ids;
300 286
301 287 $action->menu_order = $form_id;
@@ -522,13 +508,10 @@
522 508 }
523 509
524 510 /**
525 511 * @since 3.04
526 - *
527 512 * @param array $args
528 513 * @param string $default_status
529 - *
530 - * @return void
531 514 */
532 515 protected static function prepare_get_action( &$args, $default_status = 'publish' ) {
533 516 if ( is_numeric( $args ) ) {
534 517 // for reverse compatibility. $limit was changed to $args
@@ -615,11 +598,8 @@
615 598
616 599 return $settings;
617 600 }
618 601
619 - /**
620 - * @return array
621 - */
622 602 public static function action_args( $form_id = 0, $limit = 99 ) {
623 603 $args = array(
624 604 'post_type' => FrmFormActionsController::$action_post_type,
625 605 'post_status' => 'publish',
@@ -634,11 +614,8 @@
634 614
635 615 return $args;
636 616 }
637 617
638 - /**
639 - * @param WP_Post|array $action
640 - */
641 618 public function prepare_action( $action ) {
642 619 $action->post_content = (array) FrmAppHelper::maybe_json_decode( $action->post_content );
643 620 $action->post_excerpt = sanitize_title( $action->post_excerpt );
644 621
@@ -662,11 +639,8 @@
662 639
663 640 return $action;
664 641 }
665 642
666 - /**
667 - * @return void
668 - */
669 643 public function destroy( $form_id = false, $type = 'default' ) {
670 644 global $wpdb;
671 645
672 646 $this->form_id = $form_id;
@@ -690,10 +664,8 @@
690 664 /**
691 665 * Delete the action cache when a form action is created, deleted, or updated
692 666 *
693 667 * @since 2.0.5
694 - *
695 - * @return void
696 668 */
697 669 public static function clear_cache() {
698 670 FrmDb::cache_delete_group( 'frm_actions' );
699 671 }
@@ -701,11 +673,8 @@
701 673 public function get_settings() {
702 674 return self::get_action_for_form( $this->form_id, $this->id_base );
703 675 }
704 676
705 - /**
706 - * @return array
707 - */
708 677 public function get_global_defaults() {
709 678 $defaults = $this->get_defaults();
710 679
711 680 if ( ! isset( $defaults['event'] ) ) {
@@ -823,14 +792,11 @@
823 792 /**
824 793 * Prepare the logic value for comparison against the entered value
825 794 *
826 795 * @since 2.01.02
827 - *
828 796 * @deprecated 4.06.02
829 797 *
830 798 * @param array|string $logic_value
831 - *
832 - * @return void
833 799 */
834 800 private static function prepare_logic_value( &$logic_value, $action, $entry ) {
835 801 if ( is_array( $logic_value ) ) {
836 802 $logic_value = reset( $logic_value );
@@ -878,13 +844,8 @@
878 844
879 845 return $observed_value;
880 846 }
881 847
882 - /**
883 - * @param string $class
884 - *
885 - * @return array
886 - */
887 848 public static function default_action_opts( $class = '' ) {
888 849 return array(
889 850 'classes' => 'frm_icon_font ' . $class,
890 851 'active' => false,
@@ -903,11 +864,8 @@
903 864
904 865 return apply_filters( 'frm_action_triggers', $triggers );
905 866 }
906 867
907 - /**
908 - * @return void
909 - */
910 868 public function render_conditional_logic_call_to_action() {
911 869 ?>
912 870 <h3>
913 871 <a href="javascript:void(0)" class="frm_show_upgrade frm_noallow" data-upgrade="<?php echo esc_attr( $this->get_upgrade_text() ); ?>" data-medium="conditional-<?php echo esc_attr( $this->id_base ); ?>">
@@ -916,11 +874,8 @@
916 874 </h3>
917 875 <?php
918 876 }
919 877
920 - /**
921 - * @return string
922 - */
923 878 protected function get_upgrade_text() {
924 879 return __( 'Conditional form actions', 'formidable' );
925 880 }
926 881 }