Skip to content

Commit 31b4508

Browse files
authored
docs: Fix some function definitions in helpers/html_helper.rst
Fix some function definitions in helpers/html_helper.rst
1 parent c326cd1 commit 31b4508

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
@@ -53,7 +53,7 @@ The following functions are available:
5353

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)