Class Parameters

Summary

Fully Qualified Name: Zend\Stdlib\Parameters
Extends: ArrayObject
Implements: ParametersInterface

Description

Methods

Name Description Defined By
__construct() Constructor Parameters
fromArray() Populate from native PHP array Parameters
fromString() Populate from query string Parameters
get() Parameters
offsetGet() Retrieve by key Parameters
set() Parameters
toArray() Serialize to native PHP array Parameters
toString() Serialize to query string Parameters

Method Details

__construct()

Constructor

Enforces that we have an array, and enforces parameter access to array elements.

Parameter Name Type Description
$values array

Returns:

fromArray()

Populate from native PHP array

Parameter Name Type Description
$values array

Returns: void

fromString()

Populate from query string

Parameter Name Type Description
$string string

Returns: void

get()

Parameter Name Type Description
$name string
$default mixed optional

Returns: mixed

offsetGet()

Retrieve by key

Returns null if the key does not exist.

Parameter Name Type Description
$name string

Returns: mixed

set()

Parameter Name Type Description
$name string
$value mixed

Returns: \Parameters

toArray()

Serialize to native PHP array

Returns: array

toString()

Serialize to query string

Returns: string

Top