SegmentationServiceInterface
SegmentationServiceInterface.php
:
25
Interface
Methods¶
assignUserToSegment()
¶
SegmentationServiceInterface.php
:
96
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
Tags
countSegmentsPerGroup()
¶
SegmentationServiceInterface.php
:
114
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $sources | array<string|int, string> | [] | - |
| $searchPhrase | string|null | null | - |
| $metadataFilters | array<int, SegmentMetadataFilter> | [] | - |
Return values
array<int, int>
segment counts keyed by segment group id, ordered by group name
countSegmentsPerSource()
¶
SegmentationServiceInterface.php
:
126
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroupIds | array<string|int, int> | [] | - |
| $searchPhrase | string|null | null | - |
| $metadataFilters | array<int, SegmentMetadataFilter> | [] | - |
Return values
array<string, int>
createSegment()
¶
SegmentationServiceInterface.php
:
41
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | SegmentCreateStruct | - | - |
Return values
createSegmentGroup()
¶
SegmentationServiceInterface.php
:
62
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | SegmentGroupCreateStruct | - | - |
Return values
findSegments()
¶
SegmentationServiceInterface.php
:
106
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $query | SegmentQuery|null | null | - |
Return values
isUserAssignedToSegment()
¶
SegmentationServiceInterface.php
:
86
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
Return values
bool
loadSegment()
¶
SegmentationServiceInterface.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()
¶
SegmentationServiceInterface.php
:
39
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
loadSegmentGroup()
¶
SegmentationServiceInterface.php
:
58
For remote API or external usage rely on {@see loadSegmentGroupByIdentifier()} method instead.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroupId | int | - | - |
Return values
loadSegmentGroupByIdentifier()
¶
SegmentationServiceInterface.php
:
60
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
loadSegmentGroups()
¶
SegmentationServiceInterface.php
:
74
|
|
|
Return values
array<string|int, SegmentGroup>
loadSegments()
¶
SegmentationServiceInterface.php
:
37
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentIds | array<int, int> | - | - |
Return values
array<int, Segment>
loadSegmentsAssignedToCurrentUser()
¶
SegmentationServiceInterface.php
:
84
|
|
|
Return values
array<string|int, Segment>
loadSegmentsAssignedToGroup()
¶
SegmentationServiceInterface.php
:
53
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
Return values
array<string|int, Segment>
loadSegmentsAssignedToUser()
¶
SegmentationServiceInterface.php
:
79
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
Return values
array<string|int, Segment>
removeSegment()
¶
SegmentationServiceInterface.php
:
48
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segment | Segment | - | - |
removeSegmentGroup()
¶
SegmentationServiceInterface.php
:
69
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
unassignUserFromSegment()
¶
SegmentationServiceInterface.php
:
101
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
updateSegment()
¶
SegmentationServiceInterface.php
:
43
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segment | Segment | - | - |
| $updateStruct | SegmentUpdateStruct | - | - |
Return values
updateSegmentGroup()
¶
SegmentationServiceInterface.php
:
64
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
| $updateStruct | SegmentGroupUpdateStruct | - | - |