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_Backup

Backup file item model

Varien_Object
Extended by Mage_Backup_Model_Backup
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/Backup.php
Methods summary
public Mage_Backup_Model_Backup
# load( string $fileName, string $filePath )

Load backup file info

Load backup file info

Parameters

$fileName
string
fileName
$filePath
string
filePath

Returns

Mage_Backup_Model_Backup
public boolean
# exists( )

Checks backup file exists.

Checks backup file exists.

Returns

boolean
public string
# getFileName( )

Return file name of backup file

Return file name of backup file

Returns

string
public Mage_Backup_Model_Backup
# setType( string $value = 'db' )

Sets type of file

Sets type of file

Parameters

$value
string
$value

Returns

Mage_Backup_Model_Backup
public string
# getType( )

Returns type of backup file

Returns type of backup file

Returns

string
public Mage_Backup_Model_Backup
# setFile( string & $content )

Set the backup file content

Set the backup file content

Parameters

$content
string
$content

Returns

Mage_Backup_Model_Backup

Throws

Mage_Backup_Exception
public string &
# getFile( )

Return content of backup file

Return content of backup file

Returns

string

Throws

Mage_Backup_Exception
public Mage_Backup_Model_Backup
# deleteFile( )

Delete backup file

Delete backup file

Returns

Mage_Backup_Model_Backup

Throws

Mage_Backup_Exception
public Mage_Backup_Model_Backup
# open( boolean $write = false )

Open backup file (write or read mode)

Open backup file (write or read mode)

Parameters

$write
boolean
$write

Returns

Mage_Backup_Model_Backup
public string
# read( integer $length )

Read backup uncomressed data

Read backup uncomressed data

Parameters

$length
integer
$length

Returns

string
public
# eof( )
public Mage_Backup_Model_Backup
# write( string $string )

Write to backup file

Write to backup file

Parameters

$string
string
$string

Returns

Mage_Backup_Model_Backup
public Mage_Backup_Model_Backup
# close( )

Close open backup file

Close open backup file

Returns

Mage_Backup_Model_Backup
public
# output( )

Print output

Print output

public
# getSize( )
public boolean
# validateUserPassword( string $password )

Validate user password

Validate user password

Parameters

$password
string
$password

Returns

boolean
public Mage_Backup_Model_Backup
# loadByTimeAndType( integer $timestamp, string $type )

Load backup by it's type and creation timestamp

Load backup by it's type and creation timestamp

Parameters

$timestamp
integer
$timestamp
$type
string
$type

Returns

Mage_Backup_Model_Backup
Constants summary
integer COMPRESS_RATE 9
#
Properties summary
private string $_type 'db'
#

Type of backup file

Type of backup file

protected resource $_handler null
#

Gz file pointer

Gz file pointer

Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0