__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)
string
The URI
__toString() : string
string
base(bool $include_index) : string
bool
Whether to include index.php in the URL
string
build_query_string() : string
If a string is passed, it will be assumed to be a switch, and converted to "string=1".
string
create(string $uri, array $variables, array $get_variables, bool $secure) : string
string
The uri to create the URL for
array
Some variables for the URL
array
Any GET urls to append via a query string
bool
If false, force http. If true, force https
string
current() : string
string
get() : string
string
The URI stringget_segment(string $segment, mixed $default) : mixed
Segment index is 1 based, not 0 based
string
The 1-based segment index
mixed
The default value
mixed
get_segments() : array
array
The URI segmentsmain() : string
string
segment(int $segment, mixed $default) : string
int
The segment number (1-based index)
mixed
Default value to return
string
segment_replace(string $url, bool $secure) : string
string
The url containing the wildcards
bool
To force a particular HTTP scheme
string
segments() : array
array
string() : string
string
to_assoc(int $start) : array
If the URI has an odd number of segments, an empty value will be added.
int
segment number to start from. default value is the first segment
array
the assoc arrayupdate_query_string(array | string $vars, string | mixed $uri, bool $secure) : string
array
string
Assoc array of GET variables, or a get variable name
string
mixed
Optional URI to use if $vars is an array, otherwise the get variable name
bool
If false, force http. If true, force https
string
$segments : array
$uri : string