Function Hook_ecommerce_tax_taxcloud->_prepare_tics_list
Definitions
sources/hooks/systems/ecommerce_tax/taxcloud.php
- Get a hierarchical TIC selection list.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: object
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $all_tics | array | No | No | required parameter | N/A | N/A | The list of TICs |
| $default | string | No | No | required parameter | N/A | N/A | Default value |
| $parent | string | No | No | required parameter | N/A | N/A | Only get child nodes of |
| $pre | string | No | No | Blank (empty string) | N/A | N/A | Prefix for parent chain |
| $depth | integer | No | No | 0 | N/A | N/A | Current recursion depth |
Returns
- The list
- Type: Tempcode
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get a hierarchical TIC selection list.
*
* @param array $all_tics The list of TICs
* @param string $default Default value
* @param string $parent Only get child nodes of
* @param string $pre Prefix for parent chain
* @param integer $depth Current recursion depth
* @return Tempcode The list
*/
protected function _prepare_tics_list(array $all_tics, string $default, string $parent, string $pre = '', int $depth = 0) : object
* Get a hierarchical TIC selection list.
*
* @param array $all_tics The list of TICs
* @param string $default Default value
* @param string $parent Only get child nodes of
* @param string $pre Prefix for parent chain
* @param integer $depth Current recursion depth
* @return Tempcode The list
*/
protected function _prepare_tics_list(array $all_tics, string $default, string $parent, string $pre = '', int $depth = 0) : object

