PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.32
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.32
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
formidable / classes / models / FrmFieldTypeOptionData.php

FrmFieldTypeOptionData.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.32, at classes/models/FrmFieldTypeOptionData.php

32 lines 607 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 die( 'You are not allowed to call this page directly.' );
5 }
6
7 /**
8 * This class keeps a static record of field type options for each type.
9 * The result is stored in memory so it can be re-used.
10 *
11 * @since 6.9.1
12 */
13 class FrmFieldTypeOptionData {
14
15 /**
16 * @var array
17 */
18 private static $data = array();
19
20 /**
21 * @param string $type
22 *
23 * @return array
24 */
25 public static function get_field_types( $type ) {
26 if ( ! isset( self::$data[ $type ] ) ) {
27 self::$data[ $type ] = FrmFieldsHelper::get_field_types( $type );
28 }
29 return self::$data[ $type ];
30 }
31 }
32