class FormView implements ArrayAccess, IteratorAggregate, Countable

Properties

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

Methods

__construct(FormView $parent = null)

No description

Boolean
isRendered()

Returns whether the view was already rendered.

setRendered()

Marks the view as rendered.

offsetGet(string $name)

Returns a child by name (implements \ArrayAccess).

Boolean
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)

integer
count()

Implements \Countable.

Details

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

Parameters

FormView $parent

at line line 63
Boolean isRendered()

Returns whether the view was already rendered.

Return Value

Boolean Whether this view's widget is rendered.

at line line 89
FormView setRendered()

Marks the view as rendered.

Return Value

FormView The view object.

at line line 103
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 115
Boolean offsetExists(string $name)

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

Parameters

string $name The child name

Return Value

Boolean Whether the child view exists

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

Implements \ArrayAccess.

Parameters

$name
$value

Exceptions

BadMethodCallException always as setting a child by name is not allowed

at line line 135
offsetUnset(string $name)

Removes a child (implements \ArrayAccess).

Parameters

string $name The child name

at line line 145
ArrayIterator getIterator()

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

Return Value

ArrayIterator The iterator

at line line 155
integer count()

Implements \Countable.

Return Value

integer The number of children views