@@ -52,7 +52,7 @@ The following functions are available:
52
52
53
53
.. literalinclude :: html_helper/004.php
54
54
55
- .. php :function :: img_data([$src = '' [, $indexPage = false[, $attributes = '']] ])
55
+ .. php :function :: img_data($path [, $mime = null ])
56
56
57
57
:param string $path: Path to the image file
58
58
:param string|null $mime: MIME type to use, or null to guess
@@ -260,7 +260,7 @@ The following functions are available:
260
260
261
261
Identical to :php:func: `video() `, only it produces ``<audio> `` element instead of ``<video> ``.
262
262
263
- .. php :function :: source($src = ''[ , $type = false[ , $attributes = '']] )
263
+ .. php :function :: source($src, $type = 'unknown' , $attributes = '' , $indexPage = false )
264
264
265
265
:param string $src: The path of the media resource
266
266
:param bool $type: The MIME-type of the resource with optional codecs parameters
@@ -287,7 +287,7 @@ The following functions are available:
287
287
288
288
.. literalinclude :: html_helper/016.php
289
289
290
- .. php :function :: object($data = ''[, $type = false [, $attributes = '' ]])
290
+ .. php :function :: object($data[, $type = 'unknown '[, $attributes = '' [, $params = [][, $indexPage = false]] ]])
291
291
292
292
:param string $data: A resource URL
293
293
:param bool $type: Content-type of the resource
@@ -312,7 +312,7 @@ The following functions are available:
312
312
<param name =" hello" type =" ref" value =" world" class =" test" />
313
313
</object >
314
314
315
- .. php :function :: param($name = '' [, $type = false [, $attributes = '']])
315
+ .. php :function :: param($name, $value [, $type = 'ref' [, $attributes = '']])
316
316
317
317
:param string $name: The name of the parameter
318
318
:param string $value: The value of the parameter
@@ -325,11 +325,12 @@ The following functions are available:
325
325
326
326
.. literalinclude :: html_helper/018.php
327
327
328
- .. php :function :: track($name = ''[ , $type = false[ , $attributes = '']] )
328
+ .. php :function :: track($src , $kind , $srcLanguage, $label )
329
329
330
- :param string $name: The name of the parameter
331
- :param string $value: The value of the parameter
332
- :param array $attributes: HTML attributes
330
+ :param string $src: The path of the track (.vtt file)
331
+ :param string $kind: The kind of timed track
332
+ :param string $srcLanguage: The language of the timed track
333
+ :param string $label: A user-readable title for the timed track
333
334
:returns: An HTML track element
334
335
:rtype: string
335
336
0 commit comments