-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGetComponentTrait.php
More file actions
121 lines (96 loc) · 3.73 KB
/
Copy pathGetComponentTrait.php
File metadata and controls
121 lines (96 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
namespace ADT\Forms;
use Nette;
use Nette\ComponentModel\IComponent;
trait GetComponentTrait
{
abstract public function getComponent(string $name, bool $throw = true): ?IComponent;
public function getComponentButton(string $name, bool $throw = true): ?Nette\Forms\Controls\Button
{
return parent::getComponent($name, $throw);
}
public function getComponentDate(string $name, bool $throw = true): ?\Vodacek\Forms\Controls\DateInput
{
return parent::getComponent($name, $throw);
}
public function getComponentPhoneNumber(string $name, bool $throw = true): ?\ADT\Forms\Controls\PhoneNumberInput
{
return parent::getComponent($name, $throw);
}
public function getComponentCurrency(string $name, bool $throw = true): ?\ADT\Forms\Controls\CurrencyInput
{
return parent::getComponent($name, $throw);
}
public function getComponentStaticContainer(string $name, bool $throw = true): ?StaticContainer
{
return parent::getComponent($name, $throw);
}
public function getComponentDynamicContainer(string $name, bool $throw = true): ?DynamicContainer
{
return parent::getComponent($name, $throw);
}
public function getComponentUploadControl(string $name, bool $throw = true): ?Nette\Forms\Controls\UploadControl
{
return parent::getComponent($name, $throw);
}
public function getComponentDependentSelectBox(string $name, bool $throw = true): ?\NasExt\Forms\Controls\DependentSelectBox
{
return parent::getComponent($name, $throw);
}
public function getComponentDependentMultiSelectBox(string $name, bool $throw = true): ?\NasExt\Forms\Controls\DependentMultiSelectBox
{
return parent::getComponent($name, $throw);
}
public function getComponentAjaxSelect(string $name, bool $throw = true): ?\ADT\Components\AjaxSelect\AjaxSelect
{
return parent::getComponent($name, $throw);
}
public function getComponentAjaxMultiSelect(string $name, bool $throw = true): ?\ADT\Components\AjaxSelect\AjaxMultiSelect
{
return parent::getComponent($name, $throw);
}
public function getComponentDynamicSelect(string $name, bool $throw = true): ?\ADT\Components\AjaxSelect\DynamicSelect
{
return parent::getComponent($name, $throw);
}
public function getComponentDynamicMultiSelect(string $name, bool $throw = true): ?\ADT\Components\AjaxSelect\DynamicMultiSelect
{
return parent::getComponent($name, $throw);
}
public function getComponentCheckbox(string $name, bool $throw = true): ?Nette\Forms\Controls\Checkbox
{
return parent::getComponent($name, $throw);
}
public function getComponentCheckboxList(string $name, bool $throw = true): ?Nette\Forms\Controls\CheckboxList
{
return parent::getComponent($name, $throw);
}
public function getComponentMultiSelectBox(string $name, bool $throw = true): ?Nette\Forms\Controls\MultiSelectBox
{
return parent::getComponent($name, $throw);
}
public function getComponentRadioList(string $name, bool $throw = true): ?Nette\Forms\Controls\RadioList
{
return parent::getComponent($name, $throw);
}
public function getComponentSelectBox(string $name, bool $throw = true): ?Nette\Forms\Controls\SelectBox
{
return parent::getComponent($name, $throw);
}
public function getComponentSubmitButton(string $name, bool $throw = true): ?Nette\Forms\Controls\SubmitButton
{
return parent::getComponent($name, $throw);
}
public function getComponentTextArea(string $name, bool $throw = true): ?Nette\Forms\Controls\TextArea
{
return parent::getComponent($name, $throw);
}
public function getComponentTextInput(string $name, bool $throw = true): ?Nette\Forms\Controls\TextInput
{
return parent::getComponent($name, $throw);
}
public function getComponentHiddenField(string $name, bool $throw = true): ?Nette\Forms\Controls\HiddenField
{
return parent::getComponent($name, $throw);
}
}