PageArray is a paginated type of WireArray that holds multiple Page objects.
Please see the
PaginatedArray types for available methods, as they are not
repeated here, except where PageArray has modified or extended those types in some manner.
The PageArray type is functionally identical to WireArray and PaginatedArray except that it is focused
specifically on managing Page objects.
PageArray is returned by all API methods in ProcessWire that can return more than one page at once.
$page->children() are common examples.
The recommended way to create a new PageArray is to use the
$pageArray = $pages->newPageArray();
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the
PageArray class also inherits all the methods and properties of: PaginatedArray, WireArray and Wire.
Additional methods and properties
In addition to the methods and properties above, PageArray also inherits the methods and properties of these classes:
API reference based on ProcessWire core version 3.0.97