Example #1
0
 /**
  * Write to backup file
  *
  * @param string $string
  * @return Mage_Backup_Model_Backup
  */
 public function write($string)
 {
     try {
         $this->_getStream()->write($string);
     } catch (Magento_Filesystem_Exception $e) {
         Mage::exception('Mage_Backup', $this->_helper->__('An error occurred while writing to the backup file "%s".', $this->getFileName()));
     }
     return $this;
 }
Example #2
0
 /**
  * Return backup types array
  * @return array
  */
 public function toOptionArray()
 {
     return $this->_helper->getBackupTypes();
 }