RoleSync extends BaseSync uses TranslateTrait
Table of Contents
Methods
- deleteByCodes() : void
- sync() : void
- Synchronization table with items by filter
- updateRoleByFields() : AddResult|UpdateResult
Methods
deleteByCodes()
public
deleteByCodes(array<string|int, mixed> $codes) : void
Parameters
- $codes : array<string|int, mixed>
sync()
Synchronization table with items by filter
public
sync(array<string|int, mixed> $items[, array<string|int, mixed> $filter = [] ][, SyncMode $mode = SyncMode::Standard ]) : void
Parameters
- $items : array<string|int, mixed>
- $filter : array<string|int, mixed> = []
- $mode : SyncMode = SyncMode::Standard
Tags
updateRoleByFields()
public
updateRoleByFields(array<string|int, mixed> $fields[, int $editorId = 0 ][, array<string|int, RuleDto>|null $rules = null ]) : AddResult|UpdateResult
Parameters
- $fields : array<string|int, mixed>
- $editorId : int = 0
- $rules : array<string|int, RuleDto>|null = null