NAVIGATION
This shows you the differences between two versions of the page.
|
english:technics:internal-function-call:category-bottom-top [2010/08/23 13:25] Knut Heermann (flip-flop) created |
english:technics:internal-function-call:category-bottom-top [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ====== Structure Bottom-Top Output ====== | ====== Structure Bottom-Top Output ====== | ||
| - | **Ein Programmteil das alle verfügbaren Kategorie-IDs oberhalb der angegebenen Ebene bis zur angegebenen übergeordneten Ebene ausgibt.** | + | **A snippet catching all available cat-ids between the specified level to the specified parent level.** |
| - | + | ||
| - | A snippet catching all available cat-ids between the specified level to the specified parent level | + | |
| In other words: Is the current category a part of the subcategories of the given parent category? | In other words: Is the current category a part of the subcategories of the given parent category? | ||
| - | * Input: Actual category-ID //($start)//, parent category-ID (//%%$top > 0%%)// | + | * **Input:** Actual category-ID //($start)//, parent category-ID (//%%$top > 0%%)// |
| - | * Return: | + | * **Return:** |
| - | - n success: String separated by commas with all the IDs of the searched tree structure | + | - on success: String separated by commas with all the IDs of the searched tree structure |
| - on failure: %%Empty string = ''%% | - on failure: %%Empty string = ''%% | ||
| Line 93: | Line 91: | ||
| Function call: ##$s = buildStruct_BottomTop(7, 3);## //category_02_01_02 -> ID=07, category_03 -> ID=03// | Function call: ##$s = buildStruct_BottomTop(7, 3);## //category_02_01_02 -> ID=07, category_03 -> ID=03// | ||
| - | Output ##$s##: **%%''%%** -> The string is empty because the category %%ID=7%% is not below the category %%ID=3%% . | + | Output ##$s##: **%%''%%** -> The string is empty because the category %%ID=7%% is not within the structure of the category tree from category %%ID=3%% . |