org.zenmagick.store.services.catalog.associations.ZMProductAssociationHandler
\store\services\catalog\associations\ZMProductAssociationHandler.php at line 34
Interface ZMProductAssociationHandler
ZMProductAssociationHandler
public interface ZMProductAssociationHandler
- Author:
- DerManoMann
- Version:
- $Id: ZMProductAssociationHandler.php 2694 2009-12-03 22:32:18Z dermanomann $
| Method Summary |
| array |
getProductAssociationsForProductId(int productId, array args, boolean all) Get product associations for the given product, type and parameter. |
| string |
getType() Get the type this handler handles. |
Method Detail
\store\services\catalog\associations\ZMProductAssociationHandler.php at line 51
getProductAssociationsForProductId
public array getProductAssociationsForProductId(int productId, array args, boolean all)
Get product associations for the given product, type and parameter.
- Parameters:
- productId - The source product id.
- args - Optional parameter that might be required by the used type; default is
null for none.
- all - Optional flag to load all configured products, regardless of start/end date, etc; default is
false.
- Returns:
- A list of
ZMProductAssociation instances.
\store\services\catalog\associations\ZMProductAssociationHandler.php at line 41
getType
public string getType()
Get the type this handler handles.
- Returns:
- The type identifier.
Product association handler.