| 1 |
<?php |
| 2 |
/** |
| 3 |
* @package FireBox |
| 4 |
* @version 2.1.14 Free |
| 5 |
* |
| 6 |
* @author FirePlugins <info@fireplugins.com> |
| 7 |
* @link https://www.fireplugins.com |
| 8 |
* @copyright Copyright © 2024 FirePlugins All Rights Reserved |
| 9 |
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 |
*/ |
| 11 |
|
| 12 |
namespace FireBox\Core\Helpers; |
| 13 |
|
| 14 |
if (!defined('ABSPATH')) |
| 15 |
{ |
| 16 |
exit; // Exit if accessed directly. |
| 17 |
} |
| 18 |
|
| 19 |
use FPFramework\Helpers\SearchDropdownHelper; |
| 20 |
|
| 21 |
class Form extends \FPFramework\Helpers\SearchDropdownProviderHelper |
| 22 |
{ |
| 23 |
/** |
| 24 |
* Class Name. |
| 25 |
* |
| 26 |
* @var string |
| 27 |
*/ |
| 28 |
protected $class_name = 'Form'; |
| 29 |
|
| 30 |
/** |
| 31 |
* Provider prefix. |
| 32 |
* |
| 33 |
* @var string |
| 34 |
*/ |
| 35 |
protected $provider_prefix = '\FireBox\Core\Helpers\DataProviders\\'; |
| 36 |
|
| 37 |
/** |
| 38 |
* Parses given data to a key, value, lang array |
| 39 |
* |
| 40 |
* @param array $items |
| 41 |
* |
| 42 |
* @return array |
| 43 |
*/ |
| 44 |
public static function parseData($items) |
| 45 |
{ |
| 46 |
return $items; |
| 47 |
} |
| 48 |
|
| 49 |
/** |
| 50 |
* Returns all forms. |
| 51 |
* |
| 52 |
* @return array |
| 53 |
*/ |
| 54 |
public static function getForms() |
| 55 |
{ |
| 56 |
return \FireBox\Core\Helpers\Form\Form::getParsedForms(); |
| 57 |
} |
| 58 |
} |