FieldsArray class

WireArray of Field instances, as used by Fields class

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the FieldsArray class also inherits all the methods and properties of: WireArray and Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
FieldsArray::getItemKey(Field $item)
int

Per WireArray interface, Field instances are keyed by their ID

 
FieldsArray::isValidItem(Wire $item)
bool

Per WireArray interface, only Field instances may be added

 
FieldsArray::isValidKey(int $key)
bool

Per WireArray interface, Field keys have to be integers

 
FieldsArray::makeBlankItem()
Field

Per WireArray interface, return a blank Field

 

Additional methods and properties

In addition to the methods and properties above, FieldsArray also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.253