PHP Class FluxBB\Core\Action

Datei anzeigen Open project: fluxbb/core

Protected Properties

Property Type Description
$events Illuminate\Contracts\Events\Dispatcher The event dispatcher instance.
$input array All input data passed into the action.

Public Methods

Method Description
execute ( array $input = [] ) : Response Turn a request into a response.
setEvents ( Illuminate\Contracts\Events\Dispatcher $events ) : void Set the event dispatcher instance.

Protected Methods

Method Description
get ( string $key, mixed $default = null ) : mixed Get an input variable.
raise ( object $event ) : void Raise the given event.
run ( ) : array | null Run any desired actions.

Method Details

execute() public method

Turn a request into a response.
public execute ( array $input = [] ) : Response
$input array
return FluxBB\Server\Response

get() protected method

Get an input variable.
protected get ( string $key, mixed $default = null ) : mixed
$key string
$default mixed
return mixed

raise() protected method

Raise the given event.
protected raise ( object $event ) : void
$event object
return void

run() abstract protected method

Run any desired actions.
abstract protected run ( ) : array | null
return array | null

setEvents() public method

Set the event dispatcher instance.
public setEvents ( Illuminate\Contracts\Events\Dispatcher $events ) : void
$events Illuminate\Contracts\Events\Dispatcher
return void

Property Details

$events protected_oe property

The event dispatcher instance.
protected Dispatcher,Illuminate\Contracts\Events $events
return Illuminate\Contracts\Events\Dispatcher

$input protected_oe property

All input data passed into the action.
protected array $input
return array