Class Mage_Core_Model_File_Storage

Description

File storage model class

Located in /Core/Model/File/Storage.php (line 35)

Varien_Object
   |
   --Mage_Core_Model_Abstract
      |
      --Mage_Core_Model_File_Storage
Class Constant Summary
XML_PATH_STORAGE_MEDIA = 'default/system/media_storage_configuration/media_storage'
XML_PATH_STORAGE_MEDIA_DATABASE = 'default/system/media_storage_configuration/media_database'
Variable Summary
string $_eventPrefix
Method Summary
Mage_Core_Model_Abstract|bool getStorageModel ([int|null $storage = null], [array $params = array()])
Variables
Methods
getStorageModel (line 95)

Retrieve storage model If storage not defined - retrieve current storage

params = array( connection => string, - define connection for model if needed init => bool - force initialization process for storage model )

  • access: public
Mage_Core_Model_Abstract|bool getStorageModel ([int|null $storage = null], [array $params = array()])
  • int|null $storage
  • array $params
getSyncFlag (line 77)

Return synchronize process status flag

  • access: public
synchronize (line 130)

Synchronize current media storage with defined

$storage = array( type => int connection => string )

  • access: public
Mage_Core_Model_File_Storage synchronize (array $storage)
  • array $storage
_synchronizeHasErrors (line 63)

Show if there were errors while synchronize process

  • access: protected
bool _synchronizeHasErrors (Mage_Core_Model_Abstract $sourceModel, Mage_Core_Model_Abstract $destinationModel)

Inherited Methods

Inherited From Mage_Core_Model_Abstract

Mage_Core_Model_Abstract::afterCommitCallback()
Mage_Core_Model_Abstract::afterLoad()
Mage_Core_Model_Abstract::cleanModelCache()
Mage_Core_Model_Abstract::clearInstance()
Mage_Core_Model_Abstract::delete()
Mage_Core_Model_Abstract::getCacheIdTags()
Mage_Core_Model_Abstract::getCacheTags()
Mage_Core_Model_Abstract::getCollection()
Mage_Core_Model_Abstract::getEntityId()
Mage_Core_Model_Abstract::getId()
Mage_Core_Model_Abstract::getIdFieldName()
Mage_Core_Model_Abstract::getResource()
Mage_Core_Model_Abstract::getResourceCollection()
Mage_Core_Model_Abstract::getResourceName()
Mage_Core_Model_Abstract::isObjectNew()
Mage_Core_Model_Abstract::load()
Mage_Core_Model_Abstract::save()
Mage_Core_Model_Abstract::setId()
Mage_Core_Model_Abstract::_afterDelete()
Mage_Core_Model_Abstract::_afterDeleteCommit()
Mage_Core_Model_Abstract::_afterLoad()
Mage_Core_Model_Abstract::_afterSave()
Mage_Core_Model_Abstract::_afterSaveCommit()
Mage_Core_Model_Abstract::_beforeDelete()
Mage_Core_Model_Abstract::_beforeLoad()
Mage_Core_Model_Abstract::_beforeSave()
Mage_Core_Model_Abstract::_clearData()
Mage_Core_Model_Abstract::_clearReferences()
Mage_Core_Model_Abstract::_getEventData()
Mage_Core_Model_Abstract::_getResource()
Mage_Core_Model_Abstract::_hasModelChanged()
Mage_Core_Model_Abstract::_init()
Mage_Core_Model_Abstract::_protectFromNonAdmin()
Mage_Core_Model_Abstract::_setResourceModel()
Class Constants
STORAGE_MEDIA_DATABASE = 1 (line 41)
STORAGE_MEDIA_FILE_SYSTEM = 0 (line 40)

Storage systems ids

XML_PATH_STORAGE_MEDIA = 'default/system/media_storage_configuration/media_storage' (line 46)

Config pathes for storing storage configuration

XML_PATH_STORAGE_MEDIA_DATABASE = 'default/system/media_storage_configuration/media_database' (line 47)

Documentation generated on Fri, 11 Feb 2011 17:13:25 +0200 by phpDocumentor 1.4.3