Function __global->create_selection_list_wiki_page_tree
Definitions
sources/wiki.php
- Get a nice formatted HTML list of all the children beneath the specified Wiki+ page. This function is recursive.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $select | ?AUTO_LINK | No | No | Null | N/A | N/A | The Wiki+ page to select by default (null: none) |
| $id | ?AUTO_LINK | No | No | Null | N/A | N/A | The Wiki+ page to look beneath (null: the root) |
| $breadcrumbs | string | No | No | Blank (empty string) | N/A | N/A | Breadcrumbs built up so far, in recursion (blank: starting recursion) |
| $include_orphans | boolean | No | No | True | N/A | N/A | Whether to include orphaned pages in the breadcrumbs |
| $use_compound_list | boolean | No | No | False | N/A | N/A | Whether to create a compound list (gets pairs: Tempcode, and comma-separated list of children) |
| $ins_format | boolean | No | No | False | N/A | N/A | Whether to use titles in IDs after a ! (used on tree edit page) |
Returns
- Tempcode for the list / pair of Tempcode and compound
- Type: mixed
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a nice formatted HTML list of all the children beneath the specified Wiki+ page. This function is recursive.
*
* @param ?AUTO_LINK $select The Wiki+ page to select by default (null: none)
* @param ?AUTO_LINK $id The Wiki+ page to look beneath (null: the root)
* @param string $breadcrumbs Breadcrumbs built up so far, in recursion (blank: starting recursion)
* @param boolean $include_orphans Whether to include orphaned pages in the breadcrumbs
* @param boolean $use_compound_list Whether to create a compound list (gets pairs: Tempcode, and comma-separated list of children)
* @param boolean $ins_format Whether to use titles in IDs after a ! (used on tree edit page)
* @return mixed Tempcode for the list / pair of Tempcode and compound
*/
function create_selection_list_wiki_page_tree(?int $select = null, ?int $id = null, string $breadcrumbs = '', bool $include_orphans = true, bool $use_compound_list = false, bool $ins_format = false)
* Get a nice formatted HTML list of all the children beneath the specified Wiki+ page. This function is recursive.
*
* @param ?AUTO_LINK $select The Wiki+ page to select by default (null: none)
* @param ?AUTO_LINK $id The Wiki+ page to look beneath (null: the root)
* @param string $breadcrumbs Breadcrumbs built up so far, in recursion (blank: starting recursion)
* @param boolean $include_orphans Whether to include orphaned pages in the breadcrumbs
* @param boolean $use_compound_list Whether to create a compound list (gets pairs: Tempcode, and comma-separated list of children)
* @param boolean $ins_format Whether to use titles in IDs after a ! (used on tree edit page)
* @return mixed Tempcode for the list / pair of Tempcode and compound
*/
function create_selection_list_wiki_page_tree(?int $select = null, ?int $id = null, string $breadcrumbs = '', bool $include_orphans = true, bool $use_compound_list = false, bool $ins_format = false)
