int CountForCategory( bool groupRestrictions, int categoryId, bool recurse, bool publicOnly )
Parameters
- groupRestrictions
- If true products assigned to groups that doesn't belong to user will not be counted.
- categoryId
- The ID of the category to count products for.
- recurse
- If true products are counted in the current category and any of it's children.
- publicOnly
- If true only public (published) products are counted. Default value is false
Return Value
The Number of Product objects for the given ManufacturerId in the database.