__construct()
__toString()
base()
build_query_string()
create()
current()
get()
get_segment()
get_segments()
main()
segment()
segment_replace()
segments()
string()
to_assoc()
update_query_string()
$segments
$uri
Uri Class
| package | Fuel |
|---|---|
| category | Core |
| author | Dan Horrigan |
| link | http://docs.fuelphp.com/classes/uri.html |
__construct(string $uri)
stringThe URI
__toString() : string
stringbase(bool $include_index) : string
boolWhether to include index.php in the URL
stringbuild_query_string() : string
If a string is passed, it will be assumed to be a switch, and converted to "string=1".
stringcreate(string $uri, array $variables, array $get_variables, bool $secure) : string
stringThe uri to create the URL for
arraySome variables for the URL
arrayAny GET urls to append via a query string
boolIf false, force http. If true, force https
stringcurrent() : string
stringget() : string
stringThe URI stringget_segment(string $segment, mixed $default) : mixed
Segment index is 1 based, not 0 based
stringThe 1-based segment index
mixedThe default value
mixedget_segments() : array
arrayThe URI segmentsmain() : string
stringsegment(int $segment, mixed $default) : string
intThe segment number (1-based index)
mixedDefault value to return
stringsegment_replace(string $url, bool $secure) : string
stringThe url containing the wildcards
boolTo force a particular HTTP scheme
stringsegments() : array
arraystring() : string
stringto_assoc(int $start) : array
If the URI has an odd number of segments, an empty value will be added.
intsegment number to start from. default value is the first segment
arraythe assoc arrayupdate_query_string(array | string $vars, string | mixed $uri, bool $secure) : string
arraystringAssoc array of GET variables, or a get variable name
stringmixedOptional URI to use if $vars is an array, otherwise the get variable name
boolIf false, force http. If true, force https
string$segments : array
$uri : string