OXID eShop CE
4.8.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 360 of file oxmdvariant.php.
|
protected |
Checks if variant price is fixed or not ("from" price)
Definition at line 370 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[int] | $aNames Expected array of $sKey=>$sName pairs. | |
double | $dPrice | Price as double |
string | $sUrl | Article URL |
Definition at line 299 of file oxmdvariant.php.
oxMdVariant::getArticleId | ( | ) |
Returns corresponding article id or recusively first variant id from subvariant set
Definition at line 322 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 136 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 174 of file oxmdvariant.php.
oxMdVariant::getMaxDepth | ( | ) |
Gets max subvariant depth. 0 means no deeper subvariants.
Definition at line 242 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 152 of file oxmdvariant.php.
oxMdVariant::getMdSubvariants | ( | ) |
Returns full array of subvariants
Definition at line 126 of file oxmdvariant.php.
oxMdVariant::getMinDPrice | ( | ) |
Returns min price recursively selected from full subvariant tree.
Definition at line 220 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 339 of file oxmdvariant.php.
oxMdVariant::setId | ( | $sId | ) |
Sets MD variant identifier
string | $sId | New id |
Definition at line 72 of file oxmdvariant.php.
oxMdVariant::setMdSubvariants | ( | $aSubvariants | ) |
Sets MD subvariants
array[string]OxMdVariant | $aSubvariants Subvariants |
Definition at line 116 of file oxmdvariant.php.
oxMdVariant::setName | ( | $sName | ) |
Name setter
string | $sName | New name |
Definition at line 190 of file oxmdvariant.php.
oxMdVariant::setParentId | ( | $sParentId | ) |
Sets parent id
string | $sParentId | Parent id |
Definition at line 94 of file oxmdvariant.php.
|
protected |
Definition at line 63 of file oxmdvariant.php.
|
protected |
Definition at line 49 of file oxmdvariant.php.
|
protected |
Definition at line 28 of file oxmdvariant.php.
|
protected |
Definition at line 56 of file oxmdvariant.php.
|
protected |
Definition at line 14 of file oxmdvariant.php.
|
protected |
Definition at line 35 of file oxmdvariant.php.
|
protected |
Definition at line 21 of file oxmdvariant.php.
|
protected |
Definition at line 42 of file oxmdvariant.php.