Amiro.Ru / Manual | |||||||
Packages:
DB Debug Driver_PaymentSystem Environment Library Module ModuleComponent Package Plugin Plugin_AJAXResponder Plugin_Sample Service Template TxCommand TxService Hyper_AmiCatalog Hyper_AmiClean Hyper_AmiEshopShipping Hyper_AmiExt Hyper_AmiFiles Hyper_AmiMultifeeds Hyper_AmiSearch Hyper_AmiUsers Config_AmiCatalog_Items Config_AmiClean_AmiNewsList Config_AmiClean_AmiSample Config_AmiClean_EshopOrder Config_AmiClean_Sape Config_AmiClean_Trustlink Config_AmiClean_Webservice Config_AmiEshopShipping_Fields Config_AmiEshopShipping_Methods Config_AmiEshopShipping_Types Config_AmiFake_AmiroPayDrvExample Config_AmiFiles_Files Config_AmiMultifeeds_Articles Config_AmiMultifeeds_Blog Config_AmiMultifeeds_FAQ Config_AmiMultifeeds_News Config_AmiMultifeeds_Photoalbum Config_AmiMultifeeds_PhotoGallery Config_AmiMultifeeds_Stickers Config_AmiUsers_Users Module_Catalog Module_Pages Module_Sample Module_SearchHistory
Interfaces:
|
Loading search... The AMI_Tx class• IntroductionTransaction abstraction. • Class synopsis
AMI_Tx
implements AMI_iTx
{
/* Properties */
// Variable containing current transactions state, using for offline rollback.
// Variable containing global transactions state, using for offline rollback.
// Array of backup data needed for revert
// Array of supported commands, must be filled in children
// Array of commands
// Array of executing commands
// Array of entities existence flags
// Array of precommited commands
// Precommited commands count
// Failed commit command index in AMI_Tx::$aPrecommitedCmds
// Variable containing current transactions state, using for offline rollback.
// Contains exception fired on commit
// Flag specifying is transaction started
// State file path
/* Methods */
// Logs message to "_admin/_logs/tx.log".
// Add command executed on commit.
// Adds command resources.
// Commit tracnsaction.
// Returns backup entity name or null.
// Returns TRUE if transaction is started but not commited.
// Rollback tracnsaction.
// Set backup entity name.
// Set backup entity name.
// Start transaction.
// Output message.
protected
output ( string $message, [ bool $output = TRUE ], [ int $type = self::LOG_NOTE ] ) returns void;
// Create and store all tracnsaction commands.
// Update file containing state fr possible offline rollback.
}
Tags:
• Class Properies
• Class Methods// Logs message to "_admin/_logs/tx.log".
Implementation of: AMI_iTx::log(). // Add command executed on commit.
Implementation of: AMI_iTx::addCommand(). // Adds command resources.
Implementation of: AMI_iTx::addCommandResources(). Tags:
// Commit tracnsaction.
Implementation of: AMI_iTx::commit(). // Returns backup entity name or null.
Implementation of: AMI_iTx::getBackupName(). // Returns TRUE if transaction is started but not commited.
Implementation of: AMI_iTx::isStarted(). // Rollback tracnsaction.
Implementation of: AMI_iTx::rollback(). // Set backup entity name.
Implementation of: AMI_iTx::setBackupName(). // Set backup entity name.
Implementation of: AMI_iTx::setExistence(). // Output message.
protected
output ( string $message, [ bool $output = TRUE ], [ int $type = self::LOG_NOTE ] ) returns void;
// Create and store all tracnsaction commands.
// Update file containing state fr possible offline rollback.
|