Methods summary
public
boolean
|
#
isCustomizedView( )
Flag to indicate that custom option has own customized output (blocks, native
html etc.)
Flag to indicate that custom option has own customized output (blocks, native
html etc.)
Returns
boolean
Overrides
|
public
string
|
#
getCustomizedView( array $optionInfo )
Return option html
Parameters
- $optionInfo
array $optionInfo
Returns
string
Overrides
|
protected
Varien_Object
|
#
_getProcessingParams( )
Returns additional params for processing options
Returns additional params for processing options
Returns
Varien_Object
|
protected
null|array
|
#
_getCurrentConfigFileInfo( )
Returns file info array if we need to get file from already existing file. Or
returns null, if we need to get file from uploaded array.
Returns file info array if we need to get file from already existing file. Or
returns null, if we need to get file from uploaded array.
Returns
null|array
|
public
Mage_Catalog_Model_Product_Option_Type_File
|
#
validateUserValue( array $values )
Validate user input for option
Validate user input for option
Parameters
- $values
array $values All product option values, i.e. array (option_id => mixed, option_id
=> mixed...)
Returns
Throws
Overrides
|
protected
Mage_Catalog_Model_Product_Option_Type_File
|
|
protected
Mage_Catalog_Model_Product_Option_Type_Default
|
#
_validateFile( array $optionValue )
Validate file
Parameters
- $optionValue
array $optionValue
Returns
Throws
|
protected
array
|
#
_getValidatorErrors( array $errors, array $fileInfo )
Get Error messages for validator Errors
Get Error messages for validator Errors
Parameters
- $errors
array $errors Array of validation failure message codes @see
Zend_Validate::getErrors()
- $fileInfo
array $fileInfo File info
Returns
array Array of error messages
|
public
mixed
|
#
prepareForCart( )
Prepare option value for cart
Prepare option value for cart
Returns
mixed Prepared option value
Throws
Overrides
|
public
string
|
#
getFormattedOptionValue( string $optionValue )
Return formatted option value for quote option
Return formatted option value for quote option
Parameters
- $optionValue
string $optionValue Prepared for cart option value
Returns
string
Overrides
|
protected
string
|
#
_getOptionHtml( string|array $optionValue )
Format File option html
Parameters
- $optionValue
string|array $optionValue Serialized string of option data or its data array
Returns
string
|
protected
array
|
#
_unserializeValue( mixed $value )
Create a value from a storable representation
Create a value from a storable representation
Parameters
Returns
array
|
public
string
|
#
getPrintableOptionValue( string $optionValue )
Return printable option value
Return printable option value
Parameters
- $optionValue
string $optionValue Prepared for cart option value
Returns
string
Overrides
|
public
string
|
#
getEditableOptionValue( string $optionValue )
Return formatted option value ready to edit, ready to parse
Return formatted option value ready to edit, ready to parse
Parameters
- $optionValue
string $optionValue Prepared for cart option value
Returns
string
Overrides
|
public
string|null
|
#
parseOptionValue( string $optionValue, array $productOptionValues )
Parse user input value and return cart prepared value
Parse user input value and return cart prepared value
Parameters
- $optionValue
string $optionValue
- $productOptionValues
array $productOptionValues Values for product option
Returns
string|null
Overrides
|
public
mixed
|
#
prepareOptionValueForRequest( string $optionValue )
Prepare option value for info buy request
Prepare option value for info buy request
Parameters
- $optionValue
string $optionValue
Returns
mixed
Overrides
|
public
Mage_Catalog_Model_Product_Option_Type_File
|
#
copyQuoteToOrder( )
Quote item to order item copy process
Quote item to order item copy process
Returns
|
public
string
|
#
getTargetDir( boolean $relative = false )
Main Destination directory
Main Destination directory
Parameters
- $relative
boolean $relative If true - returns relative path to the webroot
Returns
string
|
public
string
|
#
getQuoteTargetDir( boolean $relative = false )
Quote items destination directory
Quote items destination directory
Parameters
- $relative
boolean $relative If true - returns relative path to the webroot
Returns
string
|
public
string
|
#
getOrderTargetDir( boolean $relative = false )
Order items destination directory
Order items destination directory
Parameters
- $relative
boolean $relative If true - returns relative path to the webroot
Returns
string
|
public
Mage_Catalog_Model_Product_Option_Type_File
|
#
setCustomOptionDownloadUrl( string $url )
Set url to custom option download controller
Set url to custom option download controller
Parameters
Returns
|
protected
|
#
_initFilesystem( )
Directory structure initializing
Directory structure initializing
|
protected
|
#
_createWriteableDir( string $path )
Create Writeable directory if it doesn't exist
Create Writeable directory if it doesn't exist
Parameters
- $path
string Absolute directory path
|
protected
string
|
#
_getOptionDownloadUrl( mixed $route, mixed $params )
Return URL for option file download
Return URL for option file download
Returns
string
|
protected
array|null
|
#
_parseExtensionsString( string $extensions )
Parse file extensions string with various separators
Parse file extensions string with various separators
Parameters
- $extensions
string $extensions String to parse
Returns
array|null
|
protected
boolean
|
#
_isImage( array|string $fileInfo )
Simple check if file is image
Simple check if file is image
Parameters
- $fileInfo
array|string $fileInfo - either file data from Zend_File_Transfer or file path
Returns
boolean
|
protected
integer
|
|
protected
integer
|
#
_getBytesIniValue( string $ini_key )
Return php.ini setting value in bytes
Return php.ini setting value in bytes
Parameters
- $ini_key
string $ini_key php.ini Var name
Returns
integer Setting value
|
protected
integer
|
#
_bytesToMbytes( integer $bytes )
Simple converrt bytes to Megabytes
Simple converrt bytes to Megabytes
Parameters
Returns
integer
|