Get a property of the PageArray
These map to functions from the array and are here for convenience.
Properties include count, total, start, limit, last, first, keys, values,
These can also be accessed by direct reference, i.e. $items->limit
.
Please see the WireArray::getProperty()
method for full details on non-pagination related properties that can be retrieved through this.
Example
// Get count
$count = $items->getProperty('count');
// Same as above using direct access property
$count = $items->count;
Usage
$mixed = $paginatedArray->getProperty(string $property);
Arguments
Name | Type(s) | Description |
---|---|---|
property | string | Name of property you want to retrieve, can be any of the following:
|
Return value
mixed
Value of requested property.
PaginatedArray methods and properties
API reference based on ProcessWire core version 3.0.236