Copied!

BeforeUpdateSegmentEvent

BeforeUpdateSegmentEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeUpdateSegmentEvent.php : 24
public __construct(Segment $segment, SegmentUpdateStruct $updateStruct[, Segment|null $segmentResult = null ])

Parameters

Name Type Default value Description
$segment Segment - -
$updateStruct SegmentUpdateStruct - -
$segmentResult Segment|null null -

publicgetSegment()

BeforeUpdateSegmentEvent.php : 31
public getSegment() : Segment

Return values

Segment

publicgetSegmentResult()

BeforeUpdateSegmentEvent.php : 41
public getSegmentResult() : Segment

Return values

Segment

publicgetUpdateStruct()

BeforeUpdateSegmentEvent.php : 36
public getUpdateStruct() : SegmentUpdateStruct

Return values

SegmentUpdateStruct

publichasSegmentResult()

BeforeUpdateSegmentEvent.php : 57
public hasSegmentResult() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetSegmentResult()

BeforeUpdateSegmentEvent.php : 52
public setSegmentResult(Segment|null $segmentResult) : void

Parameters

Name Type Default value Description
$segmentResult Segment|null - -

publicstopPropagation()

Event.php : 50

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().