@@ -21,7 +21,7 @@ The following functions are available:
21
21
.. php :function :: site_url([$uri = ''[, $protocol = null[, $altConfig = null]]])
22
22
23
23
:param array|string $uri: URI string or array of URI segments.
24
- :param string $protocol: Protocol, e.g., 'http' or 'https'. If empty string '' is set, a protocol-relative link is returned.
24
+ :param string $protocol: Protocol, e.g., `` 'http' `` or `` 'https' `` . If empty string `` '' `` is set, a protocol-relative link is returned.
25
25
:param \\ Config\\ App $altConfig: Alternate configuration to use.
26
26
:returns: Site URL
27
27
:rtype: string
@@ -57,7 +57,7 @@ The following functions are available:
57
57
.. php :function :: base_url([$uri = ''[, $protocol = null]])
58
58
59
59
:param array|string $uri: URI string or array of URI segments.
60
- :param string $protocol: Protocol, e.g., 'http' or 'https'. If empty string '' is set, a protocol-relative link is returned.
60
+ :param string $protocol: Protocol, e.g., `` 'http' `` or `` 'https' `` . If empty string `` '' `` is set, a protocol-relative link is returned.
61
61
:returns: Base URL
62
62
:rtype: string
63
63
@@ -124,7 +124,7 @@ The following functions are available:
124
124
125
125
:param boolean $returnObject: True if you would like a URI instance returned instead of a string.
126
126
:returns: The URL the user was previously on
127
- :rtype: string|mixed| \\ CodeIgniter\\ HTTP\\ URI
127
+ :rtype: string|\\ CodeIgniter\\ HTTP\\ URI
128
128
129
129
Returns the full URL (including segments) of the page the user was previously on.
130
130
@@ -182,10 +182,10 @@ The following functions are available:
182
182
183
183
.. php :function :: anchor([$uri = ''[, $title = ''[, $attributes = ''[, $altConfig = null]]]])
184
184
185
- :param mixed $uri: URI string or array of URI segments
186
- :param string $title: Anchor title
187
- :param mixed $attributes: HTML attributes
188
- :param \\ Config\\ App $altConfig: Alternate configuration to use
185
+ :param array|string $uri: URI string or array of URI segments
186
+ :param string $title: Anchor title
187
+ :param array|object|string $attributes: HTML attributes
188
+ :param \\ Config\\ App|null $altConfig: Alternate configuration to use
189
189
:returns: HTML hyperlink (anchor tag)
190
190
:rtype: string
191
191
@@ -222,7 +222,7 @@ The following functions are available:
222
222
223
223
:param string $uri: URI string
224
224
:param string $title: Anchor title
225
- :param mixed $attributes: HTML attributes
225
+ :param array|false|object|string $attributes: HTML attributes
226
226
:param \\ Config\\ App $altConfig: Alternate configuration to use
227
227
:returns: Pop-up hyperlink
228
228
:rtype: string
@@ -262,7 +262,7 @@ The following functions are available:
262
262
263
263
:param string $email: E-mail address
264
264
:param string $title: Anchor title
265
- :param mixed $attributes: HTML attributes
265
+ :param array|object|string $attributes: HTML attributes
266
266
:returns: A "mail to" hyperlink
267
267
:rtype: string
268
268
@@ -281,7 +281,7 @@ The following functions are available:
281
281
282
282
:param string $email: E-mail address
283
283
:param string $title: Anchor title
284
- :param mixed $attributes: HTML attributes
284
+ :param array|object|string $attributes: HTML attributes
285
285
:returns: A spam-safe "mail to" hyperlink
286
286
:rtype: string
287
287
@@ -292,7 +292,7 @@ The following functions are available:
292
292
.. php :function :: auto_link($str[, $type = 'both'[, $popup = false]])
293
293
294
294
:param string $str: Input string
295
- :param string $type: Link type ('email', 'url' or 'both')
295
+ :param string $type: Link type (`` 'email' ``, `` 'url' `` or `` 'both' `` )
296
296
:param bool $popup: Whether to create popup links
297
297
:returns: Linkified string
298
298
:rtype: string
@@ -378,7 +378,7 @@ The following functions are available:
378
378
.. php :function :: url_to($controller[, ...$args])
379
379
380
380
:param string $controller: Route name or Controller::method
381
- :param mixed ...$args: One or more parameters to be passed to the route. The last parameter allows you to set the locale.
381
+ :param int|string ...$args: One or more parameters to be passed to the route. The last parameter allows you to set the locale.
382
382
:returns: Absolute URL
383
383
:rtype: string
384
384
0 commit comments