SegmentationServiceInterface
SegmentationServiceInterface.php
:
19
Interface
Methods¶
assignUserToSegment()
¶
SegmentationServiceInterface.php
:
81
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
Tags
createSegment()
¶
SegmentationServiceInterface.php
:
35
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | SegmentCreateStruct | - | - |
Return values
Segment
createSegmentGroup()
¶
SegmentationServiceInterface.php
:
53
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $createStruct | SegmentGroupCreateStruct | - | - |
Return values
SegmentGroup
isUserAssignedToSegment()
¶
SegmentationServiceInterface.php
:
74
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
Return values
bool
loadSegment()
¶
SegmentationServiceInterface.php
:
24
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
:
33
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
Segment
loadSegmentGroup()
¶
SegmentationServiceInterface.php
:
49
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
:
51
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
SegmentGroup
loadSegmentGroups()
¶
SegmentationServiceInterface.php
:
62
|
|
|
Return values
array<string|int, SegmentGroup>
loadSegments()
¶
SegmentationServiceInterface.php
:
31
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentIds | array<int, int> | - | - |
Return values
array<int, Segment>
loadSegmentsAssignedToCurrentUser()
¶
SegmentationServiceInterface.php
:
72
|
|
|
Return values
array<string|int, Segment>
loadSegmentsAssignedToGroup()
¶
SegmentationServiceInterface.php
:
44
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
Return values
array<string|int, Segment>
loadSegmentsAssignedToUser()
¶
SegmentationServiceInterface.php
:
67
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
Return values
array<string|int, Segment>
removeSegment()
¶
SegmentationServiceInterface.php
:
39
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segment | Segment | - | - |
removeSegmentGroup()
¶
SegmentationServiceInterface.php
:
57
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
unassignUserFromSegment()
¶
SegmentationServiceInterface.php
:
83
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $user | User | - | - |
| $segment | Segment | - | - |
updateSegment()
¶
SegmentationServiceInterface.php
:
37
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segment | Segment | - | - |
| $updateStruct | SegmentUpdateStruct | - | - |
Return values
Segment
updateSegmentGroup()
¶
SegmentationServiceInterface.php
:
55
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $segmentGroup | SegmentGroup | - | - |
| $updateStruct | SegmentGroupUpdateStruct | - | - |
Return values
SegmentGroup