Zend Framework  3.0
Public Member Functions | List of all members
Parameters Class Reference

Public Member Functions

 __construct (array $values=null)
 Constructor.
 
 fromArray (array $values)
 Populate from native PHP array.
 
 fromString ($string)
 Populate from query string.
 
 toArray ()
 Serialize to native PHP array.
 
 toString ()
 Serialize to query string.
 
 offsetGet ($name)
 Retrieve by key.
 
 get ($name, $default=null)
 
 set ($name, $value)
 

Constructor & Destructor Documentation

__construct ( array  $values = null)

Constructor.

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

Parameters
array$values

Implements ParametersInterface.

Member Function Documentation

fromArray ( array  $values)

Populate from native PHP array.

Parameters
array$values
Returns
void

Implements ParametersInterface.

fromString (   $string)

Populate from query string.

Parameters
string$string
Returns
void

Implements ParametersInterface.

get (   $name,
  $default = null 
)
Parameters
string$name
mixed$defaultoptional default value
Returns
mixed

Implements ParametersInterface.

offsetGet (   $name)

Retrieve by key.

Returns null if the key does not exist.

Parameters
string$name
Returns
mixed
set (   $name,
  $value 
)
Parameters
string$name
mixed$value
Returns
Parameters

Implements ParametersInterface.

toArray ( )

Serialize to native PHP array.

Returns
array

Implements ParametersInterface.

toString ( )

Serialize to query string.

Returns
string

Implements ParametersInterface.