zenmagick.store.shared.services.catalog.associations\ZMProductAssociationHandler
services\catalog\associations\ZMProductAssociationHandler.php at line 30
Interface ZMProductAssociationHandler
ZMProductAssociationHandler
public interface ZMProductAssociationHandler
- Author:
- 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
services\catalog\associations\ZMProductAssociationHandler.php at line 47
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 an empty array.
- all - Optional flag to load all configured products, regardless of start/end date, etc; default is
false.
- Returns:
- A list of
ZMProductAssociation instances.
services\catalog\associations\ZMProductAssociationHandler.php at line 37
getType
public string getType()
Get the type this handler handles.
- Returns:
- The type identifier.
Product association handler.