OXID eShop CE
6.1.5
|
Public Member Functions | |
setId ($sId) | |
getId () | |
setParentId ($sParentId) | |
getParentId () | |
setMdSubvariants ($aSubvariants) | |
getMdSubvariants () | |
getFirstMdSubvariant () | |
getMdSubvariantByName ($sName) | |
getLink () | |
setName ($sName) | |
getName () | |
getDPrice () | |
getMinDPrice () | |
getMaxDepth () | |
getFPrice () | |
addNames ($sArtId, $aNames, $dPrice, $sUrl) | |
getArticleId () | |
hasArticleId ($sArtId) | |
Protected Member Functions | |
_addMdSubvariant ($oSubvariant) | |
_isFixedPrice () | |
Protected Attributes | |
$_sId | |
$_sParentId | |
$_sArticleId | |
$_sName | |
$_sUrl | |
$_dPrice = null | |
$_sFPrice | |
$_aSubvariants = [] | |
Defines an element of multidimentional variant name tree structure. Contains article id, variant name, URL, price, price text, and a subset of MD variants.
|
protected |
Adds one subvariant to subvariant set
\OxidEsales\Eshop\Application\Model\MdVariant | $oSubvariant | Subvariant |
|
protected |
Checks if variant price is fixed or not ("from" price)
OxidEsales\EshopCommunity\Application\Model\MdVariant::addNames | ( | $sArtId, | |
$aNames, | |||
$dPrice, | |||
$sUrl | |||
) |
OxidEsales\EshopCommunity\Application\Model\MdVariant::getArticleId | ( | ) |
Returns corresponding article id or recusively first variant id from subvariant set
OxidEsales\EshopCommunity\Application\Model\MdVariant::getDPrice | ( | ) |
Returns price
OxidEsales\EshopCommunity\Application\Model\MdVariant::getFirstMdSubvariant | ( | ) |
Returns first MD subvariant from subvariant set or null in case variant has no subvariants.
OxidEsales\EshopCommunity\Application\Model\MdVariant::getFPrice | ( | ) |
Returns MD variant price as a text.
OxidEsales\EshopCommunity\Application\Model\MdVariant::getId | ( | ) |
Returns MD variant identifier
OxidEsales\EshopCommunity\Application\Model\MdVariant::getLink | ( | ) |
Returns corresponding article URL or recusively first variant URL from subvariant set
OxidEsales\EshopCommunity\Application\Model\MdVariant::getMaxDepth | ( | ) |
Gets max subvariant depth. 0 means no deeper subvariants.
OxidEsales\EshopCommunity\Application\Model\MdVariant::getMdSubvariantByName | ( | $sName | ) |
Checks for existing MD subvariant by name. Returns existing one or in case $sName has not been found creates an empty OxMdVariant instance.
string | $sName | Subvariant name |
OxidEsales\EshopCommunity\Application\Model\MdVariant::getMdSubvariants | ( | ) |
Returns full array of subvariants
OxidEsales\EshopCommunity\Application\Model\MdVariant::getMinDPrice | ( | ) |
Returns min price recursively selected from full subvariant tree.
OxidEsales\EshopCommunity\Application\Model\MdVariant::getName | ( | ) |
Returns MD variant name
OxidEsales\EshopCommunity\Application\Model\MdVariant::getParentId | ( | ) |
Returns parent id
OxidEsales\EshopCommunity\Application\Model\MdVariant::hasArticleId | ( | $sArtId | ) |
Checks whether $sArtId is one of subtree article ids.
string | $sArtId | Article ID |
OxidEsales\EshopCommunity\Application\Model\MdVariant::setId | ( | $sId | ) |
Sets MD variant identifier
string | $sId | New id |
OxidEsales\EshopCommunity\Application\Model\MdVariant::setMdSubvariants | ( | $aSubvariants | ) |
Sets MD subvariants
OxidEsales\EshopCommunity\Application\Model\MdVariant::setName | ( | $sName | ) |
Name setter
string | $sName | New name |
OxidEsales\EshopCommunity\Application\Model\MdVariant::setParentId | ( | $sParentId | ) |
Sets parent id
string | $sParentId | Parent id |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |