Public Member Functions | Protected Member Functions

oxAttributeList Class Reference

Inheritance diagram for oxAttributeList:
Collaboration diagram for oxAttributeList:

List of all members.

Public Member Functions

 __construct ($sObjectsInListName= 'oxattribute')
 loadAttributesByIds ($aIds)
 loadAttributes ($sArticleId, $sParentId=null)
 loadAttributesDisplayableInBasket ($sArtId, $sParentId=null)
 getCategoryAttributes ($sCategoryId, $iLang)

Protected Member Functions

 _createAttributeListFromSql ($sSelect)
 _mergeAttributes ($aAttributes, $aParentAttributes)

Detailed Description

Attribute list manager.

Definition at line 7 of file oxattributelist.php.


Constructor & Destructor Documentation

oxAttributeList.__construct ( sObjectsInListName = 'oxattribute'  ) 

Class constructor

Parameters:
string $sObjectsInListName Associated list item object type
Returns:
null

Reimplemented from oxList.

Definition at line 16 of file oxattributelist.php.


Member Function Documentation

oxAttributeList._createAttributeListFromSql ( sSelect  )  [protected]

Fills array with keys and products with value

Parameters:
string $sSelect SQL select
Returns:
array $aAttributes

Definition at line 56 of file oxattributelist.php.

oxAttributeList._mergeAttributes ( aAttributes,
aParentAttributes 
) [protected]

Merge attribute arrays

Parameters:
array $aAttributes array of attributes
array $aParentAttributes array of parent article attributes
Returns:
array $aAttributes

Definition at line 219 of file oxattributelist.php.

oxAttributeList.getCategoryAttributes ( sCategoryId,
iLang 
)

get category attributes by category Id

Parameters:
string $sCategoryId category Id
integer $iLang language No
Returns:
object;

Definition at line 154 of file oxattributelist.php.

oxAttributeList.loadAttributes ( sArticleId,
sParentId = null 
)

Load attributes by article Id

Parameters:
string $sArticleId article id
string $sParentId article parent id
Returns:
null;

Definition at line 85 of file oxattributelist.php.

oxAttributeList.loadAttributesByIds ( aIds  ) 

Load all attributes by article Id's

Parameters:
array $aIds article id's
Returns:
array $aAttributes;

Definition at line 28 of file oxattributelist.php.

oxAttributeList.loadAttributesDisplayableInBasket ( sArtId,
sParentId = null 
)

Load displayable in basket/order attributes by article Id

Parameters:
string $sArtId article ids
string $sParentId parent article id
Returns:
null

Definition at line 119 of file oxattributelist.php.


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