Page Utility
Doing Page (and Pagetree) related stuff.
- getPidsRecursive ( $pids, $level = 3)
-
Returns all Sub-Pids of certain PIDs.
- param string $pids
-
The starting PID.
- param int $level
-
Depth of the traversing levels.
Example:
|
var_dump(PageUtility::getPidsRecursive(1)); // ['1','2', '3', '7', '8', '4', '5', '9', '10', '6'] var_dump(PageUtility::getPidsRecursive(1, 1)); // ['1','2', '3', '4', '5', '6']
Copied!- Returns
-
List of matching PIDs.