Paradox/toolbox/TransactionManager.php
public function registerResult($name, $command = null)
    {
        if (!$this->_activeTransaction) {
            throw new TransactionManagerException("There is no active transaction.");
        }

        if (empty($this->_commands)) {
            throw new TransactionManagerException("There are no commands for this transaction.");
        }

        //Get the last command's id (current array element)
        end($this->_commands);
        $id = key($this->_commands);
        reset($this->_commands);

        $this->_registeredResults[$id] = $name;

        return true;
    }
public function registerResult($name, $command = null)
    {
        if (!$this->_activeTransaction) {
            throw new TransactionManagerException("There is no active transaction.");
        }

        if (empty($this->_commands)) {
            throw new TransactionManagerException("There are no commands for this transaction.");
        }

        //Get the last command's id (current array element)
        end($this->_commands);
        $id = key($this->_commands);
        reset($this->_commands);

        $this->_registeredResults[$id] = $name;

        return true;
    }
Register the result of a transaction operation under a name, so that the result can be retrieved after the transaction has finished.
@param  string  $name    The name to store the results under.
@param  string  $command A placebo that does nothing, but allows one to explicitly associate a registration with a transaction operation.
@return boolean