Methods
|
public assignUserToSegment(User $user, Segment $segment) : void
|
Parameters
Name |
Type |
Default value |
Description |
$user
|
User
|
-
|
-
|
$segment
|
Segment
|
-
|
-
|
|
public createSegment(SegmentCreateStruct $createStruct) : Segment
|
Parameters
Name |
Type |
Default value |
Description |
$createStruct
|
SegmentCreateStruct
|
-
|
-
|
Return values
Segment
|
public createSegmentGroup(SegmentGroupCreateStruct $createStruct) : SegmentGroup
|
Parameters
Name |
Type |
Default value |
Description |
$createStruct
|
SegmentGroupCreateStruct
|
-
|
-
|
Return values
SegmentGroup
|
public isUserAssignedToSegment(User $user, Segment $segment) : bool
|
Parameters
Name |
Type |
Default value |
Description |
$user
|
User
|
-
|
-
|
$segment
|
Segment
|
-
|
-
|
Return values
bool
|
public loadSegment(int $segmentId) : Segment
|
Parameters
Name |
Type |
Default value |
Description |
$segmentId
|
int
|
-
|
-
|
Return values
Segment
Tags
-
Deprecated
-
Deprecated since Ibexa DXP 3.3 and will be dropped in 5.0. Use loadSegmentByIdentifier method instead.
|
public loadSegmentByIdentifier(string $identifier) : Segment
|
Parameters
Name |
Type |
Default value |
Description |
$identifier
|
string
|
-
|
-
|
Return values
Segment
|
public loadSegmentGroup(int $segmentGroupId) : SegmentGroup
|
Parameters
Name |
Type |
Default value |
Description |
$segmentGroupId
|
int
|
-
|
-
|
Return values
SegmentGroup
Tags
-
Deprecated
-
Deprecated since Ibexa DXP 3.3 and will be dropped in 5.0. Use loadSegmentGroupByIdentifier method instead.
|
public loadSegmentGroupByIdentifier(string $identifier) : SegmentGroup
|
Parameters
Name |
Type |
Default value |
Description |
$identifier
|
string
|
-
|
-
|
Return values
SegmentGroup
|
public loadSegmentGroups() : array<string|int, SegmentGroup>
|
Return values
array<string|int, SegmentGroup>
|
public loadSegmentsAssignedToCurrentUser() : array<string|int, Segment>
|
Return values
array<string|int, Segment>
|
public loadSegmentsAssignedToGroup(SegmentGroup $segmentGroup) : array<string|int, Segment>
|
Parameters
Name |
Type |
Default value |
Description |
$segmentGroup
|
SegmentGroup
|
-
|
-
|
Return values
array<string|int, Segment>
|
public loadSegmentsAssignedToUser(User $user) : array<string|int, Segment>
|
Parameters
Name |
Type |
Default value |
Description |
$user
|
User
|
-
|
-
|
Return values
array<string|int, Segment>
|
public removeSegment(Segment $segment) : void
|
Parameters
Name |
Type |
Default value |
Description |
$segment
|
Segment
|
-
|
-
|
|
public removeSegmentGroup(SegmentGroup $segmentGroup) : void
|
Parameters
Name |
Type |
Default value |
Description |
$segmentGroup
|
SegmentGroup
|
-
|
-
|
|
public unassignUserFromSegment(User $user, Segment $segment) : void
|
Parameters
Name |
Type |
Default value |
Description |
$user
|
User
|
-
|
-
|
$segment
|
Segment
|
-
|
-
|
|
public updateSegment(Segment $segment, SegmentUpdateStruct $updateStruct) : Segment
|
Parameters
Name |
Type |
Default value |
Description |
$segment
|
Segment
|
-
|
-
|
$updateStruct
|
SegmentUpdateStruct
|
-
|
-
|
Return values
Segment
|
public updateSegmentGroup(SegmentGroup $segmentGroup, SegmentGroupUpdateStruct $updateStruct) : SegmentGroup
|
Parameters
Name |
Type |
Default value |
Description |
$segmentGroup
|
SegmentGroup
|
-
|
-
|
$updateStruct
|
SegmentGroupUpdateStruct
|
-
|
-
|
Return values
SegmentGroup