WireArray class
WireArray is the base iterable array type used throughout the ProcessWire framework.
Nearly all collections of items in ProcessWire are derived from the Wire Below are all the public methods you can use to interact with Wire Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Return a new copy of this Wire Perform an action upon each item in the Wire Returns the first item in the Wire Allows iteration of the Wire Returns the last item in the Wire Divide this Wire Does this Wire Is the given Wire Is the given item valid for storange in this array? Is the given item key valid for use in this array? Determines if the given item iterable as an array. Perform an action upon each item in the Wire Combine all elements into a delimiter-separated string containing the given property from each item Store or retrieve an extra data value in this Wire Remove a property/value previously set with the Wire Return array of all items added to this Wire Return array of all items removed from this Wire Return a new copy of this Wire Handler for when an unknown/unhooked method call is executed Perform an action upon each item in the Wire Return a plain array of the requested property from each item Combine all elements into a delimiter-separated string containing the given property from each item Set the current duplicate checking state In addition to the methods and properties above, Wireforeach() them and get or set elements using array syntax, i.e. $value = $items[$key]; to get an item or $items[] = $item; to add an item.Wire class also inherits all the methods and properties of: Wire.Traversal
Name Return Summary Wirearray null string Wire Wire mixed bool
Can also be used as property: Wire ArrayObject Wire Wire mixed bool
Can also be used as property: Wire array Retrieval
Manipulation
Info
Name Return Summary bool bool bool bool bool Output rendering
Name Return Summary array null string Wire string Other data storage
Name Return Summary Wire mixed array null $this Changes
Name Return Summary array Wire array Wire Fun tools
Name Return Summary Wirenull mixedarray null string Wire array string Common
Name Return Summary None Properties
Name Return Summary Wire array All keys used in this Wire Wire array All values used in this Wire Additional methods and properties
API reference based on ProcessWire core version 3.0.252