class BaseCommand implements CommandInterface (View source)

Base command that only exists to simplify AJAX commands.

Properties

protected string $command

The name of the command.

protected string $data

The data to pass on to the client side.

Methods

__construct(string $command, string $data)

Constructs a BaseCommand object.

render()

Return an array to be run through json_encode and sent to the client.

Details

__construct(string $command, string $data)

Constructs a BaseCommand object.

Parameters

string $command

The name of the command.

string $data

The data to pass on to the client side.

render()

Return an array to be run through json_encode and sent to the client.