class UriData implements ArrayAccess, Countable, IteratorAggregate (View source)

The UriData class.

Properties

string $full Property full.
string $current Property current.
string $script Property script.
string $root Property root.
string $route Property route.
string $host Property host.
string $path Property path.

Methods

__construct(array $data = array())

UriData constructor.

mixed
__call(string $name, array $args)

__call

static Uri
createUri(string $uri)

createUri

static PsrUri
createPsrUri(string $uri)

createPsrUri

string
addPrefix(string $name, string $url)

addPrefix

getIterator()

Retrieve an external iterator

boolean
offsetExists(mixed $offset)

Whether a offset exists

mixed
offsetGet(mixed $offset)

Offset to retrieve

void
offsetSet(mixed $offset, mixed $value)

Offset to set

void
offsetUnset(mixed $offset)

Offset to unset

int
count()

Count elements of an object

string
full()

No description

string
current()

No description

string
script($uri = null)

No description

string
root($uri = null)

No description

string
route()

No description

string
host($uri = null)

No description

string
path($uri = null)

No description

string
scheme()

No description

Details

at line line 94
__construct(array $data = array())

UriData constructor.

Parameters

array $data

at line line 116
mixed __call(string $name, array $args)

__call

Parameters

string $name
array $args

Return Value

mixed

at line line 138
static Uri createUri(string $uri)

createUri

Parameters

string $uri

Return Value

Uri

at line line 150
static PsrUri createPsrUri(string $uri)

createPsrUri

Parameters

string $uri

Return Value

PsrUri

at line line 163
string addPrefix(string $name, string $url)

addPrefix

Parameters

string $name
string $url

Return Value

string

at line line 173
Traversable getIterator()

Retrieve an external iterator

Return Value

Traversable An instance of an object implementing Iterator or Traversable

at line line 186
boolean offsetExists(mixed $offset)

Whether a offset exists

Parameters

mixed $offset An offset to check for.

Return Value

boolean True on success or false on failure. The return value will be casted to boolean if non-boolean was returned.

at line line 198
mixed offsetGet(mixed $offset)

Offset to retrieve

Parameters

mixed $offset The offset to retrieve.

Return Value

mixed Can return all value types.

at line line 211
void offsetSet(mixed $offset, mixed $value)

Offset to set

Parameters

mixed $offset The offset to assign the value to.
mixed $value The value to set.

Return Value

void

at line line 223
void offsetUnset(mixed $offset)

Offset to unset

Parameters

mixed $offset The offset to unset.

Return Value

void

at line line 234
int count()

Count elements of an object

Return Value

int The custom count as an integer. The return value is cast to an integer.

at line line 38
string full()

Return Value

string

at line line 38
string current()

Return Value

string

at line line 38
string script($uri = null)

Parameters

$uri

Return Value

string

at line line 38
string root($uri = null)

Parameters

$uri

Return Value

string

at line line 38
string route()

Return Value

string

at line line 38
string host($uri = null)

Parameters

$uri

Return Value

string

at line line 38
string path($uri = null)

Parameters

$uri

Return Value

string

at line line 38
string scheme()

Return Value

string