PagesParents::parents method
Rebuild pages_parents table entirely or from branch starting with a parent branch
Available since version 3.0.156.
Usage
// basic usage
$int = $pages->parents->rebuildAll();
// usage with all arguments
$int = $pages->parents->rebuildAll($fromParent = null);
Arguments
Name | Type(s) | Description |
---|---|---|
$fromParent (optional) | int Page | Specify parent ID or page to rebuild from that parent, or omit to rebuild all |
Return value
int
Number of rows inserted
$pages->parents methods and properties
API reference based on ProcessWire core version 3.0.252