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

28 lines 578 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 private static $data = array();
16
17 /**
18 * @param string $type
19 * @return array
20 */
21 public static function get_field_types( $type ) {
22 if ( ! isset( self::$data[ $type ] ) ) {
23 self::$data[ $type ] = FrmFieldsHelper::get_field_types( $type );
24 }
25 return self::$data[ $type ];
26 }
27 }
28