Function __global->create_selection_list_gallery_content_tree
Definitions
sources/galleries.php
- Get a nice, formatted HTML list of gallery entries, in gallery tree structure.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $table | ID_TEXT | No | No | required parameter | images videos | N/A | The table we are working with |
| $it | ?ID_TEXT | No | No | Null | N/A | N/A | The currently selected entry (null: none selected) |
| $submitter | ?AUTO_LINK | No | No | Null | N/A | N/A | Only show images/videos submitted by this member (null: no filter) |
| $use_compound_list | boolean | No | No | False | N/A | N/A | Whether to get a list of child galleries (not just direct ones, recursively), instead of just IDs |
| $editable_filter | boolean | No | No | False | N/A | N/A | Whether to only show for what may be edited by the current member |
Returns
- The list of entries
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a nice, formatted HTML list of gallery entries, in gallery tree structure.
*
* @param ID_TEXT $table The table we are working with
* @set images videos
* @param ?ID_TEXT $it The currently selected entry (null: none selected)
* @param ?AUTO_LINK $submitter Only show images/videos submitted by this member (null: no filter)
* @param boolean $use_compound_list Whether to get a list of child galleries (not just direct ones, recursively), instead of just IDs
* @param boolean $editable_filter Whether to only show for what may be edited by the current member
* @return Tempcode The list of entries
*/
function create_selection_list_gallery_content_tree(string $table, ?string $it = null, ?int $submitter = null, bool $use_compound_list = false, bool $editable_filter = false) : object
* Get a nice, formatted HTML list of gallery entries, in gallery tree structure.
*
* @param ID_TEXT $table The table we are working with
* @set images videos
* @param ?ID_TEXT $it The currently selected entry (null: none selected)
* @param ?AUTO_LINK $submitter Only show images/videos submitted by this member (null: no filter)
* @param boolean $use_compound_list Whether to get a list of child galleries (not just direct ones, recursively), instead of just IDs
* @param boolean $editable_filter Whether to only show for what may be edited by the current member
* @return Tempcode The list of entries
*/
function create_selection_list_gallery_content_tree(string $table, ?string $it = null, ?int $submitter = null, bool $use_compound_list = false, bool $editable_filter = false) : object
