|
OXID eShop CE
6.4.2
|
Functions | |
| smarty_function_oxvariantselect ($params, &$smarty) | |
| oxvariantselect_addSubvariants ($oMdVariants, $iLevel, &$aSelectBoxes, &$aRealVariants, $sSeparator, $sCallMethod, $sArtId) | |
| oxvariantselect_formatSelectBox ($sId, $aOptions, $iLevel, $blVisible, $sSelected) | |
| oxvariantselect_formatJsSelecBoxesArray ($aSelectBoxes) | |
| oxvariantselect_formatJsRealVariantArray ($aRealVariants) | |
| oxvariantselect_addSubvariants | ( | $oMdVariants, | |
| $iLevel, | |||
| & | $aSelectBoxes, | ||
| & | $aRealVariants, | ||
| $sSeparator, | |||
| $sCallMethod, | |||
| $sArtId | |||
| ) |
Recursiovely adds selection box of for subvariants
| array[string]OxMdVariant | $oMdVariants Variant list | |
| int | $iLevel | Depth level |
| array[int][int]string | &$aSelectBoxes Cummulative array of select boxes | |
| array[string]string | &$aRealVariants Cummulative array or real variants | |
| string | $sSeparator | Separator placed between select boxes |
| string | $sCallMethod | Method to be called to display the variant |
| string | $sArtId | Default selected article Id |
| oxvariantselect_formatJsRealVariantArray | ( | $aRealVariants | ) |
Formats Real Variant array in JavaScritp format
| array[string]string | $aRealVariants Select box array |
| oxvariantselect_formatJsSelecBoxesArray | ( | $aSelectBoxes | ) |
Formats Select Box array in JavaScritp format
| array[int][int]string | $aSelectBoxes Select box array |
| oxvariantselect_formatSelectBox | ( | $sId, | |
| $aOptions, | |||
| $iLevel, | |||
| $blVisible, | |||
| $sSelected | |||
| ) |
Formats variant select box
| string | $sId | Select box id |
| array[string]string | $aOptions Select box options | |
| int | $iLevel | Level information (counted from 0) |
| bool | $blVisible | Initial select list visibility |
| string | $sSelected | Selected variant |
| smarty_function_oxvariantselect | ( | $params, | |
| & | $smarty | ||
| ) |
Copyright © OXID eSales AG. All rights reserved. See LICENSE file for license details.
Purpose: outputs HTML and JavaScript selectboxes for MD variant management call example:
| array | $params | params |
| Smarty | &$smarty | clever simulation of a method |