SegmentationServiceInterface
SegmentationServiceInterface.php
:
19
Interface
Methods¶
assignUserToSegment()
¶
SegmentationServiceInterface.php
:
69
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$user | User | - | - |
$segment | Segment | - | - |
createSegment()
¶
SegmentationServiceInterface.php
:
28
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$createStruct | SegmentCreateStruct | - | - |
Return values
Segment
createSegmentGroup()
¶
SegmentationServiceInterface.php
:
46
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$createStruct | SegmentGroupCreateStruct | - | - |
Return values
SegmentGroup
isUserAssignedToSegment()
¶
SegmentationServiceInterface.php
:
67
|
|
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
:
26
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$identifier | string | - | - |
Return values
Segment
loadSegmentGroup()
¶
SegmentationServiceInterface.php
:
42
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
:
44
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$identifier | string | - | - |
Return values
SegmentGroup
loadSegmentGroups()
¶
SegmentationServiceInterface.php
:
55
|
|
Return values
array<string|int, SegmentGroup>
loadSegmentsAssignedToCurrentUser()
¶
SegmentationServiceInterface.php
:
65
|
|
Return values
array<string|int, Segment>
loadSegmentsAssignedToGroup()
¶
SegmentationServiceInterface.php
:
37
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$segmentGroup | SegmentGroup | - | - |
Return values
array<string|int, Segment>
loadSegmentsAssignedToUser()
¶
SegmentationServiceInterface.php
:
60
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$user | User | - | - |
Return values
array<string|int, Segment>
removeSegment()
¶
SegmentationServiceInterface.php
:
32
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$segment | Segment | - | - |
removeSegmentGroup()
¶
SegmentationServiceInterface.php
:
50
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$segmentGroup | SegmentGroup | - | - |
unassignUserFromSegment()
¶
SegmentationServiceInterface.php
:
71
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$user | User | - | - |
$segment | Segment | - | - |
updateSegment()
¶
SegmentationServiceInterface.php
:
30
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$segment | Segment | - | - |
$updateStruct | SegmentUpdateStruct | - | - |
Return values
Segment
updateSegmentGroup()
¶
SegmentationServiceInterface.php
:
48
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$segmentGroup | SegmentGroup | - | - |
$updateStruct | SegmentGroupUpdateStruct | - | - |
Return values
SegmentGroup