Module "product_type_category"
Description
Available methods
- array get_all
- array get_all_for_user
- array get_by_id
- array get_by_identifier
- array get_for_reseller
- array get_for_user
Details
array get_all
Get all the information associated to all Product Type Categories
Returns
- array $product_type_categories
array get_all_for_user
Get all product type categories for a given user
Parameters
- int $user_id The user ID to fetch product type categories for
Returns
- array $details
array get_by_id
Get a product type category by ID
Parameters
- int $id The ID of the product type category
Returns
- array $details
array get_by_identifier
Get a prodyct type category by its identifier
Parameters
- string $identifier The identifier to fetch the product type category for
Returns
- array $details
array get_for_reseller
Get all product type categories for a given reseller
Parameters
- int $reseller_id The reseller ID to fetch product type categories for
Returns
- array $details
array get_for_user
Get all product type categories for a given user
Don't include product type categories in which the user has no products
Parameters
- int $user_id The user ID to fetch product type categories for
Returns
- array $details