UrlRewriteCollection

Extends \EditableKeyValueCollection

Class UrlRewriteCollection

category

System

package

Shared

Methods

Initialize the collection instance.

__construct(array|mixed|null $argumentsArray = null) 
inherited
Throws
\InvalidArgumentException

Arguments

$argumentsArray

array|mixed|null

Add a new item.

_add(mixed $item) 
inherited

This method must be used by child-collection classes.

Throws
\InvalidArgumentException

When $item has an invalid type.

Arguments

$item

mixed

Item which should add to the collection

Add the passed key value array to the collection content array.

_addToCollectionContentArray(array $keyValueArray) 
inherited

Arguments

$keyValueArray

array

Get exception text.

_getExceptionText() : string
inherited

Response

string

Get valid type.

_getValidType() : string
inherited abstract

This method must be implemented in the child-collection classes.

Response

string

Check if a new item has the valid collection type.

_itemIsValid(mixed $dataItem) : boolean
inherited

Arguments

$dataItem

mixed

Response

boolean

Add another collection to this one.

addCollection(\KeyValueCollection $collection) : $this
inherited

Arguments

$collection

\KeyValueCollection

Collection to add.

Response

$this

Same instance to make chained method calls possible.

Get collection item count.

count() : integer
inherited

Response

integer

Deletes an value from the collection by the given key.

deleteValue(string $p_key) : $this
inherited

Arguments

$p_key

string

Key of the value that should gets delete.

Response

$this

Same instance to make chained method calls possible.

Get the collection as an array.

getArray() : array
inherited

Response

array

Return a clone of the current editable key value collection instance.

getClone() 
inherited

Get specific collection item by index.

getItem( $p_index) : mixed
inherited
Throws
\InvalidArgumentException

if index is not numeric | OutOfBoundsException if index is out of bounds

Arguments

$p_index

Response

mixed

getIterator

getIterator() 
inherited

Get the value that corresponds to the provided key.

getValue(string $p_keyName) : mixed
inherited
Throws
\InvalidArgumentException

Arguments

$p_keyName

string

Response

mixed

Determine whether the collection is empty or not.

isEmpty() : boolean
inherited

Response

boolean

Check if a given key exists within the collection.

keyExists(string $p_keyName) : boolean
inherited

Arguments

$p_keyName

string

Response

boolean

Set new key-value pair.

setValue(string $p_keyName, mixed $p_value) 
inherited

Arguments

$p_keyName

string

$p_value

mixed

Properties

Content Collection

collectionContentArray : array
inherited
var

Type(s)

array