class FormView implements ArrayAccess, IteratorAggregate, Countable

Properties

array $vars The variables assigned to this view.
FormView $parent The parent view.
FormView[] $children The child views.

Methods

__construct(FormView $parent = null)

No description

bool
isRendered()

Returns whether the view was already rendered.

$this
setRendered()

Marks the view as rendered.

bool
isMethodRendered()

No description

setMethodRendered()

No description

offsetGet(string $name)

Returns a child by name (implements \ArrayAccess).

bool
offsetExists(string $name)

Returns whether the given child exists (implements \ArrayAccess).

offsetSet($name, $value)

Implements \ArrayAccess.

offsetUnset(string $name)

Removes a child (implements \ArrayAccess).

getIterator()

Returns an iterator to iterate over children (implements \IteratorAggregate).

int
count()

Implements \Countable.

Details

at line line 58
__construct(FormView $parent = null)

Parameters

FormView $parent

at line line 68
bool isRendered()

Returns whether the view was already rendered.

Return Value

bool Whether this view's widget is rendered

at line line 88
$this setRendered()

Marks the view as rendered.

Return Value

$this

at line line 98
bool isMethodRendered()

Return Value

bool

at line line 103
setMethodRendered()

at line line 115
FormView offsetGet(string $name)

Returns a child by name (implements \ArrayAccess).

Parameters

string $name The child name

Return Value

FormView The child view

at line line 127
bool offsetExists(string $name)

Returns whether the given child exists (implements \ArrayAccess).

Parameters

string $name The child name

Return Value

bool Whether the child view exists

at line line 137
offsetSet($name, $value)

Implements \ArrayAccess.

Parameters

$name
$value

Exceptions

BadMethodCallException always as setting a child by name is not allowed

at line line 147
offsetUnset(string $name)

Removes a child (implements \ArrayAccess).

Parameters

string $name The child name

at line line 157
ArrayIterator|FormView[] getIterator()

Returns an iterator to iterate over children (implements \IteratorAggregate).

Return Value

ArrayIterator|FormView[] The iterator

at line line 167
int count()

Implements \Countable.

Return Value

int The number of children views