Function __global->_ensure_loaded__ids_and_parents
Definitions
sources/selectcode.php
- Lazy-loading of IDs is no longer sufficient, pull them in.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $field_name | ?string | No | No | required parameter | N/A | N/A | The database's ID field for the record-set we're matching (null: use a different lookup method) |
| $table_name | ?string | No | No | required parameter | N/A | N/A | The database's table for the record-set we're matching (null: use a different lookup method) |
| &$ids_and_parents | ?array | Yes | No | required parameter | N/A | N/A | A map between record-set IDs and record-set parent-category-IDs (null: use a different lookup method) |
| $ids_and_parents_callback | mixed | No | No | required parameter | N/A | N/A | A call_user_func_array specifier to a function that will give a map between record-set IDs and record-set parent-category-IDs. We pass a call_user_func_array specifier because we don't want to have to generate it unless we need to (if we need to do 'avoiding' matches or 'subtree' matches) |
| $category_field_name | ?string | No | No | required parameter | N/A | N/A | The database's field name for the record-set's container-category specifier (null: don't support subtree [*-style] searches) |
| $db | ?object | No | No | required parameter | N/A | N/A | Database connection to use (null: website) |
Preview
Code (PHP)
/**
* Lazy-loading of IDs is no longer sufficient, pull them in.
*
* @param ?string $field_name The database's ID field for the record-set we're matching (null: use a different lookup method)
* @param ?string $table_name The database's table for the record-set we're matching (null: use a different lookup method)
* @param ?array $ids_and_parents A map between record-set IDs and record-set parent-category-IDs (null: use a different lookup method)
* @param mixed $ids_and_parents_callback A call_user_func_array specifier to a function that will give a map between record-set IDs and record-set parent-category-IDs. We pass a call_user_func_array specifier because we don't want to have to generate it unless we need to (if we need to do 'avoiding' matches or 'subtree' matches)
* @param ?string $category_field_name The database's field name for the record-set's container-category specifier (null: don't support subtree [*-style] searches)
* @param ?object $db Database connection to use (null: website)
*/
function _ensure_loaded__ids_and_parents(?string $field_name, ?string $table_name, ?array &$ids_and_parents, $ids_and_parents_callback, ?string $category_field_name, ?object $db)
* Lazy-loading of IDs is no longer sufficient, pull them in.
*
* @param ?string $field_name The database's ID field for the record-set we're matching (null: use a different lookup method)
* @param ?string $table_name The database's table for the record-set we're matching (null: use a different lookup method)
* @param ?array $ids_and_parents A map between record-set IDs and record-set parent-category-IDs (null: use a different lookup method)
* @param mixed $ids_and_parents_callback A call_user_func_array specifier to a function that will give a map between record-set IDs and record-set parent-category-IDs. We pass a call_user_func_array specifier because we don't want to have to generate it unless we need to (if we need to do 'avoiding' matches or 'subtree' matches)
* @param ?string $category_field_name The database's field name for the record-set's container-category specifier (null: don't support subtree [*-style] searches)
* @param ?object $db Database connection to use (null: website)
*/
function _ensure_loaded__ids_and_parents(?string $field_name, ?string $table_name, ?array &$ids_and_parents, $ids_and_parents_callback, ?string $category_field_name, ?object $db)
