summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/uri.rst
diff options
context:
space:
mode:
authorAhmad Anbar <aanbar@gmail.com>2015-02-04 18:20:01 +0100
committerAhmad Anbar <aanbar@gmail.com>2015-02-04 18:20:01 +0100
commite5454f9b28f123a5549971f580255a065b2f8cc2 (patch)
treec4927e7b7afb0bf242976034630cc60f2f1db00f /user_guide_src/source/libraries/uri.rst
parent6db62ab0ad0e223806a1367e12b1884b48dc65d7 (diff)
parenteccac6e6a73a4d1a5b40f383ce64359c2c94ae12 (diff)
Merge remote-tracking branch 'upstream/develop' into develop
Diffstat (limited to 'user_guide_src/source/libraries/uri.rst')
-rw-r--r--user_guide_src/source/libraries/uri.rst28
1 files changed, 14 insertions, 14 deletions
diff --git a/user_guide_src/source/libraries/uri.rst b/user_guide_src/source/libraries/uri.rst
index 7db758ce7..ae56184cc 100644
--- a/user_guide_src/source/libraries/uri.rst
+++ b/user_guide_src/source/libraries/uri.rst
@@ -20,9 +20,9 @@ information about the re-routed segments.
Class Reference
***************
-.. class:: CI_URI
+.. php:class:: CI_URI
- .. method:: segment($n[, $no_result = NULL])
+ .. php:method:: segment($n[, $no_result = NULL])
:param int $n: Segment index number
:param mixed $no_result: What to return if the searched segment is not found
@@ -59,7 +59,7 @@ Class Reference
$product_id = $this->uri->segment(3);
}
- .. method:: rsegment($n[, $no_result = NULL])
+ .. php:method:: rsegment($n[, $no_result = NULL])
:param int $n: Segment index number
:param mixed $no_result: What to return if the searched segment is not found
@@ -70,7 +70,7 @@ Class Reference
a specific segment from your re-routed URI in the event you are
using CodeIgniter's :doc:`URI Routing <../general/routing>` feature.
- .. method:: slash_segment($n[, $where = 'trailing'])
+ .. php:method:: slash_segment($n[, $where = 'trailing'])
:param int $n: Segment index number
:param string $where: Where to add the slash ('trailing' or 'leading')
@@ -91,7 +91,7 @@ Class Reference
#. /segment
#. /segment/
- .. method:: slash_rsegment($n[, $where = 'trailing'])
+ .. php:method:: slash_rsegment($n[, $where = 'trailing'])
:param int $n: Segment index number
:param string $where: Where to add the slash ('trailing' or 'leading')
@@ -103,7 +103,7 @@ Class Reference
are using CodeIgniter's :doc:`URI Routing <../general/routing>`
feature.
- .. method:: uri_to_assoc([$n = 3[, $default = array()]])
+ .. php:method:: uri_to_assoc([$n = 3[, $default = array()]])
:param int $n: Segment index number
:param array $default: Default values
@@ -145,7 +145,7 @@ Class Reference
Lastly, if a corresponding value is not found for a given key (if there
is an odd number of URI segments) the value will be set to NULL.
- .. method:: ruri_to_assoc([$n = 3[, $default = array()]])
+ .. php:method:: ruri_to_assoc([$n = 3[, $default = array()]])
:param int $n: Segment index number
:param array $default: Default values
@@ -156,7 +156,7 @@ Class Reference
an associative array using the re-routed URI in the event you are using
CodeIgniter's :doc:`URI Routing <../general/routing>` feature.
- .. method:: assoc_to_uri($array)
+ .. php:method:: assoc_to_uri($array)
:param array $array: Input array of key/value pairs
:returns: URI string
@@ -170,7 +170,7 @@ Class Reference
// Produces: product/shoes/size/large/color/red
- .. method:: uri_string()
+ .. php:method:: uri_string()
:returns: URI string
:rtype: string
@@ -183,7 +183,7 @@ Class Reference
news/local/345
- .. method:: ruri_string()
+ .. php:method:: ruri_string()
:returns: Routed URI string
:rtype: string
@@ -192,14 +192,14 @@ Class Reference
the re-routed URI in the event you are using CodeIgniter's :doc:`URI
Routing <../general/routing>` feature.
- .. method:: total_segments()
+ .. php:method:: total_segments()
:returns: Count of URI segments
:rtype: int
Returns the total number of segments.
- .. method:: total_rsegments()
+ .. php:method:: total_rsegments()
:returns: Count of routed URI segments
:rtype: int
@@ -208,7 +208,7 @@ Class Reference
the total number of segments in your re-routed URI in the event you are
using CodeIgniter's :doc:`URI Routing <../general/routing>` feature.
- .. method:: segment_array()
+ .. php:method:: segment_array()
:returns: URI segments array
:rtype: array
@@ -223,7 +223,7 @@ Class Reference
echo '<br />';
}
- .. method:: rsegment_array()
+ .. php:method:: rsegment_array()
:returns: Routed URI segments array
:rtype: array