Paradox/toolbox/TransactionManager.php
public function addCommand($command, $action, $object = null, $isGraph = false, $data = array())
    {
        if (!$this->_activeTransaction) {
            throw new TransactionManagerException("There is no active transaction.");
        }

        $id = $this->random();
        $this->_commands[$id] = array('command' => $command, 'action' => $action, 'object' => $object, 'isGraph' => $isGraph, 'data' => $data);

        return $id;
    }
public function addCommand($command, $action, $object = null, $isGraph = false, $data = array())
    {
        if (!$this->_activeTransaction) {
            throw new TransactionManagerException("There is no active transaction.");
        }

        $id = $this->random();
        $this->_commands[$id] = array('command' => $command, 'action' => $action, 'object' => $object, 'isGraph' => $isGraph, 'data' => $data);

        return $id;
    }
Add a command to be executed for the transaction.
@param  string $command The javascript command for the transaction.
@param  string $action  The name of the operation.
@param  string $object  An optional object or model that can be used to process results after committing the transaction.
@param  string $isGraph Whether this command is for a graph or not.
@param  array  $data    Any other data that should be stored with this command.
@return string $id The id of this command.