Table of Contents
Methods
-
__construct()
: mixed
-
accessOnPrompt()
: array{: bool, : int|null}
-
accessOnPrompts()
: array<string|int, mixed>
-
addInFavoriteList()
: void
-
create()
: AddResult
-
deleteInFavoriteList()
: void
-
deleteSharingForChange()
: void
-
findByPromptId()
: array<string|int, int>
-
getAccessCodesForPrompt()
: array<string|int, mixed>
-
getAccessiblePrompts()
: FavoritePromptsDto
-
getProjectAccessCodes()
: array<string|int, mixed>
-
getShareType()
: ShareType
-
getUsersIdsFromListRawCodes()
: array<string|int, int>
-
prepareAccessCodes()
: array<string|int, mixed>
__construct()
public
__construct(PromptService $promptService, ShareRepository $shareRepository, OwnerService $ownerService, OwnerOptionService $ownerOptionService, PromptDisplayRuleService $promptDisplayRuleService) : mixed
Parameters
-
$promptService
: PromptService
-
-
$shareRepository
: ShareRepository
-
-
$ownerService
: OwnerService
-
-
$ownerOptionService
: OwnerOptionService
-
-
$promptDisplayRuleService
: PromptDisplayRuleService
-
accessOnPrompt()
public
accessOnPrompt(int $promptId, int $userId) : array{: bool, : int|null}
Parameters
-
$promptId
: int
-
-
$userId
: int
-
Return values
array{: bool, : int|null}
accessOnPrompts()
public
accessOnPrompts(array<string|int, mixed> $promptIds, int $userId) : array<string|int, mixed>
Parameters
-
$promptIds
: array<string|int, mixed>
-
-
$userId
: int
-
Return values
array<string|int, mixed>
addInFavoriteList()
public
addInFavoriteList(int $userId, int $promptId) : void
Parameters
-
$userId
: int
-
-
$promptId
: int
-
create()
public
create(CreateDto $requestDTO) : AddResult
Parameters
-
$requestDTO
: CreateDto
-
-
throws
-
SystemException
-
throws
-
ArgumentException
deleteInFavoriteList()
public
deleteInFavoriteList(int $userId, int $promptId) : void
Parameters
-
$userId
: int
-
-
$promptId
: int
-
deleteSharingForChange()
public
deleteSharingForChange(int $promptId) : void
Parameters
-
$promptId
: int
-
findByPromptId()
public
findByPromptId(int $promptId) : array<string|int, int>
Parameters
-
$promptId
: int
-
-
throws
-
ArgumentException
-
throws
-
SystemException
-
throws
-
ObjectPropertyException
Return values
array<string|int, int>
getAccessCodesForPrompt()
public
getAccessCodesForPrompt(int $promptId) : array<string|int, mixed>
Parameters
-
$promptId
: int
-
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
ArgumentException
Return values
array<string|int, mixed>
getAccessiblePrompts()
public
getAccessiblePrompts(int $userId, string $lang, string $category) : FavoritePromptsDto
Parameters
-
$userId
: int
-
-
$lang
: string
-
-
$category
: string
-
getProjectAccessCodes()
public
getProjectAccessCodes(array<string|int, mixed> $projectIds) : array<string|int, mixed>
Parameters
-
$projectIds
: array<string|int, mixed>
-
Return values
array<string|int, mixed>
getShareType()
public
getShareType(array<string|int, mixed> $accessCodes, int $userIdCreator) : ShareType
Parameters
-
$accessCodes
: array<string|int, mixed>
-
-
$userIdCreator
: int
-
getUsersIdsFromListRawCodes()
public
getUsersIdsFromListRawCodes(array<string|int, mixed> $accessCodesRaw) : array<string|int, int>
Parameters
-
$accessCodesRaw
: array<string|int, mixed>
-
-
throws
-
ParameterNotFoundException
Return values
array<string|int, int>
prepareAccessCodes()
public
prepareAccessCodes(array<string|int, mixed> $accessCodes, int $userIdCreator) : array<string|int, mixed>
Parameters
-
$accessCodes
: array<string|int, mixed>
-
-
$userIdCreator
: int
-
Return values
array<string|int, mixed>