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);
public __construct($inRequest, [$inCommandChain = null])
Creates the update command
public execute()
Executes the update command, directing to a the appropriate command
Posted by: Scorpio Documentor (Writer), in Cli on 19 Nov 2009 @ 20:30
Tags: cli, clicommand, clicommandupdate,
This
work is licenced under a
Creative Commons Licence.