Class Mage_Backup_Model_Mysql4_Db

Description

Database backup resource model

Located in /Backup/Model/Mysql4/Db.php (line 34)


	
			
Variable Summary
Varien_Db_Adapter_Pdo_Mysql $_read
Method Summary
Mage_Backup_Model_Mysql4_Db __construct ()
void clear ()
void crear ()
void getFooter ()
void getHeader ()
unknown getTableCreateScript (unknown_type $tableName, [unknown_type $addDropIfExists = false])
string getTableCreateSql (string $tableName, [bool $withForeignKeys = false])
string getTableDataAfterSql (string $tableName)
string getTableDataBeforeSql (string $tableName)
void getTableDataDump ( $tableName, [ $step = 100])
string getTableDataSql (string $tableName, int $count, [int $offset = 0])
string getTableDropSql (string $tableName)
string getTableForeignKeysSql ([string|null $tableName = null])
string getTableHeader ( $tableName)
array getTables ()
Varien_Object getTableStatus (string $tableName)
string _quoteRow (string $tableName,  $row)
Variables
array $_foreignKeys = array() (line 49)

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

  • access: protected
Varien_Db_Adapter_Pdo_Mysql $_read (line 41)

Read connection

  • access: protected
Methods
Constructor __construct (line 55)

Initialize Backup DB resource model

  • access: public
Mage_Backup_Model_Mysql4_Db __construct ()
beginTransaction (line 401)
  • access: public
void beginTransaction ()
clear (line 72)

Clear data

  • access: public
void clear ()
commitTransaction (line 406)
  • access: public
void commitTransaction ()
crear (line 63)
  • deprecated: after 1.4.0.0-alpha2
  • access: public
void crear ()
getFooter (line 358)

Returns SQL footer data

  • access: public
void getFooter ()
getHeader (line 330)

Returns SQL header data

  • access: public
void getHeader ()
getTableCreateScript (line 261)

Enter description here...

  • access: public
unknown getTableCreateScript (unknown_type $tableName, [unknown_type $addDropIfExists = false])
  • unknown_type $tableName
  • unknown_type $addDropIfExists
getTableCreateSql (line 106)

Retrieve SQL fragment for create table

  • access: public
string getTableCreateSql (string $tableName, [bool $withForeignKeys = false])
  • string $tableName
  • bool $withForeignKeys
getTableDataAfterSql (line 394)

Retrieve after insert data SQL fragment

  • access: public
string getTableDataAfterSql (string $tableName)
  • string $tableName
getTableDataBeforeSql (line 378)

Retrieve before insert data SQL fragment

  • access: public
string getTableDataBeforeSql (string $tableName)
  • string $tableName
getTableDataDump (line 291)
  • access: public
void getTableDataDump ( $tableName, [ $step = 100])
  • $tableName
  • $step
getTableDataSql (line 227)

Retrive table partical data SQL insert

  • access: public
string getTableDataSql (string $tableName, int $count, [int $offset = 0])
  • string $tableName
  • int $count
  • int $offset
getTableDropSql (line 93)

Retrieve SQL fragment for drop table

  • access: public
string getTableDropSql (string $tableName)
  • string $tableName
getTableForeignKeysSql (line 148)

Retrieve foreign keys for table(s)

  • access: public
string getTableForeignKeysSql ([string|null $tableName = null])
  • string|null $tableName
getTableHeader (line 283)

Retrieve table header comment

  • access: public
string getTableHeader ( $tableName)
  • $tableName
getTables (line 82)

Retrieve table list

  • access: public
array getTables ()
getTableStatus (line 172)

Retrieve table status

  • access: public
Varien_Object getTableStatus (string $tableName)
  • string $tableName
rollBackTransaction (line 411)
  • access: public
void rollBackTransaction ()
_quoteRow (line 200)

Quote Table Row

  • access: protected
string _quoteRow (string $tableName,  $row)
  • string $tableName
  • array $row

Documentation generated on Fri, 11 Feb 2011 17:00:53 +0200 by phpDocumentor 1.4.3