Blesta Source Documentation

Event extends AbstractEvent

An Event

Table of Contents

Properties

$name
$params
$returnValue

Methods

__construct() Creates a new event
getName() Retrieves the name of the event
getParams() Retrieves the parameters set for this event, if any
getReturnValue() Returns the return value set for this event
setParams() Sets parameters for this event
setReturnValue() Sets the return value for this event
Properties

$params

protected array<string|int, mixed>|null $params

An array of parameters held by this event

$returnValue

protected mixed $returnValue

The return value (if any) from the event listener

Methods

__construct()

Creates a new event

public __construct(string $name[, array<string|int, mixed> $params = null ]) : mixed
Parameters
$name : string

The name of the event

$params : array<string|int, mixed> = null

An array of parameters to be held by this event (optional)

getName()

Retrieves the name of the event

public getName() : string
Return values
string

The name of the event

getParams()

Retrieves the parameters set for this event, if any

public getParams() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

An array of set parameters, otherwise null

getReturnValue()

Returns the return value set for this event

public getReturnValue() : mixed
Return values
mixed

The return value for the event

setParams()

Sets parameters for this event

public setParams([array<string|int, mixed> $params = null ]) : mixed
Parameters
$params : array<string|int, mixed> = null

An array of parameters to be held by this event

setReturnValue()

Sets the return value for this event

public setReturnValue(mixed $value) : mixed
Parameters
$value : mixed

The return value for the event

Tags
subpackage

core.Util.Events

copyright

Copyright (c) 2019, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results