Skip to content

Commit

Permalink
Merge pull request #9163 from obozdag/patch-21
Browse files Browse the repository at this point in the history
docs: Fix some function definitions in helpers/html_helper.rst
  • Loading branch information
kenjis authored Sep 6, 2024
2 parents f8e36d9 + 8e09849 commit ae0dcf4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions user_guide_src/source/helpers/html_helper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The following functions are available:

.. literalinclude:: html_helper/004.php

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

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

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

.. literalinclude:: html_helper/016.php

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

.. php:function:: param($name = ''[, $type = false[, $attributes = '']])
.. php:function:: param($name, $value[, $type = 'ref'[, $attributes = '']])
:param string $name: The name of the parameter
:param string $value: The value of the parameter
Expand Down

0 comments on commit ae0dcf4

Please sign in to comment.