21
21
/**
22
22
* Unordered List
23
23
*
24
- * Generates an HTML unordered list from an single or
25
- * multi-dimensional array.
24
+ * Generates an HTML unordered list from a single or
25
+ * multidimensional array.
26
26
*
27
+ * @param array $list List entries
27
28
* @param array|object|string $attributes HTML attributes string, array, object
28
29
*/
29
30
function ul (array $ list , $ attributes = '' ): string
@@ -36,8 +37,9 @@ function ul(array $list, $attributes = ''): string
36
37
/**
37
38
* Ordered List
38
39
*
39
- * Generates an HTML ordered list from an single or multi-dimensional array.
40
+ * Generates an HTML ordered list from a single or multidimensional array.
40
41
*
42
+ * @param array $list List entries
41
43
* @param array|object|string $attributes HTML attributes string, array, object
42
44
*/
43
45
function ol (array $ list , $ attributes = '' ): string
@@ -50,10 +52,10 @@ function ol(array $list, $attributes = ''): string
50
52
/**
51
53
* Generates the list
52
54
*
53
- * Generates an HTML ordered list from an single or multi-dimensional array.
55
+ * Generates an HTML ordered list from a single or multidimensional array.
54
56
*
55
- * @param array $list
56
- * @param array|object|string $attributes string, array, object
57
+ * @param array $list List entries
58
+ * @param array|object|string $attributes HTML attributes string, array, object
57
59
*/
58
60
function _list (string $ type = 'ul ' , $ list = [], $ attributes = '' , int $ depth = 0 ): string
59
61
{
@@ -92,7 +94,7 @@ function _list(string $type = 'ul', $list = [], $attributes = '', int $depth = 0
92
94
* Generates an image element
93
95
*
94
96
* @param array|string $src Image source URI, or array of attributes and values
95
- * @param bool $indexPage Whether to treat $src as a routed URI string
97
+ * @param bool $indexPage Should `Config\App::$indexPage` be added to the source path
96
98
* @param array|object|string $attributes Additional HTML attributes
97
99
*/
98
100
function img ($ src = '' , bool $ indexPage = false , $ attributes = '' ): string
@@ -192,7 +194,7 @@ function doctype(string $type = 'html5'): string
192
194
* Generates link to a JS file
193
195
*
194
196
* @param array|string $src Script source or an array of attributes
195
- * @param bool $indexPage Should indexPage be added to the JS path
197
+ * @param bool $indexPage Should `Config\App::$ indexPage` be added to the JS path
196
198
*/
197
199
function script_tag ($ src = '' , bool $ indexPage = false ): string
198
200
{
@@ -227,7 +229,7 @@ function script_tag($src = '', bool $indexPage = false): string
227
229
* Generates link tag
228
230
*
229
231
* @param array<string, bool|string>|string $href Stylesheet href or an array
230
- * @param bool $indexPage should indexPage be added to the CSS path.
232
+ * @param bool $indexPage Should `Config\App::$ indexPage` be added to the CSS path.
231
233
*/
232
234
function link_tag (
233
235
$ href = '' ,
@@ -288,6 +290,7 @@ function link_tag(
288
290
* @param array|string $src Either a source string or an array of sources
289
291
* @param string $unsupportedMessage The message to display if the media tag is not supported by the browser
290
292
* @param string $attributes HTML attributes
293
+ * @param bool $indexPage Should `Config\App::$indexPage` be added to the source path
291
294
*/
292
295
function video ($ src , string $ unsupportedMessage = '' , string $ attributes = '' , array $ tracks = [], bool $ indexPage = false ): string
293
296
{
@@ -334,6 +337,7 @@ function video($src, string $unsupportedMessage = '', string $attributes = '', a
334
337
* @param array|string $src Either a source string or an array of sources
335
338
* @param string $unsupportedMessage The message to display if the media tag is not supported by the browser.
336
339
* @param string $attributes HTML attributes
340
+ * @param bool $indexPage Should `Config\App::$indexPage` be added to the source path
337
341
*/
338
342
function audio ($ src , string $ unsupportedMessage = '' , string $ attributes = '' , array $ tracks = [], bool $ indexPage = false ): string
339
343
{
@@ -413,6 +417,7 @@ function _media(string $name, array $types = [], string $unsupportedMessage = ''
413
417
* @param string $src The path of the media resource
414
418
* @param string $type The MIME-type of the resource with optional codecs parameters
415
419
* @param string $attributes HTML attributes
420
+ * @param bool $indexPage Should `Config\App::$indexPage` be added to the source path
416
421
*/
417
422
function source (string $ src , string $ type = 'unknown ' , string $ attributes = '' , bool $ indexPage = false ): string
418
423
{
@@ -438,7 +443,10 @@ function source(string $src, string $type = 'unknown', string $attributes = '',
438
443
* Generates a track element to specify timed tracks. The tracks are
439
444
* formatted in WebVTT format.
440
445
*
441
- * @param string $src The path of the .VTT file
446
+ * @param string $src The path of the .VTT file
447
+ * @param string $kind How the text track is meant to be used
448
+ * @param string $srcLanguage Language of the track text data
449
+ * @param string $label A user-readable title of the text track
442
450
*/
443
451
function track (string $ src , string $ kind , string $ srcLanguage , string $ label ): string
444
452
{
@@ -461,6 +469,7 @@ function track(string $src, string $kind, string $srcLanguage, string $label): s
461
469
* @param string $data A resource URL
462
470
* @param string $type Content-type of the resource
463
471
* @param string $attributes HTML attributes
472
+ * @param bool $indexPage Should `Config\App::$indexPage` be added to the data path
464
473
*/
465
474
function object (string $ data , string $ type = 'unknown ' , string $ attributes = '' , array $ params = [], bool $ indexPage = false ): string
466
475
{
@@ -513,6 +522,7 @@ function param(string $name, string $value, string $type = 'ref', string $attrib
513
522
* @param string $src The path of the resource to embed
514
523
* @param string $type MIME-type
515
524
* @param string $attributes HTML attributes
525
+ * @param bool $indexPage Should `Config\App::$indexPage` be added to the source path
516
526
*/
517
527
function embed (string $ src , string $ type = 'unknown ' , string $ attributes = '' , bool $ indexPage = false ): string
518
528
{
0 commit comments