Inheritance diagram for oxAttribute:
Collaboration diagram for oxAttribute:Public Member Functions | |
| __construct () | |
| delete ($sOXID=null) | |
| assignVarToAttribute ($aMDVariants, $aSelTitle) | |
| getAttributeAssigns ($sArtId) | |
| setTitle ($sTitle) | |
| getTitle () | |
| addValue ($sValue) | |
| setActiveValue ($sValue) | |
| getActiveValue () | |
| getValues () | |
Protected Member Functions | |
| _getAttrId ($sSelTitle) | |
| _createAttribute ($aSelTitle) | |
Protected Attributes | |
| $_sClassName = 'oxattribute' | |
| $_sActiveValue = null | |
| $_sTitle = null | |
| $_aValues = null | |
Article attributes manager. Collects and keeps attributes of chosen article.
Definition at line 7 of file oxattribute.php.
| oxAttribute.__construct | ( | ) |
Class constructor, initiates parent constructor (parent.oxBase()).
Reimplemented from oxI18n.
Definition at line 40 of file oxattribute.php.
| oxAttribute._createAttribute | ( | $ | aSelTitle | ) | [protected] |
Checks if attribute exists
| array | $aSelTitle selection list title |
Definition at line 140 of file oxattribute.php.
| oxAttribute._getAttrId | ( | $ | sSelTitle | ) | [protected] |
Searches for attribute by oxtitle. If exists returns attribute id
| string | $sSelTitle selection list title |
Definition at line 126 of file oxattribute.php.
| oxAttribute.addValue | ( | $ | sValue | ) |
Add attribute value
| string | $sValue - attribute value |
Definition at line 213 of file oxattribute.php.
| oxAttribute.assignVarToAttribute | ( | $ | aMDVariants, | |
| $ | aSelTitle | |||
| ) |
Assigns attribute to variant
| array | $aMDVariants article ids with selectionlist values | |
| array | $aSelTitle selection list titles |
Definition at line 82 of file oxattribute.php.
| oxAttribute.delete | ( | $ | sOXID = null |
) |
Removes attributes from articles, returns true on success.
| string | $sOXID Object ID |
Reimplemented from oxI18n.
Definition at line 53 of file oxattribute.php.
| oxAttribute.getActiveValue | ( | ) |
| oxAttribute.getAttributeAssigns | ( | $ | sArtId | ) |
Returns all oxobject2attribute Ids of article
| string | $sArtId article ids |
Definition at line 162 of file oxattribute.php.
| oxAttribute.getTitle | ( | ) |
| oxAttribute.getValues | ( | ) |
| oxAttribute.setActiveValue | ( | $ | sValue | ) |
Set attribute selected value
| string | $sValue - attribute value |
Definition at line 225 of file oxattribute.php.
| oxAttribute.setTitle | ( | $ | sTitle | ) |
Set attribute title
| string | $sTitle - attribute title |
Definition at line 191 of file oxattribute.php.
oxAttribute.$_aValues = null [protected] |
Definition at line 35 of file oxattribute.php.
oxAttribute.$_sActiveValue = null [protected] |
Definition at line 21 of file oxattribute.php.
oxAttribute.$_sClassName = 'oxattribute' [protected] |
Reimplemented from oxI18n.
Definition at line 14 of file oxattribute.php.
oxAttribute.$_sTitle = null [protected] |
Definition at line 28 of file oxattribute.php.
1.7.1