Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Backup_Exception
  • Mage_Backup_Helper_Data
  • Mage_Backup_Model_Backup
  • Mage_Backup_Model_Config_Backend_Cron
  • Mage_Backup_Model_Config_Source_Type
  • Mage_Backup_Model_Db
  • Mage_Backup_Model_Fs_Collection
  • Mage_Backup_Model_Mysql4_Db
  • Mage_Backup_Model_Observer
  • Mage_Backup_Model_Resource_Db
  • Mage_Backup_Model_Resource_Helper_Mysql4
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Backup_Model_Resource_Db

Database backup resource model

Direct known subclasses

Mage_Backup_Model_Mysql4_Db
Package: Mage\Backup
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Backup/Model/Resource/Db.php
Methods summary
public
# __construct( )

Initialize Backup DB resource model

Initialize Backup DB resource model

public
# clear( )

Clear data

Clear data

public array
# getTables( )

Retrieve table list

Retrieve table list

Returns

array
public string
# getTableDropSql( string $tableName )

Retrieve SQL fragment for drop table

Retrieve SQL fragment for drop table

Parameters

$tableName
string
$tableName

Returns

string
public string
# getTableCreateSql( string $tableName, boolean $withForeignKeys = false )

Retrieve SQL fragment for create table

Retrieve SQL fragment for create table

Parameters

$tableName
string
$tableName
$withForeignKeys
boolean
$withForeignKeys

Returns

string
public string
# getTableForeignKeysSql( string|null $tableName = null )

Retrieve foreign keys for table(s)

Retrieve foreign keys for table(s)

Parameters

$tableName
string|null
$tableName

Returns

string
public Varien_Object
# getTableStatus( string $tableName )

Retrieve table status

Retrieve table status

Parameters

$tableName
string
$tableName

Returns

Varien_Object
public string
# getTableDataSql( string $tableName, integer $count = null, integer $offset = null )

Retrive table partical data SQL insert

Retrive table partical data SQL insert

Parameters

$tableName
string
$tableName
$count
integer
$count
$offset
integer
$offset

Returns

string
public unknown
# getTableCreateScript( unknown_type $tableName, unknown_type $addDropIfExists = false )

Enter description here...

Enter description here...

Parameters

$tableName
unknown_type
$tableName
$addDropIfExists
unknown_type
$addDropIfExists

Returns

unknown
public string
# getTableHeader( unknown_type $tableName )

Retrieve table header comment

Retrieve table header comment

Parameters

$tableName
unknown_type
$tableName

Returns

string
public string
# getTableDataDump( string $tableName, boolean $step = false )

Return table data dump

Return table data dump

Parameters

$tableName
string
$tableName
$step
boolean
$step

Returns

string
public string
# getHeader( )

Returns SQL header data

Returns SQL header data

Returns

string
public string
# getFooter( )

Returns SQL footer data

Returns SQL footer data

Returns

string
public string
# getTableDataBeforeSql( string $tableName )

Retrieve before insert data SQL fragment

Retrieve before insert data SQL fragment

Parameters

$tableName
string
$tableName

Returns

string
public string
# getTableDataAfterSql( string $tableName )

Retrieve after insert data SQL fragment

Retrieve after insert data SQL fragment

Parameters

$tableName
string
$tableName

Returns

string
public Mage_Backup_Model_Resource_Db
# beginTransaction( )

Start transaction mode

Start transaction mode

Returns

Mage_Backup_Model_Resource_Db
public Mage_Backup_Model_Resource_Db
# commitTransaction( )

Commit transaction

Commit transaction

Returns

Mage_Backup_Model_Resource_Db
public Mage_Backup_Model_Resource_Db
# rollBackTransaction( )

Rollback transaction

Rollback transaction

Returns

Mage_Backup_Model_Resource_Db
public Mage_Backup_Model_Resource_Db
# runCommand( mixed $command )

Run sql code

Run sql code

Parameters

$command
mixed
$command

Returns

Mage_Backup_Model_Resource_Db
Properties summary
protected Varien_Db_Adapter_Pdo_Mysql $_write
#

Database connection adapter

Database connection adapter

protected array $_foreignKeys array()
#

tables Foreign key data array [tbl_name] = array(create foreign key strings)

tables Foreign key data array [tbl_name] = array(create foreign key strings)

Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0