1 | <?php |
||
5 | class Text |
||
6 | { |
||
7 | /** |
||
8 | * indicates that the HTML input type is 'email' |
||
9 | */ |
||
10 | public const TYPE_EMAIL = 'email'; |
||
11 | |||
12 | /** |
||
13 | * indicates that the input is used to confirm an email address |
||
14 | */ |
||
15 | public const TYPE_EMAIL_CONFIRM = 'email-confirmation'; |
||
16 | |||
17 | /** |
||
18 | * indicates that the HTML input type is 'text' |
||
19 | */ |
||
20 | public const TYPE_TEXT = 'text'; |
||
21 | |||
22 | /** |
||
23 | * indicates that the input is a TEXTAREA that only allows plain text |
||
24 | */ |
||
25 | public const TYPE_TEXTAREA = 'textarea'; |
||
26 | |||
27 | /** |
||
28 | * indicates that the input is a TEXTAREA that allows simple html |
||
29 | */ |
||
30 | public const TYPE_TEXTAREA_HTML = 'textarea-html'; |
||
31 | |||
32 | |||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | private $valid_type_options; |
||
37 | |||
38 | |||
39 | public function __construct() |
||
52 | |||
53 | |||
54 | /** |
||
55 | * @param bool $constants_only |
||
56 | * @return array |
||
57 | */ |
||
58 | public function validTypeOptions(bool $constants_only = false): array |
||
64 | } |
||
65 |