WireArray class - ProcessWire API
| Name | Return | Summary | |
|---|---|---|---|
Wire | int | Returns the number of items in this Wire Can also be used as property: Wire | |
Wire | Wire null | Returns the item at the given index starting from 0, or NULL if it doesn't exist. | |
Wire | array | Return a plain array of the requested property from each item | |
Wire | Wire | Find all items in this Wire | |
Wire | Wire bool | Find a single item by selector | |
Wire | Wire | Find a specified quantity of random elements from this Wire | |
Wire | Wire | Find a quantity of random elements from this Wire | |
Wire | Wire mixed bool | Returns the first item in the Wire Can also be used as property: Wire | |
Wire | WireData Page mixed array null | Returns the value of the item at the given index, or null if not set. | |
Wire | $this | Returns all items in the Wire | |
Wire | array | Get a PHP array of all the items in this Wire | |
Wire | array | Returns a regular PHP array of all keys used in this Wire | |
Wire | Wire null | Given an item, get the item that comes after it in the Wire | |
Wire | Wire null | Given an item, get the item before it in the Wire | |
Wire | Wire mixed | Get a predefined property of the array, or extra data that has been set. | |
Wire | Wire Wire mixed null | Get a random item from this Wire | |
Wire | array Wire | Returns a regular PHP array of all values used in this Wire | |
Wire | bool | Does this Wire | |
Wire | string | Combine all elements into a delimiter-separated string containing the given property from each item | |
Wire | Wire | Returns a new Wire | |
Wire | Wire mixed bool | Returns the last item in the Wire Can also be used as property: Wire | |
Wire | Wire mixed null | Pop an element off the end of the Wire | |
Wire | Wire | Return a new reversed version of this Wire | |
Wire | Wire mixed null | Shift an element off the beginning of the Wire | |
Wire | Wire | Get a slice of the Wire | |
Wire | array | Divide this Wire | |
Wire | Wire | Return a new array that is unique (no two of the same elements) |