Public Member Functions | Protected Member Functions | Protected Attributes

Article_Variant Class Reference

Inheritance diagram for Article_Variant:
Collaboration diagram for Article_Variant:

List of all members.

Public Member Functions

 render ()
 savevariants ()
 deleteVariant ()
 changename ()
 addsel ()

Protected Member Functions

 _isAnythingChanged ($oProduct, $aData)
 _getProductParent ($sParentId)

Protected Attributes

 $_oProductParent = null

Detailed Description

Admin article variants manager. Collects and updates article variants data. Admin Menu: Manage Products -> Articles -> Variants.

Definition at line 8 of file article_variant.php.


Member Function Documentation

Article_Variant._getProductParent ( sParentId  )  [protected]

Returns variant parent object

Parameters:
string $sParentId parent product id
Returns:
oxarticle

Definition at line 180 of file article_variant.php.

Article_Variant._isAnythingChanged ( oProduct,
aData 
) [protected]

Checks if anything is changed in given data compared with existing product values.

Parameters:
oxArticle $oProduct Product to be checked.
array $aData Data provided for check.
Returns:
bool

Definition at line 159 of file article_variant.php.

Article_Variant.addsel (  ) 

Add selection list

Returns:
null

Definition at line 256 of file article_variant.php.

Article_Variant.changename (  ) 

Changes name of variant.

Definition at line 229 of file article_variant.php.

Article_Variant.deleteVariant (  ) 

Deletes article variant.

Returns:
null

Definition at line 216 of file article_variant.php.

Article_Variant.render (  ) 

Loads article variants data, passes it to Smarty engine and returns name of template file "article_variant.tpl".

Returns:
string

Reimplemented from oxAdminDetails.

Definition at line 24 of file article_variant.php.

Article_Variant.savevariants (  ) 

Saves all article variants at once.

Definition at line 198 of file article_variant.php.


Member Data Documentation

Article_Variant.$_oProductParent = null [protected]

Definition at line 16 of file article_variant.php.


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