Back to Opencart

Class Opencart\Catalog\Model\Catalog\Review

docs/api/Opencart.Catalog.Model.Catalog.Review.html

4.1.0.34.2 KB
Original Source

Namespaces

Classes

Class Opencart[Catalog](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.html)\[Model](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.Model.html)\[Catalog](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.Model.Catalog.html)\[Review](http://localhost\opencart-master/docs/api/Opencart.Catalog.Model.Catalog.Review.html)

| extends | Model |

Class Review

Located at catalog\model\catalog\review.php

Methods
`
public

			` | `addReview(int $product_id, array<string, mixed> $data): int`

Add Review

Add Review

| # | | `

public

			` | `getReviewsByProductId(int $product_id, int $start = 0, int $limit = 20): array<int, array<string, mixed>>`

Get Reviews By Product ID

Get Reviews By Product ID

| # | | `

public

			` | `getTotalReviewsByProductId(int $product_id): int`

Get Total Reviews By Product ID

Get Total Reviews By Product ID

| # |

Methods inherited from Opencart\System\Engine\Model
__construct(),__get(), __set(),__isset()
Properties inherited from Opencart\System\Engine\Model
$registry

OpenCart API API documentation generated by ApiGen dev-master