Documentation

Mage_Authorizenet_Helper_Data extends Mage_Core_Helper_Abstract
in package

Maho

Tags
copyright

Copyright (c) 2006-2020 Magento, Inc. (https://magento.com)

copyright

Copyright (c) 2022-2024 The OpenMage Contributors (https://openmage.org)

copyright

Copyright (c) 2024 Maho (https://mahocommerce.com)

license

https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

Table of Contents

Properties

$_layout  : Mage_Core_Model_Layout
Layout model object
$_moduleName  : string
Helper module name
$_request  : Mage_Core_Controller_Request_Http
Request object
$modulesDisabled  : array<string|int, mixed>

Methods

__()  : string
Translate
escapeHtml()  : null|string|array<string|int, string>
Escape html entities
escapeScriptIdentifiers()  : string
Remove `javascript:`, `vbscript:`, `data:` words from the string.
escapeSpecial()  : string
Remove `\t`,`\n`,`\r`,`\0`,`\x0B:` symbols from the string.
escapeUrl()  : string
Escape html entities in url
getAdminUrl()  : string
Return URL for admin area
getControllerName()  : string
Get controller name
getLayout()  : Mage_Core_Model_Layout
Retrieve layout model object
getSaveOrderUrlParams()  : array<string|int, mixed>
Retrieve save order url params
getSuccessOrderUrl()  : string
Retrieve place order url
hasTags()  : bool
Check for tags in multidimensional arrays
htmlEscape()  : null|string|array<string|int, string>
isModuleEnabled()  : bool
Check is module exists and enabled in global config.
isModuleOutputEnabled()  : bool
Check whether the module output is enabled in Configuration
jsQuoteEscape()  : string|array<string|int, string>
Escape quotes in java script
quoteEscape()  : string
Escape quotes inside html attributes Use $addSlashes = false for escaping js that inside html attribute (onClick, onSubmit etc)
removeTags()  : string
Remove html tags, but leave "<" and ">" signs
setLayout()  : Mage_Core_Helper_Abstract
Declare layout
stripTags()  : string
Wrapper for standard strip_tags() function with extra functionality for html entities
translateArray()  : array<string|int, mixed>
Translate array
updateOrderEditIncrements()  : mixed
Update all child and parent order's edit increment numbers.
urlDecode()  : string
base64_decode() for URLs decoding
urlDecodeAndEscape()  : string
base64_decode() and escape quotes in url
urlEncode()  : string
base64_encode() for URLs encoding
urlEscape()  : string
_cleanCache()  : Mage_Core_Helper_Abstract
Cleaning cache
_getModuleName()  : string
Retrieve helper module name
_getRequest()  : Mage_Core_Controller_Request_Http
Retrieve request object
_getUrl()  : string
Set secure url checkout is secure for current store.
_loadCache()  : mixed
Loading cache data
_removeCache()  : Mage_Core_Helper_Abstract
Removing cache
_saveCache()  : Mage_Core_Helper_Abstract
Saving cache

Properties

$_moduleName

Helper module name

protected string $_moduleName = 'Mage_Authorizenet'

$modulesDisabled

protected array<string|int, mixed> $modulesDisabled = []

Methods

__()

Translate

public __() : string
Return values
string

escapeHtml()

Escape html entities

public escapeHtml(string|array<string|int, string> $data[, array<string|int, mixed>|null $allowedTags = null ]) : null|string|array<string|int, string>
Parameters
$data : string|array<string|int, string>
$allowedTags : array<string|int, mixed>|null = null
Return values
null|string|array<string|int, string>

escapeScriptIdentifiers()

Remove `javascript:`, `vbscript:`, `data:` words from the string.

public escapeScriptIdentifiers(string $data) : string
Parameters
$data : string
Return values
string

escapeSpecial()

Remove `\t`,`\n`,`\r`,`\0`,`\x0B:` symbols from the string.

public escapeSpecial(string $data) : string
Parameters
$data : string
Return values
string

escapeUrl()

Escape html entities in url

public escapeUrl(string $data) : string
Parameters
$data : string
Return values
string

getAdminUrl()

Return URL for admin area

public getAdminUrl(string $route, array<string|int, mixed> $params) : string
Parameters
$route : string
$params : array<string|int, mixed>
Return values
string

getControllerName()

Get controller name

public getControllerName() : string
Return values
string

getSaveOrderUrlParams()

Retrieve save order url params

public getSaveOrderUrlParams(string $controller) : array<string|int, mixed>
Parameters
$controller : string
Return values
array<string|int, mixed>

getSuccessOrderUrl()

Retrieve place order url

public getSuccessOrderUrl(array<string|int, mixed> $params) : string
Parameters
$params : array<string|int, mixed>
Return values
string

hasTags()

Check for tags in multidimensional arrays

public hasTags(string|array<string|int, mixed> $data[, array<string|int, mixed> $arrayKeys = [] ][, bool $skipTags = true ]) : bool
Parameters
$data : string|array<string|int, mixed>
$arrayKeys : array<string|int, mixed> = []

keys of the array being checked that are excluded and included in the check

$skipTags : bool = true

skip transferred array keys, if false then check only them

Return values
bool

htmlEscape()

public htmlEscape(string|array<string|int, string> $data[, array<string|int, mixed>|null $allowedTags = null ]) : null|string|array<string|int, string>

after 1.4.0.0-rc1

Parameters
$data : string|array<string|int, string>
$allowedTags : array<string|int, mixed>|null = null
Tags
see
self::escapeHtml()
Return values
null|string|array<string|int, string>

isModuleEnabled()

Check is module exists and enabled in global config.

public isModuleEnabled([string $moduleName = null ]) : bool
Parameters
$moduleName : string = null

the full module name, example Mage_Core

Return values
bool

isModuleOutputEnabled()

Check whether the module output is enabled in Configuration

public isModuleOutputEnabled([string $moduleName = null ]) : bool
Parameters
$moduleName : string = null

Full module name

Return values
bool

jsQuoteEscape()

Escape quotes in java script

public jsQuoteEscape(string|array<string|int, string> $data[, string $quote = ''' ]) : string|array<string|int, string>
Parameters
$data : string|array<string|int, string>
$quote : string = '''
Return values
string|array<string|int, string>

quoteEscape()

Escape quotes inside html attributes Use $addSlashes = false for escaping js that inside html attribute (onClick, onSubmit etc)

public quoteEscape(string $data[, bool $addSlashes = false ]) : string
Parameters
$data : string
$addSlashes : bool = false
Return values
string

removeTags()

Remove html tags, but leave "<" and ">" signs

public removeTags(string $html) : string
Parameters
$html : string
Return values
string

stripTags()

Wrapper for standard strip_tags() function with extra functionality for html entities

public stripTags(string $data[, null|string|array<string|int, string> $allowableTags = null ][, bool $escape = false ]) : string
Parameters
$data : string
$allowableTags : null|string|array<string|int, string> = null
$escape : bool = false
Return values
string

translateArray()

Translate array

public translateArray([mixed $arr = [] ]) : array<string|int, mixed>

@param array $arr

Parameters
$arr : mixed = []
Return values
array<string|int, mixed>

urlDecode()

base64_decode() for URLs decoding

public urlDecode(mixed $url) : string

@param string $url

Parameters
$url : mixed
Return values
string

urlDecodeAndEscape()

base64_decode() and escape quotes in url

public urlDecodeAndEscape(mixed $url) : string

@param string $url

Parameters
$url : mixed
Return values
string

urlEncode()

base64_encode() for URLs encoding

public urlEncode(mixed $url) : string

@param string $url

Parameters
$url : mixed
Return values
string

urlEscape()

public urlEscape(string $data) : string

after 1.4.0.0-rc1

Parameters
$data : string
Tags
see
self::escapeHtml()
Return values
string

_getModuleName()

Retrieve helper module name

protected _getModuleName() : string
Return values
string

_getUrl()

Set secure url checkout is secure for current store.

protected _getUrl(string $route[, array<string|int, mixed> $params = [] ]) : string
Parameters
$route : string
$params : array<string|int, mixed> = []
Attributes
#[Override]
Return values
string

_loadCache()

Loading cache data

protected _loadCache(string $id) : mixed
Parameters
$id : string

_saveCache()

Saving cache

protected _saveCache(mixed $data, string $id[, array<string|int, mixed> $tags = [] ][, null|false|int $lifeTime = false ]) : Mage_Core_Helper_Abstract
Parameters
$data : mixed
$id : string
$tags : array<string|int, mixed> = []
$lifeTime : null|false|int = false
Return values
Mage_Core_Helper_Abstract

        
On this page

Search results