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
:
110
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
countSegmentsPerGroup()
¶
SegmentationServiceDecorator.php
:
125
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $sources | array<string|int, mixed> | [] | - |
| $searchPhrase | string|null | null | - |
Return values
array<int, int>
segment counts keyed by segment group id, ordered by group name
countSegmentsPerSource()
¶
SegmentationServiceDecorator.php
:
130
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroupIds | array<string|int, mixed> | [] | - |
| $searchPhrase | string|null | null | - |
Return values
array<string, int>
createSegment()
¶
SegmentationServiceDecorator.php
:
45
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | SegmentCreateStruct | - | - |
Return values
Segment
createSegmentGroup()
¶
SegmentationServiceDecorator.php
:
75
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | SegmentGroupCreateStruct | - | - |
Return values
SegmentGroup
findSegments()
¶
SegmentationServiceDecorator.php
:
120
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $query | SegmentQuery|null | null | - |
Return values
isUserAssignedToSegment()
¶
SegmentationServiceDecorator.php
:
105
|
|
|
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
Segment
loadSegmentByIdentifier()
¶
SegmentationServiceDecorator.php
:
40
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
Segment
loadSegmentGroup()
¶
SegmentationServiceDecorator.php
:
65
For remote API or external usage rely on {@see loadSegmentGroupByIdentifier()} method instead.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroupId | int | - | - |
Return values
SegmentGroup
loadSegmentGroupByIdentifier()
¶
SegmentationServiceDecorator.php
:
70
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
SegmentGroup
loadSegmentGroups()
¶
SegmentationServiceDecorator.php
:
90
|
|
|
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
:
100
|
|
|
Return values
array<string|int, Segment>
loadSegmentsAssignedToGroup()
¶
SegmentationServiceDecorator.php
:
60
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
Return values
array<string|int, Segment>
loadSegmentsAssignedToUser()
¶
SegmentationServiceDecorator.php
:
95
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
Return values
array<string|int, Segment>
removeSegment()
¶
SegmentationServiceDecorator.php
:
55
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segment | Segment | - | - |
removeSegmentGroup()
¶
SegmentationServiceDecorator.php
:
85
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
unassignUserFromSegment()
¶
SegmentationServiceDecorator.php
:
115
|
|
|
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
Segment
updateSegmentGroup()
¶
SegmentationServiceDecorator.php
:
80
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
| $updateStruct | SegmentGroupUpdateStruct | - | - |
Return values
SegmentGroup