October\Rain\Element\ElementHolder

Overview

ElementHolder is a general collection used when passing a group of elements by reference, allowing access via array and object notation.

Extends
Implements
  • Illuminate\Contracts\Support\Arrayable
  • ArrayAccess
  • Illuminate\Contracts\Support\Jsonable
  • JsonSerializable
  • IteratorAggregate
  • Traversable

Public Properties

There are no public properties in the class.

Show inherited public properties

Inherited Public Properties

Protected Properties

protected array $touchedElements

touchedElements is used by getTouchedElements

Show inherited protected properties

Inherited Protected Properties


Public Methods

public get()

public get(string $key, mixed $default = null): mixed 

get an element from the holder instance.

public getIterator()

public getIterator(): Traversable 

getIterator for the elements.

public getTouchedElements()

public getTouchedElements(): array 

getTouchedElements return field names that have been accessed

Show inherited public methods

Inherited Public Methods

Protected Methods

Show inherited protected methods

Inherited Protected Methods