PromptSync extends BaseSync uses TranslateTrait
Table of Contents
Methods
- deleteByCodes() : void
- sync() : void
- Synchronization table with items by filter
- updatePromptByFields() : 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::Partitional ]) : void
Parameters
- $items : array<string|int, mixed>
- $filter : array<string|int, mixed> = []
- $mode : SyncMode = SyncMode::Partitional
Tags
updatePromptByFields()
public
updatePromptByFields(array<string|int, mixed> $fields[, int $editorId = 0 ][, array<string|int, RuleDto>|null $rules = null ][, bool $needChangeAuthor = false ]) : AddResult|UpdateResult
Parameters
- $fields : array<string|int, mixed>
- $editorId : int = 0
- $rules : array<string|int, RuleDto>|null = null
- $needChangeAuthor : bool = false