Skip to content

Commit e024393

Browse files
committed
Html: added @Property & @method
1 parent bd813cc commit e024393

1 file changed

Lines changed: 212 additions & 6 deletions

File tree

src/Utils/Html.php

Lines changed: 212 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,219 @@
1616
/**
1717
* HTML helper.
1818
*
19-
* <code>
20-
* $el = Html::el('a')->href($link)->setText('Nette');
21-
* $el->class = 'myclass';
22-
* echo $el;
19+
* @property string|null $accept
20+
* @property string|null $accesskey
21+
* @property string|null $action
22+
* @property string|null $align
23+
* @property string|null $allow
24+
* @property string|null $alt
25+
* @property bool|null $async
26+
* @property string|null $autocapitalize
27+
* @property string|null $autocomplete
28+
* @property bool|null $autofocus
29+
* @property bool|null $autoplay
30+
* @property string|null $charset
31+
* @property bool|null $checked
32+
* @property string|null $cite
33+
* @property string|null $class
34+
* @property int|null $cols
35+
* @property int|null $colspan
36+
* @property string|null $content
37+
* @property bool|null $contenteditable
38+
* @property bool|null $controls
39+
* @property string|null $coords
40+
* @property string|null $crossorigin
41+
* @property string|null $data
42+
* @property string|null $datetime
43+
* @property string|null $decoding
44+
* @property bool|null $default
45+
* @property bool|null $defer
46+
* @property string|null $dir
47+
* @property string|null $dirname
48+
* @property bool|null $disabled
49+
* @property bool|null $download
50+
* @property string|null $draggable
51+
* @property string|null $dropzone
52+
* @property string|null $enctype
53+
* @property string|null $for
54+
* @property string|null $form
55+
* @property string|null $formaction
56+
* @property string|null $formenctype
57+
* @property string|null $formmethod
58+
* @property bool|null $formnovalidate
59+
* @property string|null $formtarget
60+
* @property string|null $headers
61+
* @property int|null $height
62+
* @property bool|null $hidden
63+
* @property float|null $high
64+
* @property string|null $href
65+
* @property string|null $hreflang
66+
* @property string|null $id
67+
* @property string|null $integrity
68+
* @property string|null $inputmode
69+
* @property bool|null $ismap
70+
* @property string|null $itemprop
71+
* @property string|null $kind
72+
* @property string|null $label
73+
* @property string|null $lang
74+
* @property string|null $list
75+
* @property bool|null $loop
76+
* @property float|null $low
77+
* @property float|null $max
78+
* @property int|null $maxlength
79+
* @property int|null $minlength
80+
* @property string|null $media
81+
* @property string|null $method
82+
* @property float|null $min
83+
* @property bool|null $multiple
84+
* @property bool|null $muted
85+
* @property string|null $name
86+
* @property bool|null $novalidate
87+
* @property bool|null $open
88+
* @property float|null $optimum
89+
* @property string|null $pattern
90+
* @property string|null $ping
91+
* @property string|null $placeholder
92+
* @property string|null $poster
93+
* @property string|null $preload
94+
* @property string|null $radiogroup
95+
* @property bool|null $readonly
96+
* @property string|null $rel
97+
* @property bool|null $required
98+
* @property bool|null $reversed
99+
* @property int|null $rows
100+
* @property int|null $rowspan
101+
* @property string|null $sandbox
102+
* @property string|null $scope
103+
* @property bool|null $selected
104+
* @property string|null $shape
105+
* @property int|null $size
106+
* @property string|null $sizes
107+
* @property string|null $slot
108+
* @property int|null $span
109+
* @property string|null $spellcheck
110+
* @property string|null $src
111+
* @property string|null $srcdoc
112+
* @property string|null $srclang
113+
* @property string|null $srcset
114+
* @property int|null $start
115+
* @property float|null $step
116+
* @property string|null $style
117+
* @property int|null $tabindex
118+
* @property string|null $target
119+
* @property string|null $title
120+
* @property string|null $translate
121+
* @property string|null $type
122+
* @property string|null $usemap
123+
* @property string|null $value
124+
* @property int|null $width
125+
* @property string|null $wrap
23126
*
24-
* echo $el->startTag(), $el->endTag();
25-
* </code>
127+
* @method self accept(?string $val)
128+
* @method self accesskey(?string $val, bool $state = null)
129+
* @method self action(?string $val)
130+
* @method self align(?string $val)
131+
* @method self allow(?string $val, bool $state = null)
132+
* @method self alt(?string $val)
133+
* @method self async(?bool $val)
134+
* @method self autocapitalize(?string $val)
135+
* @method self autocomplete(?string $val)
136+
* @method self autofocus(?bool $val)
137+
* @method self autoplay(?bool $val)
138+
* @method self charset(?string $val)
139+
* @method self checked(?bool $val)
140+
* @method self cite(?string $val)
141+
* @method self class(?string $val, bool $state = null)
142+
* @method self cols(?int $val)
143+
* @method self colspan(?int $val)
144+
* @method self content(?string $val)
145+
* @method self contenteditable(?bool $val)
146+
* @method self controls(?bool $val)
147+
* @method self coords(?string $val)
148+
* @method self crossorigin(?string $val)
149+
* @method self datetime(?string $val)
150+
* @method self decoding(?string $val)
151+
* @method self default(?bool $val)
152+
* @method self defer(?bool $val)
153+
* @method self dir(?string $val)
154+
* @method self dirname(?string $val)
155+
* @method self disabled(?bool $val)
156+
* @method self download(?bool $val)
157+
* @method self draggable(?string $val)
158+
* @method self dropzone(?string $val)
159+
* @method self enctype(?string $val)
160+
* @method self for(?string $val)
161+
* @method self form(?string $val)
162+
* @method self formaction(?string $val)
163+
* @method self formenctype(?string $val)
164+
* @method self formmethod(?string $val)
165+
* @method self formnovalidate(?bool $val)
166+
* @method self formtarget(?string $val)
167+
* @method self headers(?string $val, bool $state = null)
168+
* @method self height(?int $val)
169+
* @method self hidden(?bool $val)
170+
* @method self high(?float $val)
171+
* @method self hreflang(?string $val)
172+
* @method self id(?string $val)
173+
* @method self integrity(?string $val)
174+
* @method self inputmode(?string $val)
175+
* @method self ismap(?bool $val)
176+
* @method self itemprop(?string $val)
177+
* @method self kind(?string $val)
178+
* @method self label(?string $val)
179+
* @method self lang(?string $val)
180+
* @method self list(?string $val)
181+
* @method self loop(?bool $val)
182+
* @method self low(?float $val)
183+
* @method self max(?float $val)
184+
* @method self maxlength(?int $val)
185+
* @method self minlength(?int $val)
186+
* @method self media(?string $val)
187+
* @method self method(?string $val)
188+
* @method self min(?float $val)
189+
* @method self multiple(?bool $val)
190+
* @method self muted(?bool $val)
191+
* @method self name(?string $val)
192+
* @method self novalidate(?bool $val)
193+
* @method self open(?bool $val)
194+
* @method self optimum(?float $val)
195+
* @method self pattern(?string $val)
196+
* @method self ping(?string $val, bool $state = null)
197+
* @method self placeholder(?string $val)
198+
* @method self poster(?string $val)
199+
* @method self preload(?string $val)
200+
* @method self radiogroup(?string $val)
201+
* @method self readonly(?bool $val)
202+
* @method self rel(?string $val)
203+
* @method self required(?bool $val)
204+
* @method self reversed(?bool $val)
205+
* @method self rows(?int $val)
206+
* @method self rowspan(?int $val)
207+
* @method self sandbox(?string $val, bool $state = null)
208+
* @method self scope(?string $val)
209+
* @method self selected(?bool $val)
210+
* @method self shape(?string $val)
211+
* @method self size(?int $val)
212+
* @method self sizes(?string $val)
213+
* @method self slot(?string $val)
214+
* @method self span(?int $val)
215+
* @method self spellcheck(?string $val)
216+
* @method self src(?string $val)
217+
* @method self srcdoc(?string $val)
218+
* @method self srclang(?string $val)
219+
* @method self srcset(?string $val)
220+
* @method self start(?int $val)
221+
* @method self step(?float $val)
222+
* @method self style(?string $property, string $val = null)
223+
* @method self tabindex(?int $val)
224+
* @method self target(?string $val)
225+
* @method self title(?string $val)
226+
* @method self translate(?string $val)
227+
* @method self type(?string $val)
228+
* @method self usemap(?string $val)
229+
* @method self value(?string $val)
230+
* @method self width(?int $val)
231+
* @method self wrap(?string $val)
26232
*/
27233
class Html implements \ArrayAccess, \Countable, \IteratorAggregate, IHtmlString
28234
{

0 commit comments

Comments
 (0)