FavoritePromptsDto
Table of Contents
Properties
- $favoritePrompts : array<string|int, mixed>
- $hasRowOption : bool
- $needUpdateSortingInFavoriteList : bool
- $promptsSystem : array<string|int, mixed>
- $promptsUsers : array<string|int, mixed>
- $sortingList : array<string|int, mixed>
- $userId : int
Methods
- __construct() : mixed
Properties
$favoritePrompts
public
array<string|int, mixed>
$favoritePrompts
$hasRowOption
public
bool
$hasRowOption
$needUpdateSortingInFavoriteList
public
bool
$needUpdateSortingInFavoriteList
$promptsSystem
public
array<string|int, mixed>
$promptsSystem
$promptsUsers
public
array<string|int, mixed>
$promptsUsers
$sortingList
public
array<string|int, mixed>
$sortingList
$userId
public
int
$userId
Methods
__construct()
public
__construct(int $userId, bool $needUpdateSortingInFavoriteList, bool $hasRowOption, array<string|int, int> $sortingList, array<string|int, mixed> $promptsUsers, array<string|int, mixed> $promptsSystem, array<string|int, mixed> $favoritePrompts) : mixed
Parameters
- $userId : int
- $needUpdateSortingInFavoriteList : bool
-
Flag indicating that sorting information in favorites should be updated
- $hasRowOption : bool
-
Flag indicating that there is a line in db for writing options
- $sortingList : array<string|int, int>
-
List of prompts for sorting
- $promptsUsers : array<string|int, mixed>
-
List of all users available prompts
- $promptsSystem : array<string|int, mixed>
-
List of all systems available prompts
- $favoritePrompts : array<string|int, mixed>
-
List of favorite prompts