Back to Opencart

Class Opencart\Admin\Model\Extension\Opencart\Report\ProductViewed

docs/api/Opencart.Admin.Model.Extension.Opencart.Report.ProductViewed.html

4.1.0.36.0 KB
Original Source

Namespaces

Classes

Class Opencart[Admin](http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.html)\[Model](http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.html)\[Extension](http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Extension.html)\[Opencart](http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Extension.Opencart.html)\[Report](http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Extension.Opencart.Report.html)\[ProductViewed](http://localhost\opencart-master/docs/api/Opencart.Admin.Model.Extension.Opencart.Report.ProductViewed.html)

| extends | Model |

Class ProductViewed

Located at extension\opencart\admin\model\report\product_viewed.php

Methods
`
public

			` | `install(): void`

Install

Install

| # | | `

public

			` | `uninstall(): void`

Uninstall

Uninstall

| # | | `

public

			` | `addReport(int $product_id, int $viewed): void`

Add Report

Add Report

| # | | `

public

			` | `getViewed(int $start = 0, int $limit = 10): array<int, array<string, mixed>>`

Get Viewed

Get Viewed

| # | | `

public

			` | `getTotalViewed(): int`

Get Total Viewed

Get Total Viewed

| # | | `

public

			` | `getTotal(): int`

Get Total

Get Total

| # | | `

public

			` | `clear(): void`

Clear

Clear

| # |

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