Function __global->store_in_catalogue_cat_treecache
Definitions
sources/catalogues2.php
- Update the treecache for a catalogue category node.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $id | AUTO_LINK | No | No | required parameter | N/A | N/A | The ID of the category |
| $parent_id | ?AUTO_LINK | No | No | required parameter | N/A | N/A | The ID of the parent category (null: no parent) |
| $cleanup_first | boolean | No | No | True | N/A | N/A | Whether to delete any possible pre-existing records for the category first |
Preview
Code (PHP)
/**
* Update the treecache for a catalogue category node.
*
* @param AUTO_LINK $id The ID of the category
* @param ?AUTO_LINK $parent_id The ID of the parent category (null: no parent)
* @param boolean $cleanup_first Whether to delete any possible pre-existing records for the category first
*/
function store_in_catalogue_cat_treecache(int $id, ?int $parent_id, bool $cleanup_first = true)
* Update the treecache for a catalogue category node.
*
* @param AUTO_LINK $id The ID of the category
* @param ?AUTO_LINK $parent_id The ID of the parent category (null: no parent)
* @param boolean $cleanup_first Whether to delete any possible pre-existing records for the category first
*/
function store_in_catalogue_cat_treecache(int $id, ?int $parent_id, bool $cleanup_first = true)

