Module "product"
Description
Available methods
- array get_by_id
- array get_by_ids
- array get_by_user_category
- int get_mysql_product
Details
array get_by_id
Get a product by ID
Parameters
- int $id The ID of the product
Returns
- array $details Array containing all the product information
array get_by_ids
Get by ids
Parameters
- array $ids
Returns
- array $details
array get_by_user_category
Get all products for a given user in a specific category
Parameters
- int $user_id The ID of the user
- int $product_category_id The ID of the category where all products must belong to
- int $only_root Give only the root products. Nested products (eg: webhosting) will be excluded from result
Returns
- array $details An array containing all products from the requested query
int get_mysql_product
Get mysql
Parameters
- int $product_id
Returns
- int $id