Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
zendframework1
library
Zend
Measure
Cooking
Weight.php
Go to the documentation of this file.
1
<?php
25
#require_once 'Zend/Measure/Abstract.php';
26
#require_once 'Zend/Locale.php';
27
37
class
Zend_Measure_Cooking_Weight
extends
Zend_Measure_Abstract
38
{
39
const
STANDARD
=
'GRAM'
;
40
41
const
HALF_STICK
=
'HALF_STICK'
;
42
const
STICK
=
'STICK'
;
43
const
CUP
=
'CUP'
;
44
const
GRAM
=
'GRAM'
;
45
const
OUNCE
=
'OUNCE'
;
46
const
POUND
=
'POUND'
;
47
const
TEASPOON
=
'TEASPOON'
;
48
const
TEASPOON_US
=
'TEASPOON_US'
;
49
const
TABLESPOON
=
'TABLESPOON'
;
50
const
TABLESPOON_US
=
'TABLESPOON_US'
;
51
57
protected
$_units
= array(
58
'HALF_STICK'
=> array(array(
''
=>
'453.59237'
,
'/'
=>
'8'
),
'half stk'
),
59
'STICK'
=> array(array(
''
=>
'453.59237'
,
'/'
=>
'4'
),
'stk'
),
60
'CUP'
=> array(array(
''
=>
'453.59237'
,
'/'
=>
'2'
),
'c'
),
61
'GRAM'
=> array(
'1'
,
'g'
),
62
'OUNCE'
=> array(array(
''
=>
'453.59237'
,
'/'
=>
'16'
),
'oz'
),
63
'POUND'
=> array(
'453.59237'
,
'lb'
),
64
'TEASPOON'
=> array(array(
''
=>
'1.2503332'
,
''
=>
'453.59237'
,
'/'
=>
'128'
),
'tsp'
),
65
'TEASPOON_US'
=> array(array(
''
=>
'453.59237'
,
'/'
=>
'96'
),
'tsp'
),
66
'TABLESPOON'
=> array(array(
''
=>
'1.2503332'
,
''
=>
'453.59237'
,
'/'
=>
'32'
),
'tbsp'
),
67
'TABLESPOON_US'
=> array(array(
''
=>
'453.59237'
,
'/'
=>
'32'
),
'tbsp'
),
68
'STANDARD'
=>
'GRAM'
69
);
70
}
Zend_Measure_Cooking_Weight\STICK
const STICK
Definition:
Weight.php:42
Zend_Measure_Cooking_Weight\TABLESPOON_US
const TABLESPOON_US
Definition:
Weight.php:50
Zend_Measure_Cooking_Weight\POUND
const POUND
Definition:
Weight.php:46
Zend_Measure_Cooking_Weight\CUP
const CUP
Definition:
Weight.php:43
Zend_Measure_Cooking_Weight
Definition:
Weight.php:37
Zend_Measure_Cooking_Weight\$_units
$_units
Definition:
Weight.php:57
Zend_Measure_Cooking_Weight\GRAM
const GRAM
Definition:
Weight.php:44
Zend_Measure_Cooking_Weight\STANDARD
const STANDARD
Definition:
Weight.php:39
Zend_Measure_Cooking_Weight\TEASPOON_US
const TEASPOON_US
Definition:
Weight.php:48
Zend_Measure_Cooking_Weight\HALF_STICK
const HALF_STICK
Definition:
Weight.php:41
Zend_Measure_Cooking_Weight\OUNCE
const OUNCE
Definition:
Weight.php:45
Zend_Measure_Abstract
Definition:
Abstract.php:46
Zend_Measure_Cooking_Weight\TEASPOON
const TEASPOON
Definition:
Weight.php:47
Zend_Measure_Cooking_Weight\TABLESPOON
const TABLESPOON
Definition:
Weight.php:49