# Class Opencart\Admin\Model\Setting\Event

`extends` | `Model`

Class Event

- Opencart\System\Engine\Model
  - Opencart\Admin\Model\Setting\Event

Located at admin\model\setting\event.php

Methods
`public` | `addEvent(array<string, mixed> $data): int` Add Event Add Event | #
`public` | `deleteEvent(int $event_id): void` Delete Event Delete Event | #
`public` | `deleteEventByCode(string $code): void` Delete Event By Code Delete Event By Code | #
`public` | `editStatus(int $event_id, bool $status): void` Edit Status Edit Status | #
`public` | `editStatusByCode(string $code, bool $status): void` Edit Status By Code Edit Status By Code | #
`public` | `getEvent(int $event_id): array<string, mixed>` Get Event Get Event | #
`public` | `getEventByCode(string $code): array<string, mixed>` Get Event By Code Get Event By Code | #
`public` | `getEvents(array<string, mixed> $data = []): array<int, array<string, mixed>>` Get Events Get Events | #
`public` | `getTotalEvents(): int` Get Total Events Get Total Events | #

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