\ControllerCommand
- Author: Rainer Spittel (rainer at silverstripe dot com) The ControllerCommand implements the interface ICommand except for execute. This will ensure the ControllerCommand will be treated as an abstract class.
Synopsis
class ControllerCommand
extends Object
implements
ICommand
{
- // members
- private $controller = NULL;
- private array $params = ;
- // methods
- public void __construct()
- public Controller getController()
- public array getParameters()
- public void setParameters()
- public string toString()
Hierarchy
Members
private
- $controller
- $params
Methods
public
- __construct() — The constructure initiates the command object and stores the provided parameters in the instance. The reference to the calling controller object is optional and depends on the individual implementation of the command class. The $params parameter is a property array which can be used to pass in parameters for the command.
- 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.