Color.php
23 hours ago
InputType.php
23 hours ago
Positions.php
23 hours ago
Size.php
23 hours ago
Variant.php
23 hours ago
InputType.php
46 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Input type constants for the components |
| 4 | * |
| 5 | * @package Tutor\Components |
| 6 | * @author Themeum |
| 7 | * @link https://themeum.com |
| 8 | * @since 4.0.0 |
| 9 | */ |
| 10 | |
| 11 | namespace Tutor\Components\Constants; |
| 12 | |
| 13 | defined( 'ABSPATH' ) || exit; |
| 14 | |
| 15 | /** |
| 16 | * Class for containing input type constants |
| 17 | * |
| 18 | * @since 4.0.0 |
| 19 | */ |
| 20 | abstract class InputType { |
| 21 | |
| 22 | /** |
| 23 | * Input types |
| 24 | * |
| 25 | * @since 4.0.0 |
| 26 | * |
| 27 | * @var string |
| 28 | */ |
| 29 | public const TEXT = 'text'; |
| 30 | public const SELECT = 'select'; |
| 31 | public const RADIO = 'radio'; |
| 32 | public const SWITCH = 'switch'; |
| 33 | public const CHECKBOX = 'checkbox'; |
| 34 | public const TEXTAREA = 'textarea'; |
| 35 | public const EMAIL = 'email'; |
| 36 | public const PASSWORD = 'password'; |
| 37 | public const NUMBER = 'number'; |
| 38 | public const COLOR = 'color'; |
| 39 | public const DROPDOWN = 'dropdown'; |
| 40 | public const LINK = 'link'; |
| 41 | public const DATE = 'date'; |
| 42 | public const TIME = 'time'; |
| 43 | public const DATE_TIME = 'date-time'; |
| 44 | public const FILE = 'file'; |
| 45 | } |
| 46 |