PHP Class Mage_Core_Model_File_Uploader, Inchoo_PHP7

Author: Magento Core Team ([email protected])
Inheritance: extends Varien_File_Uploader
Datei anzeigen Open project: Inchoo/Inchoo_PHP7 Class Usage Examples

Protected Properties

Property Type Description
$_skipDbProcessing boolean Flag, that defines should DB processing be skipped

Public Methods

Method Description
checkAllowedExtension ( string $extension ) : boolean Check protected/allowed extension
skipDbProcessing ( null | boolean $flag = null ) : boolean | Mage_Core_Model_File_Uploader Getter/Setter for _skipDbProcessing flag

Protected Methods

Method Description
_afterSave ( array $result ) : Mage_Core_Model_File_Uploader Save file to storage
_validateFile ( ) PHP 7 compatibility rewrite

Method Details

_afterSave() protected method

Save file to storage
protected _afterSave ( array $result ) : Mage_Core_Model_File_Uploader
$result array
return Mage_Core_Model_File_Uploader

_validateFile() protected method

Part of Inchoo_PHP7 extension. There was no other way to fix this :-( Still, slightly more elegant than copying Varien_File_Uploader.
protected _validateFile ( )

checkAllowedExtension() public method

Check protected/allowed extension
public checkAllowedExtension ( string $extension ) : boolean
$extension string
return boolean

skipDbProcessing() public method

Getter/Setter for _skipDbProcessing flag
public skipDbProcessing ( null | boolean $flag = null ) : boolean | Mage_Core_Model_File_Uploader
$flag null | boolean
return boolean | Mage_Core_Model_File_Uploader

Property Details

$_skipDbProcessing protected_oe property

Flag, that defines should DB processing be skipped
protected bool $_skipDbProcessing
return boolean