Skip to content

Commit ae0dcf4

Browse files
authored
Merge pull request #9163 from obozdag/patch-21
docs: Fix some function definitions in helpers/html_helper.rst
2 parents f8e36d9 + 8e09849 commit ae0dcf4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

user_guide_src/source/helpers/html_helper.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ The following functions are available:
5252

5353
.. literalinclude:: html_helper/004.php
5454

55-
.. php:function:: img_data([$src = ''[, $indexPage = false[, $attributes = '']]])
55+
.. php:function:: img_data($path[, $mime = null])
5656
5757
:param string $path: Path to the image file
5858
:param string|null $mime: MIME type to use, or null to guess
@@ -260,7 +260,7 @@ The following functions are available:
260260

261261
Identical to :php:func:`video()`, only it produces ``<audio>`` element instead of ``<video>``.
262262

263-
.. php:function:: source($src = ''[, $type = false[, $attributes = '']])
263+
.. php:function:: source($src, $type = 'unknown', $attributes = '', $indexPage = false)
264264
265265
:param string $src: The path of the media resource
266266
:param bool $type: The MIME-type of the resource with optional codecs parameters
@@ -287,7 +287,7 @@ The following functions are available:
287287

288288
.. literalinclude:: html_helper/016.php
289289

290-
.. php:function:: object($data = ''[, $type = false[, $attributes = '']])
290+
.. php:function:: object($data[, $type = 'unknown'[, $attributes = ''[, $params = [][, $indexPage = false]]]])
291291
292292
:param string $data: A resource URL
293293
:param bool $type: Content-type of the resource
@@ -312,7 +312,7 @@ The following functions are available:
312312
<param name="hello" type="ref" value="world" class="test" />
313313
</object>
314314

315-
.. php:function:: param($name = ''[, $type = false[, $attributes = '']])
315+
.. php:function:: param($name, $value[, $type = 'ref'[, $attributes = '']])
316316
317317
:param string $name: The name of the parameter
318318
:param string $value: The value of the parameter

0 commit comments

Comments
 (0)