Back to Opencart

Class Opencart\Admin\Model\Cms\Topic

docs/api/Opencart.Admin.Model.Cms.Topic.html

4.1.0.35.7 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)\[Cms](http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.Model.Cms.html)\[Topic](http://localhost\opencart-master/docs/api/Opencart.Admin.Model.Cms.Topic.html)

| extends | Model |

Class Topic

Located at admin\model\cms\topic.php

Methods
`
public

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

Add Topic

Add Topic

Returns

$topic

| # | | `

public

			` | `editTopic(int $topic_id, array<string, mixed> $data): void`

Edit Topic

Edit Topic

| # | | `

public

			` | `deleteTopic(int $topic_id): void`

Delete Topic

Delete Topic

| # | | `

public

			` | `getTopic(int $topic_id): array<string, mixed>`

Get Topic

Get Topic

| # | | `

public

			` | `getTopics(array<string, mixed> $data = []): array<int, array<string, mixed>>`

Get Topics

Get Topics

| # | | `

public

			` | `getTotalTopics(): int`

Get Total Topics

Get Total Topics

| # | | `

public

			` | `addDescription(int $topic_id, int $language_id, array<string, mixed> $data): void`

Add Description

Add Description

| # | | `

public

			` | `deleteDescriptions(int $topic_id): void`

Delete Description

Delete Description

Parameters

| $topic_id |

primary key of the attribute record to be fetched

|

| # | | `

public

			` | `deleteDescriptionsByLanguageId(int $language_id): void`

Delete Descriptions By Language ID

Delete Descriptions By Language ID

| # | | `

public

			` | `getDescriptions(int $topic_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 $topic_id, int $store_id): void`

Add Store

Add Store

| # | | `

public

			` | `deleteStores(int $topic_id): void`

Delete Stores

Delete Stores

| # | | `

public

			` | `getStores(int $topic_id): array<int, int>`

Get Stores

Get Stores

| # | | `

public

			` | `addLayout(int $topic_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

| # |

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