cliCommandNew

Handles the keyword 'new' with a variable number of 'new' objects assigned at runtime. Allows for the handling to be consistent and re-used but the object types to change. This is similar to the following commands:

$oApp = new cliApplication('example', 'A simple example.');
$oRequest = cliRequest::getInstance()->setApplication($oApp);
$oApp->getCommandChain()
    ->addCommand(
        new cliCommandNew(
            $oRequest, new cliCommandChain(
                array(
                    // your commands that create "new" things
                )
            )
        )
    )
$oApp->execute($oRequest);

Methods

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

Creates the new command

public execute()

Executes the new command, directing to a the appropriate command


Inherited Methods

<  1  >