EntitySelection implements RoleSelectionManager
AbstractYes
Table of Contents
Interfaces
Methods
- __construct() : mixed
- create() : static|null
- getGroupCode() : string|null
- getMenuId() : string|null
- getSliderBackUrl() : Uri|null
- getUrl() : Uri|null
- hasPermissionsToEditRights() : bool
- isSuitableCategoryId() : bool
- isSuitableEntity() : bool
- needShowRoleWithoutRights() : bool
- preSaveChecks() : Result
- prohibitToSaveRoleWithoutAtLeastOneRight() : bool
Methods
__construct()
public
__construct(int $entityTypeId[, int|null $categoryId = null ]) : mixed
Parameters
- $entityTypeId : int
- $categoryId : int|null = null
create()
public
final static create(CreateSettingsDto|null $settingsDto) : static|null
Parameters
- $settingsDto : CreateSettingsDto|null
Return values
static|nullgetGroupCode()
public
getGroupCode() : string|null
Return values
string|nullgetMenuId()
public
getMenuId() : string|null
Return values
string|nullgetSliderBackUrl()
public
getSliderBackUrl() : Uri|null
Return values
Uri|nullgetUrl()
public
abstract getUrl() : Uri|null
Return values
Uri|nullhasPermissionsToEditRights()
public
hasPermissionsToEditRights() : bool
Return values
boolisSuitableCategoryId()
public
static isSuitableCategoryId(Factory $factory[, int|null $categoryId = null ]) : bool
Parameters
- $factory : Factory
- $categoryId : int|null = null
Return values
boolisSuitableEntity()
public
static isSuitableEntity(int $entityTypeId[, int|null $categoryId = null ]) : bool
Parameters
- $entityTypeId : int
- $categoryId : int|null = null
Return values
boolneedShowRoleWithoutRights()
public
needShowRoleWithoutRights() : bool
Return values
boolpreSaveChecks()
public
preSaveChecks(array<string|int, mixed> $userGroups) : Result
Parameters
- $userGroups : array<string|int, mixed>
Return values
ResultprohibitToSaveRoleWithoutAtLeastOneRight()
public
prohibitToSaveRoleWithoutAtLeastOneRight() : bool