cliCommandDelete

Handles the keyword 'delete' with a variable number of 'delete' objects assigned at runtime. Allows for the handling to be consistent and re-used but the object types to change.

This command is similar to the following:

$oApp = new cliApplication('example', 'A simple example.');
$oRequest = cliRequest::getInstance()->setApplication($oApp);
$oApp->getCommandChain()
    ->addCommand(
        new cliCommandDelete(
            $oRequest, new cliCommandChain(
                array(
                    // commands for deleting things
                )
            )
        )
    )
$oApp->execute($oRequest);

Methods

public __construct($inRequest, [$inCommandChain = null])

Creates the delete command

public execute()

Executes the delete command, directing to a the appropriate command


Inherited Methods

<  1  >