SegmentationServiceDecorator
SegmentationServiceDecorator.php
:
21
Abstract
Implements
SegmentationServiceInterface
Properties¶
$innerService
¶
SegmentationServiceDecorator.php
:
23
|
|
|
Methods¶
__construct()
¶
SegmentationServiceDecorator.php
:
25
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $innerService | SegmentationServiceInterface | - | - |
assignUserToSegment()
¶
SegmentationServiceDecorator.php
:
116
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
countSegmentsPerGroup()
¶
SegmentationServiceDecorator.php
:
135
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $sources | array<string|int, mixed> | [] | - |
| $searchPhrase | string|null | null | - |
| $metadataFilters | array<string|int, mixed> | [] | - |
Return values
array<int, int>
segment counts keyed by segment group id, ordered by group name
countSegmentsPerSource()
¶
SegmentationServiceDecorator.php
:
143
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroupIds | array<string|int, mixed> | [] | - |
| $searchPhrase | string|null | null | - |
| $metadataFilters | array<string|int, mixed> | [] | - |
Return values
array<string, int>
createSegment()
¶
SegmentationServiceDecorator.php
:
45
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | SegmentCreateStruct | - | - |
Return values
createSegmentGroup()
¶
SegmentationServiceDecorator.php
:
77
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | SegmentGroupCreateStruct | - | - |
Return values
findSegments()
¶
SegmentationServiceDecorator.php
:
130
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $query | SegmentQuery|null | null | - |
Return values
isUserAssignedToSegment()
¶
SegmentationServiceDecorator.php
:
109
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
Return values
bool
loadSegment()
¶
SegmentationServiceDecorator.php
:
30
For remote API or external usage rely on {@see loadSegmentByIdentifier()} method instead.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentId | int | - | - |
Return values
loadSegmentByIdentifier()
¶
SegmentationServiceDecorator.php
:
40
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
loadSegmentGroup()
¶
SegmentationServiceDecorator.php
:
67
For remote API or external usage rely on {@see loadSegmentGroupByIdentifier()} method instead.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroupId | int | - | - |
Return values
loadSegmentGroupByIdentifier()
¶
SegmentationServiceDecorator.php
:
72
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
loadSegmentGroups()
¶
SegmentationServiceDecorator.php
:
94
|
|
|
Return values
array<string|int, SegmentGroup>
loadSegments()
¶
SegmentationServiceDecorator.php
:
35
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentIds | array<string|int, mixed> | - | - |
Return values
array<int, Segment>
loadSegmentsAssignedToCurrentUser()
¶
SegmentationServiceDecorator.php
:
104
|
|
|
Return values
array<string|int, Segment>
loadSegmentsAssignedToGroup()
¶
SegmentationServiceDecorator.php
:
62
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
Return values
array<string|int, Segment>
loadSegmentsAssignedToUser()
¶
SegmentationServiceDecorator.php
:
99
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
Return values
array<string|int, Segment>
removeSegment()
¶
SegmentationServiceDecorator.php
:
57
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segment | Segment | - | - |
removeSegmentGroup()
¶
SegmentationServiceDecorator.php
:
89
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
unassignUserFromSegment()
¶
SegmentationServiceDecorator.php
:
123
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
updateSegment()
¶
SegmentationServiceDecorator.php
:
50
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segment | Segment | - | - |
| $updateStruct | SegmentUpdateStruct | - | - |
Return values
updateSegmentGroup()
¶
SegmentationServiceDecorator.php
:
82
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
| $updateStruct | SegmentGroupUpdateStruct | - | - |