docs/api/Opencart.Admin.Model.Catalog.Download.html
| extends | Model |
Class Download
Located at admin\model\catalog\download.php
| Methods |
|---|
| ` |
public
` | `addDownload(array<string, mixed> $data): int`
Add Download
Add Download
| # | | `
public
` | `editDownload(int $download_id, array<string, mixed> $data): void`
Edit Download
Edit Download
| # | | `
public
` | `deleteDownload(int $download_id): void`
Delete Download
Delete Download
| # | | `
public
` | `getDownload(int $download_id): array<string, mixed>`
Get Download
Get Download
| # | | `
public
` | `getDownloads(array<string, mixed> $data = []): array<int, array<string, mixed>>`
Get Downloads
Get Downloads
| # | | `
public
` | `addDescription(int $download_id, int $language_id, array<string, mixed> $data): void`
Add Description
Add Description
| $download_id |
primary key of the attribute record to be fetched
|
| # | | `
public
` | `deleteDescriptions(int $download_id): void`
Delete Descriptions
Delete Descriptions
| $download_id |
primary key of the download record to be fetched
|
| # | | `
public
` | `deleteDescriptionsByLanguageId(int $language_id): void`
Delete Descriptions By Language ID
Delete Descriptions By Language ID
| # | | `
public
` | `getDescriptions(int $download_id): array<int, array<string, string>>`
Get Descriptions
Get Descriptions
| # | | `
public
` | `getDescriptionsByLanguageId(int $language_id): array<int, array<string, string>>`
Get Descriptions By Language ID
Get Descriptions By Language ID
| # | | `
public
` | `getTotalDownloads(): int`
Get Total Downloads
Get Total Downloads
| # | | `
public
` | `getReports(int $download_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>`
Get Reports
Get Reports
| # | | `
public
` | `deleteReports(int $download_id): void`
Delete Reports
Delete Reports
| # | | `
public
` | `getTotalReports(int $download_id): int`
Get Total Reports
Get Total Reports
| # |
| 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