Article attributes manager. Collects and keeps attributes of chosen article.
◆ __construct()
OxidEsales\EshopCommunity\Application\Model\Attribute::__construct |
( |
| ) |
|
Class constructor, initiates parent constructor (parent::oxBase()).
◆ _createAttribute()
OxidEsales\EshopCommunity\Application\Model\Attribute::_createAttribute |
( |
|
$aSelTitle | ) |
|
|
protected |
Checks if attribute exists
- Parameters
-
array | $aSelTitle | selection list title |
- Returns
- string attribute id
◆ _getAttrId()
OxidEsales\EshopCommunity\Application\Model\Attribute::_getAttrId |
( |
|
$sSelTitle | ) |
|
|
protected |
Searches for attribute by oxtitle. If exists returns attribute id
- Parameters
-
string | $sSelTitle | selection list title |
- Returns
- mixed attribute id or false
◆ addValue()
OxidEsales\EshopCommunity\Application\Model\Attribute::addValue |
( |
|
$sValue | ) |
|
Add attribute value
- Parameters
-
string | $sValue | - attribute value |
◆ assignVarToAttribute()
OxidEsales\EshopCommunity\Application\Model\Attribute::assignVarToAttribute |
( |
|
$aMDVariants, |
|
|
|
$aSelTitle |
|
) |
| |
Assigns attribute to variant
- Parameters
-
array | $aMDVariants | article ids with selectionlist values |
array | $aSelTitle | selection list titles |
◆ canDeleteAttribute()
OxidEsales\EshopCommunity\Application\Model\Attribute::canDeleteAttribute |
( |
|
$oxId | ) |
|
|
protected |
Checks if possible to delete attribute.
- Parameters
-
- Returns
- bool
◆ delete()
OxidEsales\EshopCommunity\Application\Model\Attribute::delete |
( |
|
$sOXID = null | ) |
|
Removes attributes from articles, returns true on success.
- Parameters
-
- Returns
- bool
◆ getActiveValue()
OxidEsales\EshopCommunity\Application\Model\Attribute::getActiveValue |
( |
| ) |
|
Get attribute Selected value
- Returns
- String
◆ getAttributeAssigns()
OxidEsales\EshopCommunity\Application\Model\Attribute::getAttributeAssigns |
( |
|
$sArtId | ) |
|
Returns all oxobject2attribute Ids of article
- Parameters
-
- Returns
- null;
◆ getTitle()
OxidEsales\EshopCommunity\Application\Model\Attribute::getTitle |
( |
| ) |
|
Get attribute Title
- Returns
- String
◆ getValues()
OxidEsales\EshopCommunity\Application\Model\Attribute::getValues |
( |
| ) |
|
Get attribute values
- Returns
- Array
◆ setActiveValue()
OxidEsales\EshopCommunity\Application\Model\Attribute::setActiveValue |
( |
|
$sValue | ) |
|
Set attribute selected value
- Parameters
-
string | $sValue | - attribute value |
◆ setTitle()
OxidEsales\EshopCommunity\Application\Model\Attribute::setTitle |
( |
|
$sTitle | ) |
|
Set attribute title
- Parameters
-
string | $sTitle | - attribute title |
◆ $_aValues
OxidEsales\EshopCommunity\Application\Model\Attribute::$_aValues = null |
|
protected |
◆ $_sActiveValue
OxidEsales\EshopCommunity\Application\Model\Attribute::$_sActiveValue = null |
|
protected |
◆ $_sClassName
OxidEsales\EshopCommunity\Application\Model\Attribute::$_sClassName = 'oxattribute' |
|
protected |
◆ $_sTitle
OxidEsales\EshopCommunity\Application\Model\Attribute::$_sTitle = null |
|
protected |
The documentation for this class was generated from the following file: