OXID eShop CE
4.9.10
|
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) | |
Public Member Functions inherited from oxSuperCfg | |
__call ($sMethod, $aArgs) | |
__construct () | |
getConfig () | |
setConfig ($oConfig) | |
getSession () | |
setSession ($oSession) | |
getUser () | |
setUser ($oUser) | |
isAdmin () | |
setAdminMode ($blAdmin) |
Protected Member Functions | |
_addMdSubvariant ($oSubvariant) | |
_isFixedPrice () |
Protected Attributes | |
$_sId | |
$_sParentId | |
$_sArticleId | |
$_sName | |
$_sUrl | |
$_dPrice = null | |
$_sFPrice | |
$_aSubvariants = array() |
Additional Inherited Members | |
Static Protected Attributes inherited from oxSuperCfg | |
static | $_oConfig = null |
static | $_oSession = null |
static | $_oRights = null |
static | $_oActUser = null |
static | $_blIsAdmin = null |
Defines an element of multidimentional variant name tree structure. Contains article id, variant name, URL, price, price text, and a subset of MD variants.
Definition at line 7 of file oxmdvariant.php.
|
protected |
Adds one subvariant to subvariant set
OxMdVariant | $oSubvariant | Subvariant |
Definition at line 358 of file oxmdvariant.php.
|
protected |
Checks if variant price is fixed or not ("from" price)
Definition at line 368 of file oxmdvariant.php.
oxMdVariant::addNames | ( | $sArtId, | |
$aNames, | |||
$dPrice, | |||
$sUrl | |||
) |
Inits MD variant by name. In case $aNames parameter has more than one element addNames recursively adds names for subvariants.
string | $sArtId | Article ID |
array | $aNames | Expected array of $sKey=>$sName pairs. |
double | $dPrice | Price as double |
string | $sUrl | Article URL |
Definition at line 296 of file oxmdvariant.php.
oxMdVariant::getArticleId | ( | ) |
Returns corresponding article id or recusively first variant id from subvariant set
Definition at line 319 of file oxmdvariant.php.
oxMdVariant::getDPrice | ( | ) |
oxMdVariant::getFirstMdSubvariant | ( | ) |
Returns first MD subvariant from subvariant set or null in case variant has no subvariants.
Definition at line 131 of file oxmdvariant.php.
oxMdVariant::getFPrice | ( | ) |
oxMdVariant::getId | ( | ) |
oxMdVariant::getLink | ( | ) |
Returns corresponding article URL or recusively first variant URL from subvariant set
Definition at line 171 of file oxmdvariant.php.
oxMdVariant::getMaxDepth | ( | ) |
Gets max subvariant depth. 0 means no deeper subvariants.
Definition at line 239 of file oxmdvariant.php.
oxMdVariant::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 |
Definition at line 148 of file oxmdvariant.php.
oxMdVariant::getMdSubvariants | ( | ) |
Returns full array of subvariants
Definition at line 121 of file oxmdvariant.php.
oxMdVariant::getMinDPrice | ( | ) |
Returns min price recursively selected from full subvariant tree.
Definition at line 216 of file oxmdvariant.php.
oxMdVariant::getName | ( | ) |
oxMdVariant::getParentId | ( | ) |
oxMdVariant::hasArticleId | ( | $sArtId | ) |
Checks whether $sArtId is one of subtree article ids.
string | $sArtId | Article ID |
Definition at line 337 of file oxmdvariant.php.
oxMdVariant::setId | ( | $sId | ) |
Sets MD variant identifier
string | $sId | New id |
Definition at line 71 of file oxmdvariant.php.
oxMdVariant::setMdSubvariants | ( | $aSubvariants | ) |
Sets MD subvariants
oxMdVariant[] | $aSubvariants Subvariants |
Definition at line 111 of file oxmdvariant.php.
oxMdVariant::setName | ( | $sName | ) |
oxMdVariant::setParentId | ( | $sParentId | ) |
|
protected |
Definition at line 64 of file oxmdvariant.php.
|
protected |
Definition at line 50 of file oxmdvariant.php.
|
protected |
Definition at line 29 of file oxmdvariant.php.
|
protected |
Definition at line 57 of file oxmdvariant.php.
|
protected |
Definition at line 15 of file oxmdvariant.php.
|
protected |
Definition at line 36 of file oxmdvariant.php.
|
protected |
Definition at line 22 of file oxmdvariant.php.
|
protected |
Definition at line 43 of file oxmdvariant.php.