# Class Opencart\Catalog\Model\Cms\Article

`extends` | `Model`

Class Article

- Opencart\System\Engine\Model
  - Opencart\Catalog\Model\Cms\Article

Located at catalog\model\cms\article.php

Methods
`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` | `editRating(int $article_id, int $rating): void` Edit Rating Edit Rating | #
`public` | `getTotalArticles(array<string, mixed> $data = []): int` Get Total Articles Get Total Articles | #
`public` | `getLayoutId(int $article_id): int` Get Layout ID Get Layout ID | #
`public` | `addComment(int $article_id, array<string, mixed> $data): int` Add Comment Add Comment | #
`public` | `editCommentRating(int $article_id, int $article_comment_id, int $rating): void` Edit Comment Rating Edit Comment Rating | #
`public` | `getComment(int $article_comment_id): array<string, mixed>` Get Comment Get Comment | #
`public` | `getComments(int $article_id, array<string, mixed> $data = []): array<int, array<string, mixed>>` Get Comments Get Comments | #
`public` | `getTotalComments(int $article_id, array<string, mixed> $data = []): int` Get Total Comments Get Total Comments | #
`public` | `addRating(int $article_id, int $article_comment_id, bool $rating): void` Add Rating Add Rating | #
`public` | `deleteRatings(int $article_id, int $article_comment_id): void` Delete Ratings Delete Ratings | #
`public` | `getRatings(int $article_id, int $article_comment_id = 0): array<int, array<string, mixed>>` Get Ratings Get Ratings | #

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