Utility command that simple passes the input into the PHP serialize function and outputs it. Useful if you have to hack a database record that is a serialised string of text for instance.
A specific example: the baseTableParamSet stores all properties as serialised strings by default. This command can be used to replace an existing entry in a param set.
// just serialises whatever you pass on the CLI
$oApp = new cliApplication('example', 'A simple example.');
$oRequest = cliRequest::getInstance()->setApplication($oApp);
$oApp->getCommandChain()
->addCommand(new cliCommandSerialise($oRequest))
$oApp->execute($oRequest);
public __construct($inRequest)
Creates a new command
public execute()
Executes the command
Tags: cli, clicommand, clicommandserialise,
cli Articles