Public Member Functions | Protected Member Functions | Protected Attributes

oxAttribute Class Reference

Inheritance diagram for oxAttribute:
Collaboration diagram for oxAttribute:

List of all members.

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

Detailed Description

Article attributes manager. Collects and keeps attributes of chosen article.

Definition at line 8 of file oxattribute.php.


Constructor & Destructor Documentation

oxAttribute.__construct (  ) 

Class constructor, initiates parent constructor (parent.oxBase()).

Reimplemented from oxI18n.

Definition at line 41 of file oxattribute.php.


Member Function Documentation

oxAttribute._createAttribute ( aSelTitle  )  [protected]

Checks if attribute exists

Parameters:
array $aSelTitle selection list title
Returns:
string attribute id

Definition at line 141 of file oxattribute.php.

oxAttribute._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

Definition at line 127 of file oxattribute.php.

oxAttribute.addValue ( sValue  ) 

Add attribute value

Parameters:
string $sValue - attribute value
Returns:
null

Definition at line 214 of file oxattribute.php.

oxAttribute.assignVarToAttribute ( aMDVariants,
aSelTitle 
)

Assigns attribute to variant

Parameters:
array $aMDVariants article ids with selectionlist values
array $aSelTitle selection list titles
Returns:
null

Definition at line 83 of file oxattribute.php.

oxAttribute.delete ( sOXID = null  ) 

Removes attributes from articles, returns true on success.

Parameters:
string $sOXID Object ID
Returns:
bool

Reimplemented from oxI18n.

Definition at line 54 of file oxattribute.php.

oxAttribute.getActiveValue (  ) 

Get attribute Selected value

Returns:
String

Definition at line 236 of file oxattribute.php.

oxAttribute.getAttributeAssigns ( sArtId  ) 

Returns all oxobject2attribute Ids of article

Parameters:
string $sArtId article ids
Returns:
null;

Definition at line 163 of file oxattribute.php.

oxAttribute.getTitle (  ) 

Get attribute Title

Returns:
String

Definition at line 202 of file oxattribute.php.

oxAttribute.getValues (  ) 

Get attribute values

Returns:
Array

Definition at line 247 of file oxattribute.php.

oxAttribute.setActiveValue ( sValue  ) 

Set attribute selected value

Parameters:
string $sValue - attribute value
Returns:
null

Definition at line 226 of file oxattribute.php.

oxAttribute.setTitle ( sTitle  ) 

Set attribute title

Parameters:
string $sTitle - attribute title
Returns:
null

Definition at line 192 of file oxattribute.php.


Member Data Documentation

oxAttribute.$_aValues = null [protected]

Definition at line 36 of file oxattribute.php.

oxAttribute.$_sActiveValue = null [protected]

Definition at line 22 of file oxattribute.php.

oxAttribute.$_sClassName = 'oxattribute' [protected]

Reimplemented from oxI18n.

Definition at line 15 of file oxattribute.php.

oxAttribute.$_sTitle = null [protected]

Definition at line 29 of file oxattribute.php.


The documentation for this class was generated from the following file: