MyTeamManager
class MyTeamManager implements BasicEntityManagerInterface
Class MyTeamManager is injected as empire_my_team_plugin.my_team_manager service. MyTeamManager handles the logic for managed entity.
Traits
Methods
No description
No description
No description
Get entities from database by ids
Find team(as array) for provided id
Save new order for users in team
Retrieve user reference for provided id
Retrieve image reference for provided id
No description
No description
No description
Find all user that match provided ids
Find one team(with relationships) for provided id
Set all teams from cache
Find id, name and slug for all teams
Set all teams from cache
Find one team(with relationships) for provided id
Dispatch event to set teams to cache on terminate
Dispatch event to set footer to cache
Find teams that match provided ids
Delete all cached results
Details
in JQGridManagerTrait at line 26
mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 40
mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 53
mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)
in BlockElementManagerTrait at line 28
array
getEntitiesForBlockElementsExtension(array $ids)
Get entities from database by ids
in BlockElementManagerTrait at line 40
array
getEntityNamesForIds(array $ids)
Get id and name of entity
at line 45
__construct(MyTeamRepository $repository, MyTeamContainer $container)
at line 58
array
getTeamForSort(int $id)
Find team(as array) for provided id
at line 71
saveOrderForTeam(int $id, array $users)
Save new order for users in team
at line 147
mixed
saveTeam(stdClass $teamObj, array $userAgg)
Persist new team
at line 183
User
getUserReference(int $id)
Retrieve user reference for provided id
at line 195
Image
getImageReference(int $id)
Retrieve image reference for provided id
at line 205
bool
removeTeams(array $arrayOfTeams)
at line 215
array
getAllUsers(array $selectedUsers)
at line 228
array
getUsers(String $searchedValue, int $page, int $offset, array $selectedUsers)
at line 240
array
getAllUsersInArray(array $arrayOfUsers)
Find all user that match provided ids
at line 254
array
getItemForEdit(int $teamId)
Find one team(with relationships) for provided id
at line 268
string
getAllMyTeamsFromCache(string $theme)
Set all teams from cache
at line 283
array
getAllTeamsForFrontend()
Find id, name and slug for all teams
at line 297
mixed
setAllMyTeamsToCache(string $theme)
Set all teams from cache
at line 320
array
getTeamForFrontend(string $slug)
Find one team(with relationships) for provided id
at line 330
dispatchMyTeamCacheSignal(mixed $theme)
Dispatch event to set teams to cache on terminate
at line 338
dispatchMyTeamFooterCacheSignal()
Dispatch event to set footer to cache
at line 350
array
getTeamsForBlock(array $ids)
Find teams that match provided ids
at line 358
deleteCacheResults()
Delete all cached results