\TestCommand
- Author: Rainer Spittel (rainer at silverstripe dot com) This is an example for a command implementation. The command will expect array keys 'x' and 'y' and the command will multiply the two integer-values. No validation has been implemented. Please see the README file for more information.
Synopsis
class TestCommand
extends ControllerCommand
{
- // methods
- public void execute()
- // Inherited methods from ControllerCommand
- public void __construct()
- public Controller getController()
- public array getParameters()
- public void setParameters()
- public string toString()
Hierarchy
Extends
Methods
public
- execute() — Perform the action/command
Inherited from ControllerCommand
public
- getController() — Returns the instance of the controller class, assigned to this command.
- getParameters() — Returns the parameter array for this command.
- setParameters() — Set the parameter variable of the command instance. if the given parameter is not an array, the method will create an array envelope. If the parameter is null, it will create an empty array.
- toString() — Returns a string which represents this command instance.