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

Trait JQGridManagerTrait
Class BlockElementManagerTrait. Handles reading data for block elements

Methods

mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

No description

mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

No description

array
getEntitiesForBlockElementsExtension(array $ids)

Get entities from database by ids

array
getEntityNamesForIds(array $ids)

Get id and name of entity

__construct(MyTeamRepository $repository, MyTeamContainer $container)

No description

array
getTeamForSort(int $id)

Find team(as array) for provided id

saveOrderForTeam(int $id, array $users)

Save new order for users in team

editTeam(stdClass $team, array $userAgg)

No description

mixed
saveTeam(stdClass $teamObj, array $userAgg)

Persist new team

getUserReference(int $id)

Retrieve user reference for provided id

getImageReference(int $id)

Retrieve image reference for provided id

bool
removeTeams(array $arrayOfTeams)

No description

array
getAllUsers(array $selectedUsers)

No description

array
getUsers(String $searchedValue, int $page, int $offset, array $selectedUsers)

No description

array
getAllUsersInArray(array $arrayOfUsers)

Find all user that match provided ids

array
getItemForEdit(int $teamId)

Find one team(with relationships) for provided id

string
getAllMyTeamsFromCache(string $theme)

Set all teams from cache

array
getAllTeamsForFrontend()

Find id, name and slug for all teams

mixed
setAllMyTeamsToCache(string $theme)

Set all teams from cache

array
getTeamForFrontend(string $slug)

Find one team(with relationships) for provided id

dispatchMyTeamCacheSignal(mixed $theme)

Dispatch event to set teams to cache on terminate

dispatchMyTeamFooterCacheSignal()

Dispatch event to set footer to cache

array
getTeamsForBlock(array $ids)

Find teams that match provided ids

deleteCacheResults()

Delete all cached results

Details

in JQGridManagerTrait at line 26
mixed searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

array $searchParams
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 40
mixed findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)

Parameters

int $page
int $offset
array $sortParams
array $additionalParams
JQGridWrapper $jqGridWrapper

Return Value

mixed

in JQGridManagerTrait at line 53
mixed getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)

Parameters

array|null $searchParams
array|null $sortParams
array|null $additionalParams
JQGridWrapper|null $jqGridWrapper

Return Value

mixed

array getEntitiesForBlockElementsExtension(array $ids)

Get entities from database by ids

Parameters

array $ids

Return Value

array

array getEntityNamesForIds(array $ids)

Get id and name of entity

Parameters

array $ids

Return Value

array

at line 45
__construct(MyTeamRepository $repository, MyTeamContainer $container)

Parameters

MyTeamRepository $repository
MyTeamContainer $container

at line 58
array getTeamForSort(int $id)

Find team(as array) for provided id

Parameters

int $id

Return Value

array

at line 71
saveOrderForTeam(int $id, array $users)

Save new order for users in team

Parameters

int $id
array $users

Exceptions

NonUniqueResultException

at line 97
MyTeam editTeam(stdClass $team, array $userAgg)

Parameters

stdClass $team
array $userAgg

Return Value

MyTeam

Exceptions

NonUniqueResultException

at line 147
mixed saveTeam(stdClass $teamObj, array $userAgg)

Persist new team

Parameters

stdClass $teamObj
array $userAgg

Return Value

mixed

at line 183
User getUserReference(int $id)

Retrieve user reference for provided id

Parameters

int $id

Return Value

User

at line 195
Image getImageReference(int $id)

Retrieve image reference for provided id

Parameters

int $id

Return Value

Image

at line 205
bool removeTeams(array $arrayOfTeams)

Parameters

array $arrayOfTeams

Return Value

bool

at line 215
array getAllUsers(array $selectedUsers)

Parameters

array $selectedUsers

Return Value

array

at line 228
array getUsers(String $searchedValue, int $page, int $offset, array $selectedUsers)

Parameters

String $searchedValue
int $page
int $offset
array $selectedUsers

Return Value

array

at line 240
array getAllUsersInArray(array $arrayOfUsers)

Find all user that match provided ids

Parameters

array $arrayOfUsers

Return Value

array

at line 254
array getItemForEdit(int $teamId)

Find one team(with relationships) for provided id

Parameters

int $teamId

Return Value

array

Exceptions

NonUniqueResultException

at line 268
string getAllMyTeamsFromCache(string $theme)

Set all teams from cache

Parameters

string $theme

Return Value

string

Exceptions

Error

at line 283
array getAllTeamsForFrontend()

Find id, name and slug for all teams

Return Value

array

at line 297
mixed setAllMyTeamsToCache(string $theme)

Set all teams from cache

Parameters

string $theme

Return Value

mixed

Exceptions

Error

at line 320
array getTeamForFrontend(string $slug)

Find one team(with relationships) for provided id

Parameters

string $slug

Return Value

array

Exceptions

NonUniqueResultException

at line 330
dispatchMyTeamCacheSignal(mixed $theme)

Dispatch event to set teams to cache on terminate

Parameters

mixed $theme

at line 338
dispatchMyTeamFooterCacheSignal()

Dispatch event to set footer to cache

at line 350
array getTeamsForBlock(array $ids)

Find teams that match provided ids

Parameters

array $ids

Return Value

array

at line 358
deleteCacheResults()

Delete all cached results