docs/api/Opencart.Admin.Model.Cms.Article.html
| extends | Model |
Class Article
Located at admin\model\cms\article.php
| Methods |
|---|
| ` |
public
` | `addArticle(array<string, mixed> $data): int`
Add Article
Add Article
| # | | `
public
` | `editArticle(int $article_id, array<string, mixed> $data): void`
Edit Article
Edit Article
| # | | `
public
` | `editRating(int $article_id, int $rating): void`
Edit Rating
Edit Rating
| # | | `
public
` | `deleteArticle(int $article_id): void`
Delete Article
Delete Article
| # | | `
public
` | `getArticle(int $article_id): array<string, mixed>`
Get Article
Get Article
| # | | `
public
` | `getArticles(array<string, mixed> $data = []): array<int, array<string, mixed>>`
Get Articles
Get Articles
| # | | `
public
` | `getTotalArticles(array<string, mixed> $data = []): int`
Get Total Articles
Get Total Articles
| # | | `
public
` | `addDescription(int $article_id, int $language_id, array<string, mixed> $data): void`
Add Description
Add Description
| # | | `
public
` | `deleteDescriptions(int $article_id): void`
Delete Descriptions
Delete Descriptions
| # | | `
public
` | `deleteDescriptionsByLanguageId(int $language_id): void`
Delete Descriptions By Language ID
Delete Descriptions By Language ID
| # | | `
public
` | `getDescriptions(int $article_id): array<int, array<string, mixed>>`
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
` | `addStore(int $article_id, int $store_id): void`
Add Store
Add Store
| # | | `
public
` | `deleteStores(int $article_id): void`
Delete Stores
Delete Stores
| # | | `
public
` | `getStores(int $article_id): array<int, int>`
Get Stores
Get Stores
| # | | `
public
` | `addLayout(int $article_id, int $store_id, int $layout_id): void`
Add Layout
Add Layout
| # | | `
public
` | `deleteLayouts(int $article_id): void`
Delete Layouts
Delete Layouts
| # | | `
public
` | `deleteLayoutsByLayoutId(int $layout_id): void`
Delete Layouts By Layout ID
Delete Layouts By Layout ID
| # | | `
public
` | `getLayouts(int $article_id): array<int, int>`
Get Layouts
Get Layouts
| # | | `
public
` | `getTotalLayoutsByLayoutId(int $layout_id): int`
Get Total Layouts By Layout ID
Get Total Layouts By Layout ID
| # | | `
public
` | `editCommentStatus(int $article_comment_id, bool $status): void`
Edit Comment Status
Edit Comment Status
| # | | `
public
` | `editCommentRating(int $article_id, int $article_comment_id, int $rating): void`
Edit Comment Rating
Edit Comment Rating
| # | | `
public
` | `deleteComment(int $article_comment_id): void`
Delete Comment
Delete Comment
| # | | `
public
` | `deleteCommentsByArticleId(int $article_id): void`
Delete Comments by article ID
Delete Comments by article ID
| # | | `
public
` | `getComment(int $article_comment_id): array<string, mixed>`
Get Comment
Get Comment
| # | | `
public
` | `getRatings(int $article_id, int $article_comment_id = 0): array<int, array<string, mixed>>`
Get Ratings
Get Ratings
| # | | `
public
` | `getComments(array<string, mixed> $data = []): array<int, array<string, mixed>>`
Get Comments
Get Comments
| # | | `
public
` | `getTotalComments(array<string, mixed> $data = []): int`
Get Total Comments
Get Total Comments
| # |
| 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