PageArray is a paginated type of WireArray that holds multiple Page objects.
Please see the WireArray
and PaginatedArray
types for available methods, as they are not repeated here, except where Page
Page$pages->find()
and $page->children()
are common examples that return Page
You can create a new Page
// the most common way to create a new PageArray and add a $page to it
$a = new PageArray();
$a->add($page);
// ProcessWire 3.0.123+ can also create PageArray like this:
$a = PageArray(); // create blank
$a = PageArray($page); // create + add one page
$a = PageArray([ $page1, $page2, $page3 ]); // create + add pages
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Page
class also inherits all the methods and properties of: PaginatedArray, WireArray and Wire.
Common
Additional methods and properties
In addition to the methods and properties above, Page
API reference based on ProcessWire core version 3.0.236