PHP Class FluxBB\Core\Action

Afficher le fichier Open project: fluxbb/core

Protected Properties

Свойство Type Description
$events Illuminate\Contracts\Events\Dispatcher The event dispatcher instance.
$input array All input data passed into the action.

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

get() protected méthode

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

raise() protected méthode

Raise the given event.
protected raise ( object $event ) : void
$event object
Résultat void

run() abstract protected méthode

Run any desired actions.
abstract protected run ( ) : array | null
Résultat array | null

setEvents() public méthode

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

Property Details

$events protected_oe property

The event dispatcher instance.
protected Dispatcher,Illuminate\Contracts\Events $events
Résultat Illuminate\Contracts\Events\Dispatcher

$input protected_oe property

All input data passed into the action.
protected array $input
Résultat array