Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Data Class Reference
Inheritance diagram for Data:
AbstractHelper

Public Member Functions

 displayGirthValue ($shippingMethod)
 
- Public Member Functions inherited from AbstractHelper
 __construct (Context $context)
 
 isModuleOutputEnabled ($moduleName=null)
 

Protected Attributes

 $availableShippingMethods
 
- Protected Attributes inherited from AbstractHelper
 $_moduleName
 
 $_request
 
 $_moduleManager
 
 $_logger
 
 $_urlBuilder
 
 $_httpHeader
 
 $_eventManager
 
 $_remoteAddress
 
 $urlEncoder
 
 $urlDecoder
 
 $scopeConfig
 
 $_cacheConfig
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractHelper
 _getRequest ()
 
 _getModuleName ()
 
 _getUrl ($route, $params=[])
 

Detailed Description

Usps data helper

Definition at line 13 of file Data.php.

Member Function Documentation

◆ displayGirthValue()

displayGirthValue (   $shippingMethod)

Define if we need girth parameter in the package window

Parameters
string$shippingMethod
Returns
bool

Definition at line 47 of file Data.php.

48  {
49  return in_array($shippingMethod, $this->availableShippingMethods);
50  }
$shippingMethod
Definition: popup.phtml:12

Field Documentation

◆ $availableShippingMethods

$availableShippingMethods
protected
Initial value:
= [
'usps_0_FCLE',
'usps_1',
'usps_2',
'usps_3',
'usps_4',
'usps_6',
'usps_INT_1',
'usps_INT_2',
'usps_INT_4',
'usps_INT_7',
'usps_INT_8',
'usps_INT_9',
'usps_INT_10',
'usps_INT_11',
'usps_INT_12',
'usps_INT_14',
'usps_INT_16',
'usps_INT_20',
]

Definition at line 20 of file Data.php.


The documentation for this class was generated from the following file: