Class Variables

Summary

Fully Qualified Name: Laminas\View\Variables
Extends: ArrayObject

Description

Class for Laminas\View\Renderer\PhpRenderer to help enforce private constructs.

Methods

Name Description Defined By
__construct() Constructor Variables
assign() Assign many values at once Variables
clear() Clear all variables Variables
isStrict() Are we operating with strict variables? Variables
offsetGet() Get the variable value Variables
setOptions() Configure object Variables
setStrictVars() Set status of "strict vars" flag Variables

Method Details

__construct()

Constructor

Parameter Name Type Description
$variables array
$options array

Returns:

assign()

Assign many values at once

Parameter Name Type Description
$spec array|object

Returns: \Variables

clear()

Clear all variables

Returns: void

isStrict()

Are we operating with strict variables?

Returns: bool

offsetGet()

Get the variable value

If the value has not been defined, a null value will be returned; if strict vars on in place, a notice will also be raised.

Otherwise, returns escaped version of the value.

Parameter Name Type Description
$key mixed

Returns: mixed

setOptions()

Configure object

Parameter Name Type Description
$options array

Returns: \Variables

setStrictVars()

Set status of "strict vars" flag

Parameter Name Type Description
$flag bool

Returns: \Variables

Top