Public Member Functions | |
init ($oArticles) | |
buildMdVariants ($oVariants, $sParentId) | |
genVariantFromSell ($aSels, $oArticle) | |
isMdVariant ($oArticle) | |
Protected Member Functions | |
_assignValues ($aValues, $oVariants, $oArticle, $aConfLanguages) | |
_getValuePrice ($oValue, $dParentPrice) | |
_craeteNewVariant ($aParams=null, $sParentId=null) | |
_updateArticleVarName ($sUpdate, $sArtId) | |
Protected Attributes | |
$_oArticles = null | |
$_sMdSeparator = " | " | |
$_oMdVariants = null |
oxVariantHandler encapsulates methods dealing with multidimensional variant and variant names.
Definition at line 7 of file oxvarianthandler.php.
oxVariantHandler._assignValues | ( | $ | aValues, | |
$ | oVariants, | |||
$ | oArticle, | |||
$ | aConfLanguages | |||
) | [protected] |
Assigns values of selection list to variants
array | $aValues multilang values of selection list | |
object | $oVariants variant list | |
object | $oArticle parent article | |
array | $aConfLanguages array of all active languages |
Definition at line 123 of file oxvarianthandler.php.
oxVariantHandler._craeteNewVariant | ( | $ | aParams = null , |
|
$ | sParentId = null | |||
) | [protected] |
Creates new article variant.
array | $aParams assigned parameters | |
string | $sParentId parent article id |
Definition at line 236 of file oxvarianthandler.php.
oxVariantHandler._getValuePrice | ( | $ | oValue, | |
$ | dParentPrice | |||
) | [protected] |
Returns article price
object | $oValue selection list value | |
double | $dParentPrice parent article price |
Definition at line 209 of file oxvarianthandler.php.
oxVariantHandler._updateArticleVarName | ( | $ | sUpdate, | |
$ | sArtId | |||
) | [protected] |
Inserts article variant name for all languages
string | $sUpdate query for update variant name | |
string | $sArtId parent article id |
Definition at line 266 of file oxvarianthandler.php.
oxVariantHandler.buildMdVariants | ( | $ | oVariants, | |
$ | sParentId | |||
) |
Returns multidimensional variant structure
object | $oVariants all article variants | |
string | $sParentId parent article id |
Definition at line 50 of file oxvarianthandler.php.
oxVariantHandler.genVariantFromSell | ( | $ | aSels, | |
$ | oArticle | |||
) |
Generate variants from selection lists
array | $aSels ids of selection list | |
object | $oArticle parent article |
Definition at line 77 of file oxvarianthandler.php.
oxVariantHandler.init | ( | $ | oArticles | ) |
Sets internal variant name array from article list.
oxList[string]oxArticle | $oArticles Variant list as |
Definition at line 37 of file oxvarianthandler.php.
oxVariantHandler.isMdVariant | ( | $ | oArticle | ) |
Check if variant is multidimensional
Definition at line 280 of file oxvarianthandler.php.
oxVariantHandler.$_oArticles = null [protected] |
Definition at line 14 of file oxvarianthandler.php.
oxVariantHandler.$_oMdVariants = null [protected] |
Definition at line 28 of file oxvarianthandler.php.
oxVariantHandler.$_sMdSeparator = " | " [protected] |
Definition at line 21 of file oxvarianthandler.php.