Function __global->_selectcode_find_ids_and_parents
Definitions
sources/selectcode.php
- Load up all category ID/parent relationships.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $field_name | string | No | No | required parameter | N/A | N/A | The ID field name in the record-set |
| $table_name | string | No | No | required parameter | N/A | N/A | The table name of the record-set |
| $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 connector to use |
Returns
- A map between record-set IDs and record-set parent-category-IDs
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Load up all category ID/parent relationships.
*
* @param string $field_name The ID field name in the record-set
* @param string $table_name The table name of the record-set
* @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 connector to use
* @return array A map between record-set IDs and record-set parent-category-IDs
*/
function _selectcode_find_ids_and_parents(string $field_name, string $table_name, ?string $category_field_name, object $db) : array
* Load up all category ID/parent relationships.
*
* @param string $field_name The ID field name in the record-set
* @param string $table_name The table name of the record-set
* @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 connector to use
* @return array A map between record-set IDs and record-set parent-category-IDs
*/
function _selectcode_find_ids_and_parents(string $field_name, string $table_name, ?string $category_field_name, object $db) : array

