SegmentationServiceInterface
SegmentationServiceInterface.php
:
22
Interface
Methods¶
assignUserToSegment()
¶
SegmentationServiceInterface.php
:
86
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
Tags
createSegment()
¶
SegmentationServiceInterface.php
:
31
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | SegmentCreateStruct | - | - |
Return values
Segment
createSegmentGroup()
¶
SegmentationServiceInterface.php
:
52
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | SegmentGroupCreateStruct | - | - |
Return values
SegmentGroup
isUserAssignedToSegment()
¶
SegmentationServiceInterface.php
:
76
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
Return values
bool
loadSegment()
¶
SegmentationServiceInterface.php
:
27
For remote API or external usage rely on {@see loadSegmentByIdentifier()} method instead.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentId | int | - | - |
Return values
Segment
loadSegmentByIdentifier()
¶
SegmentationServiceInterface.php
:
29
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
Segment
loadSegmentGroup()
¶
SegmentationServiceInterface.php
:
48
For remote API or external usage rely on {@see loadSegmentGroupByIdentifier()} method instead.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroupId | int | - | - |
Return values
SegmentGroup
loadSegmentGroupByIdentifier()
¶
SegmentationServiceInterface.php
:
50
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
SegmentGroup
loadSegmentGroups()
¶
SegmentationServiceInterface.php
:
64
|
|
|
Return values
array<string|int, SegmentGroup>
loadSegmentsAssignedToCurrentUser()
¶
SegmentationServiceInterface.php
:
74
|
|
|
Return values
array<string|int, Segment>
loadSegmentsAssignedToGroup()
¶
SegmentationServiceInterface.php
:
43
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
Return values
array<string|int, Segment>
loadSegmentsAssignedToUser()
¶
SegmentationServiceInterface.php
:
69
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
Return values
array<string|int, Segment>
removeSegment()
¶
SegmentationServiceInterface.php
:
38
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segment | Segment | - | - |
removeSegmentGroup()
¶
SegmentationServiceInterface.php
:
59
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
unassignUserFromSegment()
¶
SegmentationServiceInterface.php
:
91
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
updateSegment()
¶
SegmentationServiceInterface.php
:
33
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segment | Segment | - | - |
| $updateStruct | SegmentUpdateStruct | - | - |
Return values
Segment
updateSegmentGroup()
¶
SegmentationServiceInterface.php
:
54
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
| $updateStruct | SegmentGroupUpdateStruct | - | - |
Return values
SegmentGroup