Class Mage_Core_Helper_Data
Core data helper
- Mage_Core_Helper_Abstract
- Mage_Core_Helper_Data
Direct known subclasses
Mage_Adminhtml_Helper_Catalog_Product_Edit_Action_Attribute, Mage_Adminhtml_Helper_Dashboard_Abstract, Mage_Sales_Helper_Data, Mage_Sales_Helper_Guest, Mage_Sales_Helper_Reorder, Mage_Adminhtml_Helper_Dashboard_Data, Mage_Connect_Helper_Data, Mage_CurrencySymbol_Helper_Data, Mage_GiftMessage_Helper_Message, Mage_ImportExport_Helper_Data, Mage_Media_Helper_Data, Mage_Persistent_Helper_Data, Mage_Persistent_Helper_SessionIndirect known subclasses
Mage_Adminhtml_Helper_Dashboard_OrderCopyright: 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/Core/Helper/Data.php
public
|
|
public static
mixed
|
|
public static
mixed
|
#
currencyByStore( float $value, integer|
Convert and format price value for specified store |
public
string
|
#
formatCurrency( float $value, boolean $includeContainer = true )
Format and convert currency using current store option |
public
string
|
|
public
string
|
#
formatDate( date|
Format date using current locale options and time zone. |
public
string
|
#
formatTime( date|
Format time using current locale options |
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
boolean
|
#
copyFieldset( string $fieldset, string $aspect, array|Varien_Object $source, array|Varien_Object $target, string $root = 'global' )
Copy data from object|array to object|array containing fields from fieldset matching an aspect. |
public
mixed
|
#
decorateArray( mixed $array, string $prefix = 'decorated_', boolean $forceSetAll = false )
Decorate a plain array of arrays or objects The array actually can be an object with Iterator interface |
private
|
|
public
|
#
assocToXml( array $array, string $rootName = '_' )
Transform an assoc array to SimpleXMLElement object Array has some limitations. Appropriate exceptions will be thrown |
private
|
#
_assocToXml( array $array, string $rootName,
Function, that actually recursively transforms array to xml |
public
array
|
#
xmlToAssoc(
Transform SimpleXMLElement to associative array SimpleXMLElement must be conform structure, generated by assocToXml() |
public
string
|
#
jsonEncode( mixed $valueToEncode, boolean $cycleCheck = false, array $options = array() )
Encode the mixed $valueToEncode into the JSON format |
public
mixed
|
#
jsonDecode( string $encodedValue, mixed $objectDecodeType = Zend_Json::TYPE_ARRAY )
Decodes the given $encodedValue string which is encoded in the JSON format |
public
string
|
|
public
boolean|string
|
#
mergeFiles( array $srcFiles, string|false $targetFile = false, boolean $mustMerge = false, callable $beforeMergeCallback = null, array|string $extensionsFilter = array() )
Merge specified files into one |
public
string
|
#
getDefaultCountry(
Return default country code |
public
array
|
#
getProtectedFileExtensions(
Return list with protected file extensions |
public
array
|
|
public
boolean
|
|
public
boolean
|
#
useDbCompatibleMode( )
Check whether database compatible mode is used (configs enable it for MySQL by default). |
public
string
|
#
getMerchantCountryCode(
Retrieve merchant country code |
public
string
|
#
getMerchantVatNumber(
Retrieve merchant VAT number |
public
boolean
|
#
isCountryInEU( string $countryCode, null|integer $storeId = null )
Check whether specified country is in EU countries list |
public
float|integer
|
#
getExactDivision( float|integer $dividend, float|integer $divisor )
Returns the floating point remainder (modulo) of the division of the arguments |
string |
XML_PATH_DEFAULT_COUNTRY
|
'general/country/default' |
|
string |
XML_PATH_PROTECTED_FILE_EXTENSIONS
|
'general/file/protected_extensions' |
|
string |
XML_PATH_PUBLIC_FILES_VALID_PATHS
|
'general/file/public_files_valid_paths' |
|
string |
XML_PATH_ENCRYPTION_MODEL
|
'global/helpers/core/encryption_model' |
|
string |
XML_PATH_DEV_ALLOW_IPS
|
'dev/restrict/allow_ips' |
|
string |
XML_PATH_CACHE_BETA_TYPES
|
'global/cache/betatypes' |
|
string |
XML_PATH_CONNECTION_TYPE
|
'global/resources/default_setup/connection/type' |
|
string |
CHARS_LOWERS
|
'abcdefghijklmnopqrstuvwxyz' |
|
string |
CHARS_UPPERS
|
'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
string |
CHARS_DIGITS
|
'0123456789' |
|
string |
CHARS_SPECIALS
|
'!$*+-.=?@^_|~' |
|
string |
CHARS_PASSWORD_LOWERS
|
'abcdefghjkmnpqrstuvwxyz' |
|
string |
CHARS_PASSWORD_UPPERS
|
'ABCDEFGHJKLMNPQRSTUVWXYZ' |
|
string |
CHARS_PASSWORD_DIGITS
|
'23456789' |
|
string |
CHARS_PASSWORD_SPECIALS
|
'!$*-.=?@_' |
|
string |
XML_PATH_MERCHANT_COUNTRY_CODE
|
'general/store_information/merchant_country' |
#
Config pathes to merchant country code and merchant VAT number |
string |
XML_PATH_MERCHANT_VAT_NUMBER
|
'general/store_information/merchant_vat_number' |
|
string |
XML_PATH_EU_COUNTRIES_LIST
|
'general/country/eu_countries' |
|
integer |
DIVIDE_EPSILON
|
10000 |
#
Const for correct dividing decimal values |
protected
|
$_encryptor | null |
|
protected
array
|
$_allowedFormats | array(
Mage_Core_Model_Locale::FORMAT_TYPE_FULL,
Mage_Core_Model_Locale::FORMAT_TYPE_LONG,
Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM,
Mage_Core_Model_Locale::FORMAT_TYPE_SHORT
) |
$_layout,
$_moduleName,
$_request
|