EnglishReferenceRepositories
NotesRepository v1.0.0
Methods for one API section.
Description: Methods for one API section.
Namespace: DevCraftClub\MyShows\Repository
Since: 1.0.0
See also:
Methods
get(NotesSearchFilter $filter): array
Description: Calls notes.Get.
| Parameter | Type | Description |
|---|---|---|
$filter | NotesSearchFilter | — |
Returns: array
count(NotesSearchFilter $filter): int
Description: Calls notes.Count.
| Parameter | Type | Description |
|---|---|---|
$filter | NotesSearchFilter | — |
Returns: int
save(int $showId, string $text, ?int $episodeId = null): Note
Description: Calls notes.Save.
| Parameter | Type | Description |
|---|---|---|
$showId | int | — |
$text | string | — |
$episodeId | ?int | — Default: null. |
Returns: Note
delete(int $noteId): void
Description: Calls notes.Delete.
| Parameter | Type | Description |
|---|---|---|
$noteId | int | — |
Returns: void
restore(int $noteId): void
Description: Calls notes.Restore.
| Parameter | Type | Description |
|---|---|---|
$noteId | int | — |
Returns: void