parents
- Ariadne >
- Library >
- Ariadne 2.4 >
- Manuals >
- Programmers Reference >
- Classes >
- Object >
- PINP Methods >
(array) parents($function="list.html", $args="", $top="/")
Calls each parent of the current object with the given template and arguments.
| Argument | Description |
|---|---|
| (string) $path | The path to translate into an absolute path. |
| (string) $function | The name of the template to call on the parent objects. |
| (mixed) $args | The arguments to pass to the template. |
| (string) $top | The path to the topmost parent to call. |
parents() calls each of
the parent objects of the current object, including the current object itself.
It starts with the topmost parent, defaulting to the nearest parent
psite object if $top is not set.

