cliCommandUpdate

Handles the keyword 'update' with a variable number of 'update' 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:

// basic example of using update command
$oApp = new cliApplication('example', 'A simple example.');
$oRequest = cliRequest::getInstance()->setApplication($oApp);
$oApp->getCommandChain()
    ->addCommand(
        new cliCommandUpdate(
            $oRequest,
            new cliCommandChain(
                array(
                    // my update commands here
                )
            )
        )
    )
$oApp->execute($oRequest);

Methods

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

Creates the update command

public execute()

Executes the update command, directing to a the appropriate command


Inherited Methods

<  1  >